/* ==========================================================================
   Modern Pro DLE Theme: Design System & Main Stylesheet
   ========================================================================== */

/* --- CSS Variables & Themes --- */
:root {
	/* Light Mode Colors */
	--bg-primary: #f8fafc;
	--bg-secondary: #ffffff;
	--bg-tertiary: #f1f5f9;
	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #94a3b8;
	
	--accent: #4f46e5;
	--accent-light: #6366f1;
	--accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
	--accent-glow: rgba(79, 70, 229, 0.15);
	
	--border-color: #e2e8f0;
	--border-focus: #a5b4fc;
	
	/* Layout Properties */
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05);
	--shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08);
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	
	--transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	
	--header-height: 70px;
	--container-width: 1200px;
	--header-bg: rgba(255, 255, 255, 0.85);
}

.dark-theme {
	/* Dark Mode Colors */
	--bg-primary: #090d16;
	--bg-secondary: #111827;
	--bg-tertiary: #1f2937;
	--text-primary: #f9fafb;
	--text-secondary: #9ca3af;
	--text-muted: #6b7280;
	
	--accent: #6366f1;
	--accent-light: #818cf8;
	--accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	--accent-glow: rgba(99, 102, 241, 0.25);
	
	--border-color: #1f2937;
	--border-focus: #4f46e5;
	
	--shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
	--shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.4);
	--header-bg: rgba(9, 13, 22, 0.85);
}

/* --- CSS Reset & Global Overrides --- */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px;
	width: 100%;
}

body {
	background-color: var(--bg-primary);
	color: var(--text-primary);
	font-family: var(--font-primary);
	line-height: 1.6;
	font-weight: 400;
	transition: background-color 0.3s ease, color 0.3s ease;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: var(--transition);
}
a:hover {
	color: var(--accent-light);
}

ul, ol {
	list-style: none;
}

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

button, input, textarea, select {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
	background: none;
	border: none;
	outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 8px;
}
::-webkit-scrollbar-track {
	background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
	background: var(--border-color);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
	background: var(--text-muted);
}

/* --- Layout Grid Wrapper --- */
.site-wrapper {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	overflow-x: clip;
}

.site-content-wrapper {
	flex: 1 0 auto;
	padding: 40px 0;
}

.site-container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
	width: 100%;
}

.layout-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

.layout-grid.auth-layout {
	grid-template-columns: 1fr;
	max-width: 600px;
	margin: 0 auto;
}

/* --- Header Component --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: var(--header-bg);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px fill var(--border-color);
	border-bottom: 1px solid var(--border-color);
	transition: var(--transition);
}

.header-container {
	max-width: var(--container-width);
	height: 100%;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Logo */
.header-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.3rem;
	color: var(--text-primary);
}

.logo-svg {
	color: var(--accent);
	transition: transform 0.3s ease;
}

.header-logo:hover .logo-svg {
	transform: rotate(-10deg) scale(1.1);
}

.logo-text .accent-text {
	background: var(--accent-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Desktop Navbar */
.header-nav .nav-list {
	display: flex;
	align-items: center;
	gap: 24px;
}

.header-nav .nav-list a {
	color: var(--text-secondary);
	font-weight: 500;
	position: relative;
	padding: 8px 0;
}

.header-nav .nav-list a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--accent-gradient);
	transition: var(--transition);
}

.header-nav .nav-list a:hover,
.header-nav .nav-list a.active {
	color: var(--text-primary);
}

.header-nav .nav-list a:hover::after,
.header-nav .nav-list a.active::after {
	width: 100%;
}

/* Actions block */
.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.action-btn {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-secondary);
	border: 1px solid var(--border-color);
	background: var(--bg-secondary);
	transition: var(--transition);
}

.action-btn:hover {
	color: var(--text-primary);
	border-color: var(--border-focus);
	box-shadow: var(--shadow-sm);
	transform: translateY(-2px);
}

.mobile-menu-btn {
	display: none;
}

/* Mobile Toggle Hamburger Icon */
.menu-toggle-icon {
	width: 20px;
	height: 14px;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.menu-toggle-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: var(--transition);
}

.action-btn.is-active .menu-toggle-icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.action-btn.is-active .menu-toggle-icon span:nth-child(2) {
	opacity: 0;
}

.action-btn.is-active .menu-toggle-icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Search Dropdown Drawer */
.search-bar-dropdown {
	position: absolute;
	top: var(--header-height);
	left: 0;
	width: 100%;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-color);
	padding: 15px 0;
	transform: translateY(-100%);
	opacity: 0;
	pointer-events: none;
	transition: var(--transition);
	box-shadow: var(--shadow-md);
}

