/*
Theme Name: TechSyndrome Gaming
Theme URI: https://techsyndrome.com/
Author: Antigravity AI
Author URI: https://techsyndrome.com/
Description: A premium dark gaming theme with teal/neon/green accents, a featured post slider, glassmorphic design, and modern animations. Built for gaming news, reviews, and esports content.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techsyndrome-gaming
Tags: dark, gaming, custom-colors, custom-menu, featured-images, flexible-header, blog, entertainment
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
*/

/* ========================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ======================================== */
:root {
    /* Backgrounds */
    --bg-deep: #06060b;
    --bg-dark: #0a0a12;
    --bg-card: #0f1018;
    --bg-card-hover: #141520;
    --bg-elevated: #161724;

    /* Accent Colors — Teal / Neon / Green */
    --accent-primary: #00ffc8;
    --accent-primary-rgb: 0, 255, 200;
    --accent-secondary: #39ff14;
    --accent-secondary-rgb: 57, 255, 20;
    --accent-tertiary: #00e5ff;
    --accent-tertiary-rgb: 0, 229, 255;

    /* Text */
    --text-white: #ffffff;
    --text-primary: #e0e4ec;
    --text-secondary: #8a8fa8;
    --text-muted: #5a5f78;

    /* Glass */
    --glass-bg: rgba(10, 10, 18, 0.75);
    --glass-bg-solid: rgba(15, 16, 24, 0.92);
    --glass-border: rgba(0, 255, 200, 0.08);
    --glass-border-hover: rgba(0, 255, 200, 0.2);

    /* Shadows & Glows */
    --glow-sm: 0 0 8px rgba(var(--accent-primary-rgb), 0.3);
    --glow-md: 0 0 20px rgba(var(--accent-primary-rgb), 0.25);
    --glow-lg: 0 0 40px rgba(var(--accent-primary-rgb), 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 8px 32px rgba(var(--accent-primary-rgb), 0.15);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-hero: linear-gradient(to top, var(--bg-deep) 0%, transparent 60%);
    --gradient-border: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.4), rgba(var(--accent-secondary-rgb), 0.1), rgba(var(--accent-tertiary-rgb), 0.4));

    /* Misc */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-heading: 'Outfit', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --header-height: 72px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(var(--accent-primary-rgb), 0.3);
    color: var(--text-white);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--accent-primary-rgb), 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--accent-primary-rgb), 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background ambient glow - adds depth */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(var(--accent-primary-rgb), 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(var(--accent-secondary-rgb), 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    margin-bottom: 1rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    background: var(--glass-bg-solid);
    border-bottom-color: var(--glass-border-hover);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Site Branding */
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.custom-logo {
    max-height: 44px;
    width: auto;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}

.site-title a {
    color: var(--text-white);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity var(--transition-fast);
}

.site-title a:hover {
    opacity: 0.85;
}

.site-description {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-navigation .menu-container ul,
.main-navigation > ul {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.06);
}

.main-navigation .current-menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--glow-sm);
}

/* Sub-menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--glass-bg-solid);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 8px;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.main-navigation li:hover > ul {
    display: flex;
}

.main-navigation ul ul a {
    font-size: 0.8rem;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(var(--accent-primary-rgb), 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.header-btn:hover {
    color: var(--accent-primary);
    border-color: var(--glass-border-hover);
    background: rgba(var(--accent-primary-rgb), 0.1);
    box-shadow: var(--glow-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 11, 0.95);
    backdrop-filter: blur(30px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 24px;
}

.search-overlay .search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    padding: 16px 0;
    outline: none;
    transition: border-color var(--transition-base);
}

.search-overlay .search-field:focus {
    border-bottom-color: var(--accent-primary);
}

.search-overlay .search-field::placeholder {
    color: var(--text-muted);
}

.search-overlay .close-search {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.search-overlay .close-search:hover {
    color: var(--accent-primary);
}

/* ========================================
   NEON UTILITIES
   ======================================== */
.neon-text {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(var(--accent-primary-rgb), 0.5),
                 0 0 30px rgba(var(--accent-primary-rgb), 0.2);
}

.neon-text-green {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(var(--accent-secondary-rgb), 0.5),
                 0 0 30px rgba(var(--accent-secondary-rgb), 0.2);
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: var(--glow-sm);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 3rem;
    text-align: center;
    letter-spacing: 1px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: var(--bg-deep);
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    color: var(--bg-deep);
    transform: translateY(-2px);
    box-shadow: var(--glow-md);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent-primary);
    padding: 11px 27px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-outline:hover {
    color: var(--bg-deep);
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-sm);
}

/* ========================================
   FEATURED SLIDER
   ======================================== */
.featured-slider-section {
    padding-top: calc(var(--header-height) + 1rem);
}

.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
}

.slider-wrapper {
    display: flex;
    transition: transform var(--transition-smooth);
    will-change: transform;
}

