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

	/* Neutral Colors */
	--text-primary: #333333;
	--text-secondary: #6c757d;
	--text-muted: #adb5bd;
	--bg-body: #ffffff;
	--bg-card: #ffffff;
	--bg-hover: #f8f9fa;
	--border-color: #e9ecef;
	--border-subtle: #dee2e6;

	/* 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: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;

	/* 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;
}

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	padding-top: 42px;
	margin-bottom: 42px;
	background-color: var(--bg-body);
	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;
}

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

/* ========================================
   LINKS
   ======================================== */
a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--primary-dark);
	text-decoration: none;
}

a:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

/* ========================================
   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);
	border-radius: var(--radius-sm);
	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);
	border-radius: var(--radius-sm);
	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;
}

tbody tr:hover {
	background-color: var(--bg-hover);
}

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);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar-modern {
	background: var(--primary) !important;
	box-shadow: var(--shadow-md);
	transition: all 0.3s ease;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	min-height: 42px;
}

.navbar-brand {
	font-weight: 600;
	font-size: 1rem;
	transition: transform 0.3s ease;
}

.navbar-brand:hover {
	transform: translateY(-2px);
}

.navbar .nav-link {
	font-size: 0.825rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9) !important;
	padding: 0.3rem 0.75rem;
	border-radius: var(--radius-sm);
	transition: all 0.3s ease;
}

.navbar .nav-link:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: #ffffff !important;
}

.navbar .nav-link.active {
	background-color: rgba(255, 255, 255, 0.2);
	color: #ffffff !important;
}

img.nav-svg-icon {
	width: 1.2rem;
	height: 1.2rem;
	filter: brightness(0) invert(1);
	opacity: 0.9;
	transition: opacity 0.3s ease;
}

.nav-link:hover img.nav-svg-icon {
	opacity: 1;
}

/* ========================================
   CARDS - Modern Design
   ======================================== */
.card-modern {
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: var(--space-xl);
	margin-bottom: var(--space-xl);
}

.card-modern .card-img-top {
	border-radius: var(--radius-sm);
}

.card-modern .card-body {
	padding: 0;
	margin-top: var(--space-md);
}

.card-modern .title {
	color: var(--text-primary);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary-gradient {
	background: var(--primary);
	border: none;
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: var(--radius-sm);
	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-primary-gradient:hover {
	background: var(--primary-dark);
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
	color: white;
	text-decoration: none;
}

.btn-primary-gradient:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

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

.btn-outline-primary-custom:hover {
	background: var(--primary);
	color: white;
	transform: translateY(-2px);
}

/* ========================================
   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;
}

footer.footer-modern a:hover {
	color: #ffffff;
}

.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);
	padding: 0.6rem 1.2rem;
	border-radius: var(--radius-sm);
	font-weight: 500;
	transition: all 0.3s ease;
}

.pagination .page-link:hover {
	background: var(--primary);
	color: white;
	border-color: var(--primary);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

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

/* ========================================
   PLUGINS - Sidebar Styling
   ======================================== */
.sidebar-container {
	margin-top: var(--space-lg);
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
	font-size: 0.875rem; /* 14px */
}

.plugin {
	margin-top: 0;
	padding-bottom: var(--space-lg);
	margin-bottom: var(--space-lg);
	border-bottom: 1px solid var(--border-subtle);
}

.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;
}

.plugin ul li a:hover {
	color: var(--primary);
}

/* 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 {
	background: var(--primary);
	color: white;
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: var(--font-size-sm);
	font-weight: 500;
	display: inline-block;
	transition: all 0.3s ease;
}

.plugin.plugin-tags li a:hover,
.plugin.plugin-categories li a:hover {
	background: var(--primary-dark);
	color: white;
}

/* Search Plugin Styling */
.plugin.plugin-search .form-control {
	border: 2px solid var(--border-color);
	border-radius: var(--radius-sm);
	padding: 0.75rem 1rem;
	background: var(--bg-body);
	color: var(--text-primary);
	transition: all 0.3s ease;
}

.plugin.plugin-search .form-control:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
	outline: none;
}

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

.plugin.plugin-search button:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-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;
	border-radius: 20px;
	font-size: var(--font-size-xs);
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

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

.taxonomy-category:hover {
	background: var(--bg-hover);
	color: var(--primary);
	border-color: var(--primary);
}

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

.taxonomy-tag:hover {
	background: var(--bg-hover);
	color: var(--primary);
	border-color: var(--primary);
}

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

/* ========================================
   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;
	}
}