.search-bar-dropdown.is-active {
	transform: translateY(0);
	opacity: 1;
	pointer-events: all;
}

.search-bar-inner {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.search-bar-inner form {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}

.search-bar-inner input {
	width: 100%;
	padding: 12px 50px 12px 18px;
	border: 1px solid var(--border-color);
	background: var(--bg-tertiary);
	border-radius: var(--radius-md);
	font-weight: 400;
	transition: var(--transition);
}

.search-bar-inner input:focus {
	border-color: var(--accent);
	background: var(--bg-secondary);
	box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-btn-submit {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: var(--text-muted);
}

.search-btn-submit:hover {
	color: var(--accent);
}

/* --- Mobile Drawer Menu --- */
.mobile-drawer {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	background: rgba(0,0,0,0.5);
	z-index: 99;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-drawer.is-active {
	opacity: 1;
	pointer-events: all;
	visibility: visible;
}

.mobile-drawer-inner {
	width: 280px;
	height: 100%;
	background: var(--bg-secondary);
	padding: 24px;
	transform: translateX(-100%);
	transition: var(--transition);
	overflow-y: auto;
}

.mobile-drawer.is-active .mobile-drawer-inner {
	transform: translateX(0);
}

.mobile-nav .nav-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mobile-nav .nav-list a {
	display: block;
	padding: 8px 0;
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text-secondary);
}

.mobile-nav .nav-list a.active {
	color: var(--accent);
}

.mobile-cat-divider {
	height: 1px;
	background: var(--border-color);
	margin: 20px 0;
}

.mobile-cat-title {
	display: block;
	font-size: 0.85rem;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--text-muted);
	margin-bottom: 12px;
	letter-spacing: 0.05em;
}

/* Category menu list */
.cat_menu, .mobile-nav ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cat_menu a, .mobile-nav ul a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	transition: var(--transition);
}

.cat_menu a:hover, .mobile-nav ul a:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	padding-left: 16px;
}

body.no-scroll {
	overflow: hidden;
}

/* --- DLE Account Popup Menu --- */
#login_pane {
	position: relative;
}

#login_pane .dropdown-form {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: 280px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: 20px;
	display: none;
	z-index: 101;
	animation: slideDown 0.2s ease;
}

#login_pane.open .dropdown-form {
	display: block;
}

@keyframes slideDown {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.login_pane__info {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border-color);
}

.login_pane__info .avatar .cover {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: block;
	background-size: cover;
	background-position: center;
	border: 2px solid var(--border-color);
}

.login_pane__admin a {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--text-muted);
}
.login_pane__admin a:hover {
	color: var(--accent);
}

.login_pane__menu li {
	margin-bottom: 8px;
}

.login_pane__menu a {
	display: block;
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.login_pane__menu a:hover {
	color: var(--text-primary);
}

.login_pane__menu .right {
	float: right;
}

.login_pane__foot {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
}

/* User not logged in panel dropdown */
.login_form {
	margin-top: 12px;
}

.login_form li {
	position: relative;
	margin-bottom: 12px;
}

.login_form label {
	display: none;
}

.login_form input {
	width: 100%;
	padding: 10px 40px 10px 14px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.login_form input:focus {
	border-color: var(--accent);
	background: var(--bg-secondary);
}

.login_form svg.icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	pointer-events: none;
	width: 16px;
	height: 16px;
}

.login_input-btn button.btn {
	position: absolute;
	right: 3px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	background: var(--accent-gradient);
	color: #fff;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.login_form__foot {
	margin-top: 14px;
	display: flex;
	justify-content: space-between;
	font-size: 0.85rem;
}

.soc_links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border-color);
}

.soc_links a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bg-tertiary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	transition: var(--transition);
}

.soc_links a:hover {
	background: var(--accent);
	color: #ffffff;
	transform: scale(1.1);
}

/* --- Main content page overrides --- */
.site-main {
	min-width: 0;
}

.page-heading-block {
	margin-bottom: 30px;
}

.page-title {
	font-size: 2.2rem;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.2;
}

.page-description {
	color: var(--text-secondary);
	margin-top: 8px;
	font-size: 1.1rem;
}

/* --- Speedbar (breadcrumbs) --- */
.breadcrumbs-container {
	margin-bottom: 24px;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.breadcrumbs-container a {
	color: var(--text-secondary);
}

.breadcrumbs-container a:hover {
	color: var(--accent);
}

/* --- Sidebar Widgets --- */
.site-sidebar {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.sidebar-widget {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	transition: var(--transition);
}

.sidebar-widget:hover {
	box-shadow: var(--shadow-md);
}

.widget-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: 16px;
	position: relative;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-primary);
}