.slide {
    position: relative;
    min-width: 100%;
    height: 560px;
}

.slide-image-wrapper {
    position: absolute;
    inset: 0;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-slide-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628 0%, #0f1a2e 40%, #0a1020 100%);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, rgba(6, 6, 11, 0.4) 50%, rgba(6, 6, 11, 0.2) 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 48px;
    z-index: 2;
}

.slide-content .post-categories {
    margin-bottom: 12px;
}

.slide-content .post-categories a {
    display: inline-block;
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    transition: all var(--transition-fast);
    margin-right: 6px;
}

.slide-content .post-categories a:hover {
    background: var(--accent-primary);
    color: var(--bg-deep);
}

.slide-content h3 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-transform: uppercase;
    line-height: 1.1;
    max-width: 700px;
}

.slide-content h3 a {
    color: var(--text-white);
    transition: all var(--transition-fast);
}

.slide-content h3 a:hover {
    color: var(--accent-primary);
    text-shadow: var(--glow-sm);
}

.slide-content .slide-excerpt {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 540px;
    line-height: 1.7;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.slide-meta i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 24px;
    z-index: 5;
    pointer-events: none;
}

.slider-btn {
    pointer-events: all;
    width: 52px;
    height: 52px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--glow-md);
    transform: scale(1.1);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
}

.dot.active {
    background: var(--accent-primary);
    box-shadow: var(--glow-sm);
    transform: scale(1.2);
}

.dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.4);
}

/* Slider progress bar */
.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 5;
    transition: width 5s linear;
    box-shadow: var(--glow-sm);
}

/* ========================================
   CONTENT GRID (Post Cards)
   ======================================== */
.latest-content-section {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 1rem;
}

.card-article {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
    position: relative;
}

.card-article::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: var(--gradient-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    z-index: 1;
}

.card-article:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    background: var(--bg-card-hover);
}

.card-article:hover::before {
    opacity: 1;
}

.card-image {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.card-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-article:hover .card-image img {
    transform: scale(1.08);
}

.placeholder-img-small {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a1628, #121a30, #0a1020);
}

.card-cat-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.card-content {
    padding: 22px;
}

.entry-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.35;
}

.entry-title a {
    color: var(--text-white);
    transition: color var(--transition-fast);
}

.entry-title a:hover {
    color: var(--accent-primary);
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.entry-meta i {
    color: rgba(var(--accent-primary-rgb), 0.5);
    margin-right: 4px;
}

.entry-summary,
.entry-summary p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Read-more link under cards */
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
    margin-top: 14px;
    transition: gap var(--transition-fast);
}

.read-more-link:hover {
    gap: 10px;
    color: var(--accent-secondary);
}

/* ========================================
   POSTS NAVIGATION
   ======================================== */
.posts-navigation,
.pagination {
    margin: 3rem 0;
    text-align: center;
}

.posts-navigation .nav-links,
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.posts-navigation .nav-links a,
.pagination .nav-links a,
.pagination .nav-links .current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 600;
    transition: all var(--transition-base);
}

.posts-navigation .nav-links a:hover,
.pagination .nav-links a:hover {
    background: rgba(var(--accent-primary-rgb), 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pagination .nav-links .current {
    background: var(--accent-primary);
    color: var(--bg-deep);
    border-color: var(--accent-primary);
}

/* ========================================
   SINGLE POST
   ======================================== */
.single-post-hero {
    position: relative;
    height: 500px;
    margin-top: var(--header-height);
    overflow: hidden;
}

.single-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero .placeholder-slide-img {
    position: absolute;
    inset: 0;
}

.single-post-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-deep) 0%, rgba(6, 6, 11, 0.5) 50%, rgba(6, 6, 11, 0.3) 100%);
}

.single-post-hero .hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 48px 0;
    z-index: 2;
}

.single-post-header {
    max-width: 800px;
}

.single-post-header .post-categories {
    margin-bottom: 16px;
}

.single-post-header .post-categories a {
    display: inline-block;
    background: rgba(var(--accent-primary-rgb), 0.15);
    color: var(--accent-primary);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
    margin-right: 6px;
}

.single-post-header h1 {
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.single-post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.single-post-meta i {
    color: var(--accent-primary);
}

/* Post Content */
.single-post-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 24px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-primary);
}

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.entry-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content blockquote {
    border-left: 3px solid var(--accent-primary);
    background: var(--bg-card);
    padding: 24px 28px;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content code {
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    color: var(--accent-primary);
}

.entry-content pre {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--glass-border);
}

.entry-content pre code {
    background: transparent;
    padding: 0;
}

.entry-content img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
}

.entry-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(var(--accent-primary-rgb), 0.3);
}

.entry-content a:hover {
    text-decoration-color: var(--accent-primary);
}

