/* ========================================
   CSS CUSTOM PROPERTIES - Light Mode (Default)
   ======================================== */
:root {
	/* Neutral Monochrome Colors */
	--primary: #000000;
	--primary-dark: #1e1e1e;
	--primary-darker: #111111;
	--primary-gradient: #2c2c2c;
	--primary-gradient-hover: #1e1e1e;

	/* Neutral Colors */
	--text-primary: #000000;
	--text-secondary: #FF0000;
	--text-muted: #adb5bd;
	--text-white: #FFFFFF;
	--bg-body: #FFFFFF;
	--bg-card: #ffffff;
	--bg-hover: #f8f9fa;
	--border-color: #000000;
	--border-subtle: #000000;
	--panel-color: #FFFFFF;
	--bg-image: url("../img/desktop_color1.png");

	/* Shadows */
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
	--shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.2);

	/* Spacing Scale */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.5rem;
	--space-lg: 2rem;
	--space-xl: 3rem;

	/* Border Radius */
	--radius-sm: 0px;
	--radius-md: 0px;
	--radius-lg: 0px;

	/* Typography */
	--font-size-base: 1rem;
	--font-size-sm: 0.875rem;
	--font-size-xs: 0.75rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.25rem;
	--line-height-base: 1.6;

	/* Code Blocks */
	--code-bg: #f8f9fa;
	--code-text: #333;
	--code-border: #e9ecef;

	--before-text: "C:\\BLOG\\";
	--after-text: "\\";
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
	pointer-events: auto;
}
html {
	position: relative;
	min-height: 100%;
	scroll-behavior: smooth;
}

body {
	font-family: monospace;
	padding-top: 42px;
	margin-bottom: 42px;
	background-color: var(--bg-body);
	background-image: var(--bg-image);
	background-repeat: top left;
	color: var(--text-primary);
	transition: background-color 0.3s ease, color 0.3s ease;
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
}

section {
	padding: 150px 0;
}

img {
	max-width: 100%;
	height: auto;
}

p {
	margin-top: -16px;
	margin-bottom: 8px;
	padding-left: 8px;
	padding-right: 28px;
}

p img {
	margin-bottom: 16px;
}

/* ========================================
   FORM INPUTS
   ======================================== */
input,
textarea,
select,
.form-control {
	background-color: var(--panel-color) !important;
	color: var(--text-primary) !important;
	border-color: var(--border-color);
}

/* ========================================
   LINKS
   ======================================== */
a {
	color: var(--primary);
	text-decoration: none;
	font-weight: bold !important;
	position: relative;
}
a:hover {
	text-decoration: none;
	color: inherit;
}

.tagged a::before {
	content: "";
	display: inline-block;
	width: 1ch;
	height: 0.1em;
	background: var(--text-secondary);
	position: absolute;
	transform: translateY(1.4em);
	margin-left: 0;
}

.underline::before {
	content: "";
	display: inline-block;
	width: 1ch;
	height: 0.1em;
	background: var(--text-secondary);
	position: absolute;
	transform: translateY(1.4em);
	margin-left: 0;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1.title,
h2.title {
	font-size: 2.3rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--space-md);
}

/* ========================================
   CODE BLOCKS
   ======================================== */
pre,
code {
	background: var(--code-bg);
	color: var(--code-text);
	transition: background-color 0.3s ease, color 0.3s ease;
}

pre {
	border-left: 3px solid var(--primary);
	padding: var(--space-md);
	overflow-x: auto;
}

code {
	display: inline-block;
	padding: 0.2em 0.5em;
	line-height: 1.4em;
	font-size: 0.9em;
}

/* ========================================
   TABLES
   ======================================== */
table {
	empty-cells: show;
	border: 1px solid var(--border-color);
	width: 100%;
	font-size: 0.9em;
	margin-bottom: var(--space-md);
	overflow: hidden;
}

thead {
	background: var(--primary);
	color: #ffffff;
	text-align: left;
	vertical-align: bottom;
}

tr {
	display: table-row;
	vertical-align: inherit;
	border-color: var(--border-color);
	transition: background-color 0.2s ease;
}

th,
td {
	padding: 0.75em 1em;
	border-bottom: 1px solid var(--border-color);
}

/* ========================================
   BLOCKQUOTES
   ======================================== */
blockquote {
	padding: var(--space-md) var(--space-lg);
	margin: 0 0 var(--space-lg) var(--space-lg);
	border-left: 4px solid var(--primary);
	font-style: italic;
	background-color: var(--bg-hover);
	color: var(--text-secondary);
}

