/*
--- ASCII THEME ---
*/

/* --- Root Variables --- */
:root {
	--font-family-main: 'Courier New', Courier, monospace;
	--font-size-main: 16px;
	--color-text: #0F0;
	--color-background: #000;
	--color-accent: #0FF;
	--color-border: #0F0;
	--color-highlight: #008000;
	--color-shadow: #000;
	--border-style-main: 1px solid var(--color-border);
}

/* --- General Body Styling --- */
body {
	font-family: var(--font-family-main);
	font-size: var(--font-size-main);
	color: var(--color-text);
	background-color: var(--color-background);
	margin: 0;
	padding: 2rem;
	text-shadow: 0 0 2px var(--color-accent);
}

/* --- Wrapper and Page --- */
.wrapper {
	max-width: 1024px;
	margin: 0 auto;
	padding: 1rem;
}

.page {
	border: var(--border-style-main);
	padding: 1rem;
	box-shadow: 
		inset 0 0 0 1px var(--color-border),
		0 0 10px var(--color-accent);
}

/* --- Decorative Corners --- */
.controls {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.corner-top-left { top: 5px; left: 5px; content: "+"; }
.corner-top-right { top: 5px; right: 5px; content: "+"; }
.corner-bottom-left { bottom: 5px; left: 5px; content: "+"; }
.corner-bottom-right { bottom: 5px; right: 5px; content: "+"; }


/* --- Progress Bar --- */
.progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 2px;
	background: var(--color-accent);
	width: 0%;
	z-index: 9999;
	box-shadow: 0 0 5px var(--color-accent);
}

/* --- Controls --- */
.controls {
	position: fixed;
	top: 1rem;
	right: 1rem;
	display: flex;
	gap: 0.5rem;
}

/* --- Buttons --- */
.button {
	background: transparent;
	border: var(--border-style-main);
	color: var(--color-text);
	padding: 0.5rem 1rem;
	cursor: pointer;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.button:hover {
	background: var(--color-highlight);
	color: var(--color-background);
	box-shadow: 0 0 5px var(--color-accent);
}

/* --- Dropdown Menu --- */
.dropdown {
	position: relative;
}
.dropdown-trigger {
	border: var(--border-style-main);
	padding: 0.5rem 1rem;
	cursor: pointer;
}
.dropdown-menu {
	display: none;
	position: absolute;
	background-color: var(--color-background);
	border: var(--border-style-main);
	padding: 0.5rem;
	min-width: 150px;
    font-size: 0.95rem;
    font-weight: 600;
}
.dropdown:hover .dropdown-menu {
	display: block;
}
.dropdown-item {
	padding: 0.25rem 0.5rem;
	cursor: pointer;
}
.dropdown-item:hover {
	background-color: var(--color-highlight);
	color: var(--color-background);
}

/* --- Window Decoration --- */
.window {
	border: var(--border-style-main);
	margin-bottom: 1rem;
}
.window-titlebar {
	background: var(--color-highlight);
	color: var(--color-background);
	padding: 0.25rem 0.5rem;
	display: flex;
	justify-content: space-between;
}
.window-buttons span {
	margin-left: 0.5rem;
}

/* --- Header --- */
.header {
	text-align: center;
	padding: 1rem 0;
}
.title-main {
	font-size: 3rem;
	margin: 0;
	letter-spacing: 0.2rem;
}
.subtitle {
	font-size: 1.2rem;
	margin-top: 0.5rem;
}

/* --- Separators --- */
.separator {
	text-align: center;
	margin: 1rem 0;
	color: var(--color-border);
}
.separator-header::before, .separator-footer::before {
	content: "------------------------------------------------------------";
	white-space: nowrap;
	overflow: hidden;
}
.separator-category::before {
	content: "............................................................";
	white-space: nowrap;
	overflow: hidden;
}


/* --- Content --- */
.content {
	padding: 1rem 0;
}

.category .title-category {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.5rem;
}

/* --- Grid and Cards --- */
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1rem;
}

.card {
	border: var(--border-style-main);
	padding: 1rem;
	position: relative;
}

.card-decoration-top::before, .card-decoration-bottom::after {
	content: "+--+";
	position: absolute;
	color: var(--color-border);
}
.card-decoration-top::before { top: -1px; left: -1px; }
.card-decoration-bottom::after { bottom: -1px; right: -1px; }


.card-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

.card-path {
	font-size: 0.8rem;
	color: #aaa;
	margin-bottom: 0.5rem;
}

.card-meta {
	font-size: 0.9rem;
}

.card-actions {
	margin-top: 1rem;
}

/* --- Footer --- */
.footer {
	text-align: center;
	padding: 1rem 0;
}

/* --- Status Bar --- */
.statusbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	background: var(--color-highlight);
	color: var(--color-background);
	padding: 0.25rem 0.5rem;
	font-size: 0.9rem;
}

/* --- Modal --- */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.8);
}
.modal.modal-open {
	display: block;
}
.modal-content {
	margin: auto;
	display: block;
	max-width: 80%;
	max-height: 80%;
}
.modal-close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
	background: none;
	border: none;
	cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}