.widget-title::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 50px;
	height: 2px;
	background: var(--accent-gradient);
}

/* Widget: Category menu overrides */
.sidebar-nav {
	display: flex;
	flex-direction: column;
}

.sidebar-nav a {
	display: flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
	font-weight: 500;
}

.sidebar-nav a:hover {
	background: var(--bg-tertiary);
	color: var(--text-primary);
	padding-left: 16px;
}

/* Widget: Popular News */
.popular-news-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.popular-news-list li {
	display: flex;
	gap: 12px;
}

.popular-news-list a {
	color: var(--text-primary);
	font-weight: 500;
	font-size: 0.95rem;
	line-height: 1.3;
}

.popular-news-list a:hover {
	color: var(--accent);
}

.popular-news-meta {
	font-size: 0.8rem;
	color: var(--text-muted);
	margin-top: 4px;
}

/* Widget: Tags Cloud */
.tags-cloud-container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tags-cloud-container a {
	font-size: 0.85rem !important;
	padding: 6px 12px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 30px;
	color: var(--text-secondary);
}

.tags-cloud-container a:hover {
	background: var(--accent-gradient);
	color: #ffffff;
	border-color: transparent;
	transform: scale(1.05);
}

/* Widget: Promo/Banner */
.promo-banner {
	background: var(--accent-gradient);
	color: #ffffff;
	border-radius: var(--radius-md);
	padding: 24px;
	position: relative;
	overflow: hidden;
}

.promo-badge {
	display: inline-block;
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.promo-banner h4 {
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 8px;
}

.promo-banner p {
	font-size: 0.9rem;
	opacity: 0.9;
	margin-bottom: 16px;
}

.promo-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #ffffff;
	color: var(--accent);
	font-weight: 600;
	border-radius: var(--radius-sm);
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.promo-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 14px rgba(0,0,0,0.15);
	color: var(--accent-light);
}

/* --- Shortstory Card Layout --- */
.articles-grid {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.story-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	display: flex;
	flex-direction: column;
	transition: var(--transition);
}

.story-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--border-focus);
}

.story-card-media {
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: var(--bg-tertiary);
	position: relative;
	overflow: hidden;
}

.story-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.story-card:hover .story-card-media img {
	transform: scale(1.05);
}

.story-card-cat {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 2;
	padding: 4px 12px;
	background: var(--accent-gradient);
	color: #ffffff;
	border-radius: 30px;
	font-size: 0.8rem;
	font-weight: 600;
}

.story-card-body {
	padding: 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.story-card-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 12px;
	line-height: 1.3;
}

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

.story-card-title a:hover {
	color: var(--accent);
}

.story-card-text {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin-bottom: 20px;
	flex-grow: 1;
}

.story-card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--border-color);
	font-size: 0.85rem;
	color: var(--text-muted);
}

.story-meta-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.meta-item svg {
	width: 16px;
	height: 16px;
	color: currentColor;
}

.story-meta-right .btn-read-more {
	font-weight: 600;
	color: var(--accent);
	display: flex;
	align-items: center;
	gap: 4px;
}

.story-meta-right .btn-read-more:hover {
	color: var(--accent-light);
	transform: translateX(4px);
}

/* --- Fullstory Page Styling --- */
.fullstory-block {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 30px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
}

.fullstory-header {
	margin-bottom: 24px;
}

.fullstory-cat {
	display: inline-block;
	padding: 4px 12px;
	background: var(--bg-tertiary);
	border-radius: 30px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.fullstory-title {
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary);
	margin-bottom: 16px;
}

.fullstory-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 0.85rem;
	color: var(--text-muted);
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.fullstory-body {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--text-primary);
	margin-bottom: 30px;
}

.fullstory-body p {
	margin-bottom: 20px;
}

.fullstory-body blockquote {
	margin: 24px 0;
	padding: 16px 24px;
	border-left: 4px solid var(--accent);
	background: var(--bg-tertiary);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
}

.fullstory-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 20px;
	border-top: 1px solid var(--border-color);
}

.fullstory-tags a {
	font-size: 0.85rem;
	padding: 4px 10px;
	background: var(--bg-tertiary);
	border-radius: var(--radius-sm);
	color: var(--text-secondary);
}

.fullstory-tags a:hover {
	background: var(--accent);
	color: #ffffff;
}

/* --- Comments & Form styling --- */
.comments-section {
	margin-top: 40px;
}

.section-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 24px;
	color: var(--text-primary);
}