/* Scrollbar */
.scrollbar-v {
	width: 22px;
	height: calc(100% - 58px);
	position: absolute;
	top: 44px;
	right: 2px;
	background-image: url("../img/inactive_titlebar.png");
	background-repeat: top left;
	border-left: 1px solid #000;
}
.scroll-up {
	background-image: url("../img/scrollbar_up.png");
	background-size: 22px 22px;
	width: 22px;
	height: 22px;
}
.scroll-down {
	background-image: url("../img/scrollbar_down.png");
	background-size: 22px 22px;
	width: 22px;
	height: 22px;
}
.scroll-corner {
	background-image: url("../img/window_bottomright.png");
	background-size: 22px 22px;
	width: 22px;
	height: 22px;
}

.sc-inner-v {
	width: 100%;
	height: calc(100% - 52px);
}
.sc-top {
	background-image: url("../img/slider_top.png");
	background-size: 22px 11px;
	width: 22px;
	height: 11px;
}
.sc-middle {
	background-image: url("../img/slider_middle_UD.png");
	background-size: 22px 11px;
	background-repeat: top left;
	width: 22px;
	height: calc(100% - 100px);
}
.sc-bottom {
	background-image: url("../img/scrollbar_bottom.png");
	background-size: 22px 11px;
	background-repeat: top left;
	width: 22px;
	height: 11px;
}

.spacer {
	height: 16px;
}

.scrollbar-w {
	width: calc(100% - 23px);
	height: 22px;
	position: absolute;
	bottom: 0px;
	left: 0px;
	background-image: url("../img/inactive_titlebar.png");
	background-repeat: top left;
	border-top: 1px solid #000;
}
.sc-inner-w {
	width: 100%;
	height: 22px;

}
.sc-left {
	background-image: url("../img/scrollbar_left.png");
	background-size: 22px 22px;
	width: 22px;
	height: 22px;
	position: relative;
}