/* Post navigation (prev/next) */
.post-navigation-section {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.post-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-nav-item {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    transition: all var(--transition-base);
}

.post-nav-item:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glow-sm);
}

.post-nav-item .nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.post-nav-item .nav-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.post-nav-item:hover .nav-title {
    color: var(--accent-primary);
}

.post-nav-item.next {
    text-align: right;
}

/* ========================================
   SIDEBAR
   ======================================== */
.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: var(--glow-sm);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.widget ul li a:hover {
    color: var(--accent-primary);
    padding-left: 6px;
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 24px 4rem;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.comment .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment .comment-author img {
    border-radius: 50%;
    border: 2px solid rgba(var(--accent-primary-rgb), 0.3);
}

.comment .comment-author .fn {
    font-weight: 700;
    color: var(--text-white);
}

.comment .comment-metadata {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.comment .comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.comment .reply a {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-primary);
}

/* Comment form */
.comment-respond {
    margin-top: 2rem;
}

.comment-respond .comment-reply-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 16px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-sm);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-accent);
    color: var(--bg-deep);
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-md);
}

/* ========================================
   PAGE TEMPLATE
   ======================================== */
.page-content-area {
    margin-top: calc(var(--header-height) + 3rem);
    margin-bottom: 4rem;
}

.page-header-section {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header-section h1 {
    font-size: 3rem;
    text-transform: uppercase;
}

/* ========================================
   ARCHIVE / SEARCH
   ======================================== */
.archive-header,
.search-header {
    margin-top: calc(var(--header-height) + 2rem);
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

.archive-header h1,
.search-header h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.archive-header .archive-description,
.search-header .search-info {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: var(--header-height);
}

.error-404-content .error-code {
    font-family: var(--font-heading);
    font-size: 10rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    margin-bottom: 1rem;
    animation: glitch 3s infinite;
    position: relative;
}

@keyframes glitch {
    0%, 90%, 100% { opacity: 1; transform: none; }
    91% { opacity: 0.8; transform: translateX(-2px); }
    92% { opacity: 0.8; transform: translateX(2px); }
    93% { opacity: 1; transform: none; }
    94% { opacity: 0.8; transform: translateX(-1px) skewX(-1deg); }
    95% { opacity: 1; transform: none; }
}

.error-404-content h1 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.error-404-content p {
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.error-404-content .search-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.error-404-content .search-form .search-field {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: var(--text-white);
    padding: 12px 16px;
    font-family: var(--font-body);
    outline: none;
}

.error-404-content .search-form .search-submit {
    background: var(--gradient-accent);
    color: var(--bg-deep);
    border: none;
    padding: 12px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.3;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 48px;
    padding: 4rem 0;
}

.footer-about .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-about .footer-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(var(--accent-primary-rgb), 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(var(--accent-primary-rgb), 0.15);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: var(--glow-sm);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-white);
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--accent-primary);
    box-shadow: var(--glow-sm);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a::before {
    content: '›';
    color: var(--accent-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-primary);
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-secondary);
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}

/* ========================================
   WORDPRESS-SPECIFIC
   ======================================== */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: var(--radius-md);
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

/* Page links */
.page-links {
    margin: 2rem 0;
    font-weight: 700;
}

.page-links .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin: 0 4px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: var(--glow-sm); }
    50% { box-shadow: var(--glow-md); }
}

/* ========================================
   RESPONSIVE — TABLET
   ======================================== */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-about {
        grid-column: 1 / -1;
    }

    .slide-content h3 {
        font-size: 2.2rem;
    }

    .single-post-header h1 {
        font-size: 2.2rem;
    }
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--glass-bg-solid);
        backdrop-filter: blur(30px);
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
        z-index: 999;
    }

    .main-navigation.toggled {
        transform: translateX(0);
    }

    .main-navigation .menu-container ul,
    .main-navigation > ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-navigation a {
        font-size: 1rem;
        padding: 14px 16px;
    }

    .main-navigation ul ul {
        position: static;
        background: transparent;
        border: none;
        padding: 0 0 0 16px;
        box-shadow: none;
        display: flex;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        height: 420px;
    }

    .slide-content {
        padding: 28px;
    }

    .slide-content h3 {
        font-size: 1.6rem;
    }

    .slide-content .slide-excerpt {
        display: none;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .single-post-hero {
        height: 350px;
    }

    .single-post-header h1 {
        font-size: 1.8rem;
    }

    .single-post-content {
        padding: 2rem 16px;
    }

    .post-nav-links {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 3rem 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .error-404-content .error-code {
        font-size: 6rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

/* ========================================
   RESPONSIVE — SMALL MOBILE
   ======================================== */
@media (max-width: 480px) {
    .slide {
        height: 360px;
    }

    .slide-content h3 {
        font-size: 1.3rem;
    }

    .slider-nav {
        display: none;
    }

    .card-image {
        height: 180px;
    }
}