.com-card {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: var(--shadow-sm);
}

.com-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.com-user {
	display: flex;
	align-items: center;
	gap: 12px;
}

.com-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	background: var(--bg-tertiary);
}

.com-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.com-name {
	font-weight: 600;
	color: var(--text-primary);
}

.com-date {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.com-body {
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--text-secondary);
}

/* Add comment form */
.comment-form-block {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	margin-top: 30px;
}

.form-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-group label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary);
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
	background: var(--bg-secondary);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
	height: 120px;
	resize: vertical;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
}

.btn-primary {
	padding: 12px 24px;
	background: var(--accent-gradient);
	color: #ffffff;
	border-radius: var(--radius-sm);
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 12px var(--accent-glow);
	transition: var(--transition);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px var(--accent-glow);
}

/* --- Pagination (navigation.tpl) --- */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.pagination a, .pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
}

.pagination a:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--bg-tertiary);
}

.pagination .current, .pagination span.nav_ext {
	background: var(--accent-gradient);
	color: #ffffff;
	border-color: transparent;
}

/* --- Site Footer --- */
.site-footer {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-color);
	padding: 50px 0 30px 0;
	margin-top: auto;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1.5fr;
	gap: 40px;
}

.footer-title {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--text-primary);
}

.footer-desc {
	color: var(--text-secondary);
	font-size: 0.95rem;
	margin: 16px 0 20px 0;
	max-width: 400px;
}

.social-links {
	display: flex;
	gap: 12px;
}

.social-link {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	transition: var(--transition);
}

.social-link:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--bg-primary);
	transform: translateY(-2px);
}

.footer-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-menu a {
	color: var(--text-secondary);
	font-weight: 500;
}

.footer-menu a:hover {
	color: var(--accent);
	padding-left: 4px;
}

.copyright-info {
	color: var(--text-muted);
	font-size: 0.9rem;
}

.engine-info {
	margin-top: 4px;
	font-size: 0.8rem;
}

.btn-scroll-top {
	margin-top: 20px;
	width: 40px;
	height: 40px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-secondary);
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: var(--transition);
}

.btn-scroll-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: all;
}

.btn-scroll-top:hover {
	color: var(--accent);
	border-color: var(--accent);
	background: var(--bg-primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
	.layout-grid {
		grid-template-columns: 1fr;
	}
	
	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}
	
	.footer-col.info-col {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.header-nav {
		display: none;
	}
	
	.mobile-menu-btn {
		display: flex;
	}
	
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.footer-col.info-col {
		grid-column: span 1;
	}
	
	.page-title {
		font-size: 1.8rem;
	}
	
	.form-grid {
		grid-template-columns: 1fr;
	}
}

/* --- DLE Content Form Styles (.box, .addform, .ui-form) --- */
.box {
	background: var(--bg-secondary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 24px;
	box-shadow: var(--shadow-sm);
	margin-bottom: 30px;
	transition: var(--transition);
}

.box_in .title {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 20px;
	color: var(--text-primary);
}

.ui-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 20px;
}

.combo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.combo_field input {
	width: 100%;
}

.form-group input.wide,
.form-group textarea.wide,
.form-group select {
	width: 100%;
	padding: 12px 16px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
	transition: var(--transition);
}

.form-group input.wide:focus,
.form-group textarea.wide:focus,
.form-group select:focus {
	background: var(--bg-secondary);
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary);
	display: block;
	margin-bottom: 6px;
}

.form_submit {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	gap: 16px;
	flex-wrap: wrap;
}

.c-captcha {
	display: flex;
	align-items: center;
	gap: 12px;
}

.c-captcha img {
	cursor: pointer;
	border-radius: var(--radius-sm);
}

.c-captcha input {
	padding: 10px 14px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-sm);
	max-width: 150px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-weight: 600;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: var(--transition);
}

.btn:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--bg-secondary);
}

.btn-big {
	padding: 14px 28px;
	background: var(--accent-gradient);
	color: #ffffff;
	border: none;
	box-shadow: 0 4px 12px var(--accent-glow);
	transition: var(--transition);
}

.btn-big:hover {
	background: var(--accent-gradient);
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px var(--accent-glow);
}

/* responsive form fixes */
@media (max-width: 576px) {
	.combo {
		grid-template-columns: 1fr;
	}
}

/* Force premium footer background and container layout */
.site-footer {
    padding: 0 !important;
    background: none !important;
    border: none !important;
}


/* === Mobile Menu & Responsive Logo Header Fixes === */
.nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}



/* === Mobile Header Buttons Overlap Fix === */
@media (max-width: 768px) {
    #theme_toggle,
    #search_btn,
    .header-lang-switch {
        display: none !important;
    }
}