.sc-container {
	position: absolute;
	left: 22px;
	bottom: 0;
	height: 22px;
}
.sc-center-0 {
	background-image: url("../img/slider_left.png");
	background-size: 11px 22px;
	background-repeat: top left;
	width: 11px;
	height: 22px;
	float:left;
}
.sc-center-1 {
	background-image: url("../img/slider_middle_LR.png");
	background-size: 11px 22px;
	background-repeat: top left;
	width: calc(100% - 11px);
	height: 22px;
}
.sc-center-2 {
	background-image: url("../img/slider_right.png");
	background-size: 11px 22px;
	background-repeat: top left;
	width: 11px;
	height: 22px;
	float: right;
	position: absolute;
	bottom: 0px;
	right: 0px;
}
.sc-right {
	background-image: url("../img/scrollbar_right.png");
	background-size: 22px 22px;
	width: 22px;
	height: 22px;
	float: right;
	position: absolute;
	bottom: 0px;
	right: 0px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar-modern {
	background: var(--panel-color) !important;
	border-bottom: 1px solid var(--border-color);
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	height: 32px;
}

.navbar-brand {
	font-weight: 600;
	font-size: 1rem;
	color: var(--nav-link) !important;
}

.navbar .nav-link {
	font-size: 0.825rem;
	font-weight: 500;
	padding: 0.3rem 0.75rem;
	color: var(--text-primary) !important;
}

img.nav-svg-icon {
	width: 1.2rem;
	height: 1.2rem;
	filter: brightness(1) invert(1);
}

/* ========================================
   CARDS - Modern Design
   ======================================== */

.full-width {
	width: calc(100vw - 25vw);
	position: unset;
	left: 0px;
}

.card-modern {
	background: var(--panel-color);
	min-height: 112px !important;
}

.card-modern .card-body {
	padding: 0;
	margin: 0;
	border: 2px solid var(--border-color);
}

.title {
	background-color: var(--text-secondary);
	text-align: center;
	font-weight: bold;
	text-transform: uppercase;
	border: 2px solid var(--border-color);
	height: 22px;
}

.title-text {
	background: var(--text-white);
	display: inline-block;
	font-size: 12pt;
	padding: 0px;
	line-height: 17.5px;
	font-size: 13pt !important;
	vertical-align: 12px;
}
.title-text a {
	color: var(--text-primary);
}
.title-text:before {
	content: var(--before-text);
}
.title-text:after {
	content: var(--after-text);
}

.title-topleft, .title-topright {
	width: 22px;
	height: auto;
	position: relative;
}
.title-topleft {
	float: left;
	margin-right: -28px;
	margin-top: -22px;
}
.title-topright {
	float: right;
	top: -22px;
	margin-left: -28px;
}

.subtitle {
	background-color: var(--text-secondary);
	color: var(--text-white);
	border: 2px solid var(--border-color);
	padding-left: 12px;
	padding-top: 2px;
	font-weight: bold;
	margin-top: -2px;
	height: 22px;
	font-size: 11pt;
	line-height: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-gradient {
	background: var(--primary);
	border: none;
	color: white;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	font-size: var(--font-size-base);
	transition: all 0.3s ease;
	box-shadow: var(--shadow-sm);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.btn-outline-primary-custom {
	border: 2px solid var(--primary);
	color: var(--primary);
	background: transparent;
	padding: 0.6rem 1.5rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

/* ========================================
   FOOTER
   ======================================== */
footer.footer-modern {
	position: absolute;
	bottom: 0;
	width: 100%;
	min-height: 42px;
	line-height: 1.5;
	background: var(--primary);
	color: white;
	padding: 0.6rem 0;
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
	font-size: var(--font-size-xs);
}

footer.footer-modern a {
	color: rgba(255, 255, 255, 0.9);
	transition: color 0.3s ease;
}

.mini-logo {
	height: 24px;
	vertical-align: middle;
	filter: brightness(0) invert(1);
}

/* ========================================
   METADATA (Dates, Reading Time)
   ======================================== */
.metadata {
	color: var(--text-secondary);
	font-size: var(--font-size-sm);
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-md);
	align-items: center;
}

.metadata i {
	color: var(--text-secondary);
	margin-right: 0.25rem;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination .page-link {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	color: var(--primary);
	font-weight: 500;
	border-radius: 0;
}

.pagination .page-item.disabled .page-link {
	background: var(--bg-hover);
	color: var(--text-muted);
	border-color: var(--border-color);
}

/* ========================================
   PLUGINS - Sidebar Styling
   ======================================== */
.sidebar-container {
	font-size: 0.875rem; /* 14px */
	text-align: center;
	color: var(--text-white);
	width: 100%;
}

.plugin {
	margin-top: 0;
	padding-bottom: var(--space-lg);
	margin-bottom: var(--space-lg);
}

.plugin:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.plugin-label {
	font-size: var(--font-size-base);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--primary);
	margin-bottom: var(--space-md);
}

.plugin ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.plugin ul li {
	padding: var(--space-xs) 0;
}

.plugin ul li a {
	color: var(--text-primary);
	display: block;
	transition: color 0.3s ease;
}

/* Tags and Categories - Badge Style */
.plugin.plugin-tags li,
.plugin.plugin-categories li {
	display: inline-block;
	padding: 0;
	margin: 0.25rem;
}

.plugin.plugin-tags li a,
.plugin.plugin-categories li a {
	padding: 0.4rem 1rem;
	font-size: var(--font-size-sm);
	font-weight: 500;
	display: inline-block;
}

/* Search Plugin Styling */
.plugin.plugin-search .form-control {
	padding: 0.75rem 1rem;
	background: var(--bg-body);
	color: var(--text-primary);
}

.plugin.plugin-search button {
	background: var(--primary);
	border: none;
	color: white;
	padding: 0.75rem 1.5rem;
	font-weight: 600;
	margin-top: var(--space-sm);
}

/* ========================================
   BOOTSTRAP ICONS
   ======================================== */
.bi {
	margin-right: 0.5rem;
}

/* ========================================
   POST TAXONOMY (Tags & Categories)
   ======================================== */
.post-taxonomy {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.taxonomy-badge {
	display: inline-block;
	padding: 0.3rem 0.75rem;
	font-size: var(--font-size-xs);
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.taxonomy-category {
	background: transparent;
	color: var(--text-primary);
	border: 1px solid var(--border-color);
}

.taxonomy-tag {
	background: transparent;
	color: var(--text-primary);
}

/* ========================================
   COVER IMAGE ENHANCEMENTS
   ======================================== */
.cover-image-wrapper {
	position: relative;
	overflow: hidden;
	margin-bottom: var(--space-md);
	margin-top: -24px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
	h1.title {
		font-size: 1.8rem;
	}

	h2.title {
		font-size: 1.5rem;
	}

	body {
		font-size: 0.95rem;
	}

	.plugin {
		padding: var(--space-md);
	}

	.btn-primary-gradient {
		width: 100%;
		justify-content: center;
	}
}