/* Fix category link contrast inside news cards */
.story-card-cat a {
	color: #ffffff !important;
	text-decoration: none;
}
.story-card-cat a:hover {
	color: #ffffff !important;
	text-decoration: underline;
}


/* Fix metadata links color to match icons and text */
.meta-item a {
	color: inherit !important;
	text-decoration: none;
	transition: color 0.2s ease;
}
.meta-item a:hover {
	color: var(--accent) !important;
	text-decoration: underline;
}


/* Styling next-prev articles navigation */
.next-prev-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px !important;
	gap: 15px;
}
.next-prev-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--border-color);
	border-radius: 30px;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--text-color) !important;
	text-decoration: none !important;
	transition: all 0.25s ease;
	background: #ffffff;
}
.next-prev-links a svg {
	color: var(--text-muted);
	transition: color 0.25s ease, transform 0.25s ease;
}
.next-prev-links .btn-prev-article {
	margin-right: auto;
}
.next-prev-links .btn-next-article {
	margin-left: auto;
}
.next-prev-links a:hover {
	background: var(--accent);
	color: #ffffff !important;
	border-color: var(--accent);
	box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
}
.next-prev-links a:hover svg {
	color: #ffffff;
}
.next-prev-links .btn-prev-article:hover svg {
	transform: translateX(-3px);
}
.next-prev-links .btn-next-article:hover svg {
	transform: translateX(3px);
}



/* Premium styling for Read More button inside news cards */
.btn-read-more {
	font-weight: 600;
	color: var(--accent) !important;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border: 1px solid rgba(108, 92, 231, 0.2) !important;
	border-radius: 30px;
	background: rgba(108, 92, 231, 0.05);
	font-size: 0.85rem;
	text-decoration: none !important;
	transition: all 0.25s ease !important;
}
.btn-read-more svg {
	transition: transform 0.25s ease;
}
.story-meta-right .btn-read-more:hover {
	background: var(--accent) !important;
	color: #ffffff !important;
	border-color: var(--accent) !important;
	box-shadow: 0 4px 10px rgba(108, 92, 231, 0.15) !important;
	transform: none !important;
}
.story-meta-right .btn-read-more:hover svg {
	transform: translateX(3px);
}


/* Solid violet category badge inside article header */
.fullstory-cat {
	background: var(--accent) !important;
	border: none !important;
}
.fullstory-cat a {
	color: #ffffff !important;
	text-decoration: none !important;
}
.fullstory-cat a:hover {
	color: #ffffff !important;
	text-decoration: underline !important;
}


/* --- Horizontal Story Card Custom Layout --- */
.story-card {
	flex-direction: row !important;
	align-items: stretch !important;
}

.story-card-media {
	width: 320px !important;
	min-width: 320px !important;
	height: auto !important;
	aspect-ratio: auto !important;
	order: 2 !important; /* Put thumbnail on the right */
}

.story-card-body {
	order: 1 !important; /* Put body on the left */
}

.story-card-cat-pill {
	display: inline-block;
	align-self: flex-start;
	padding: 4px 12px;
	background: rgba(108, 92, 231, 0.08);
	color: var(--accent);
	border: 1px solid rgba(108, 92, 231, 0.15);
	border-radius: 30px;
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 14px;
	transition: var(--transition);
}

.story-card-cat-pill a {
	color: var(--accent) !important;
	text-decoration: none !important;
}

.story-card-cat-pill:hover {
	background: var(--accent);
}

.story-card-cat-pill:hover a {
	color: #ffffff !important;
}

/* Hide the old absolute cat badge if present */
.story-card-media .story-card-cat {
	display: none !important;
}

/* --- Fullstory Cover Image Banner --- */
.fullstory-cover {
	width: 100%;
	aspect-ratio: 21 / 9;
	max-height: 420px;
	border-radius: var(--radius-md);
	overflow: hidden;
	margin-bottom: 30px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
}

.fullstory-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.fullstory-cover:hover img {
	transform: scale(1.02);
}

/* Mobile adaptation */
@media (max-width: 768px) {
	.story-card {
		flex-direction: column !important;
	}
	.story-card-media {
		width: 100% !important;
		min-width: 100% !important;
		aspect-ratio: 16 / 9 !important;
		order: -1 !important; /* Put thumbnail on top on mobile */
	}
	.fullstory-cover {
		aspect-ratio: 16 / 9;
		max-height: 280px;
	}
}

/* --- Hide DLE "comments disabled" info box --- */
.berrors {
	display: none !important;
}