/*
Theme Name: CyberEDU Blog Theme 2026
Theme URI: https://cyber-edu.co
Author: CyberEDU Team
Author URI: https://cyber-edu.co
Description: A cyber-futuristic WordPress theme for the CyberEDU blog and resources section. Dark theme with neon accents, designed to match the React main website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cye-2026
Tags: blog, dark-mode, custom-logo, custom-menu, featured-images, footer-widgets, one-column, two-columns, threaded-comments, translation-ready

CyberEDU Blog Theme - Cyber Defense Training Platform
*/

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
    /* Core Dark Theme - Cyber Futurism */
    --cye-background: #0a0f1a;
    --cye-foreground: #f8fafc;
    
    --cye-card: #0d1424;
    --cye-card-foreground: #f8fafc;
    
    /* Brand Colors from Logo */
    --cye-primary: #00a2fb;
    --cye-primary-foreground: #f8fafc;
    --cye-primary-rgb: 0, 162, 251;
    
    --cye-secondary: #ee4757;
    --cye-secondary-foreground: #f8fafc;
    --cye-secondary-rgb: 238, 71, 87;
    
    --cye-accent-green: #12b886;
    --cye-accent-orange: #fd7e14;
    
    --cye-muted: #1a2333;
    --cye-muted-foreground: #64748b;
    
    --cye-border: #1e2d45;
    
    /* Glow Effects */
    --cye-glow-primary: 0 0 40px rgba(0, 162, 251, 0.4);
    --cye-glow-secondary: 0 0 40px rgba(238, 71, 87, 0.4);
    
    /* Grid */
    --cye-grid-color: rgba(30, 45, 69, 0.5);
    
    /* Fonts */
    --cye-font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --cye-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --cye-radius: 0.75rem;
    --cye-container-max: 1400px;
    --cye-container-padding: 2rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--cye-font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cye-foreground);
    background-color: var(--cye-background);
    min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--cye-font-mono);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--cye-muted-foreground);
}

a {
    color: var(--cye-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--cye-foreground);
}

.font-mono {
    font-family: var(--cye-font-mono);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
    width: 100%;
    max-width: var(--cye-container-max);
    margin: 0 auto;
    padding-left: var(--cye-container-padding);
    padding-right: var(--cye-container-padding);
}

@media (max-width: 768px) {
    .container {
        --cye-container-padding: 1rem;
    }
}

.text-primary { color: var(--cye-primary); }
.text-secondary { color: var(--cye-secondary); }
.text-muted { color: var(--cye-muted-foreground); }
.text-foreground { color: var(--cye-foreground); }

.bg-card { background-color: var(--cye-card); }
.bg-muted { background-color: var(--cye-muted); }

/* ============================================
   GRID BACKGROUND PATTERN
   ============================================ */
.cyber-grid {
    background-image: 
        linear-gradient(var(--cye-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--cye-grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--cye-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cye-primary) 0%, #0077cc 100%);
    color: var(--cye-primary-foreground);
    border-color: var(--cye-primary);
    box-shadow: 0 0 20px rgba(var(--cye-primary-rgb), 0.3);
}

.btn-primary:hover {
    box-shadow: var(--cye-glow-primary);
    transform: translateY(-1px);
    color: var(--cye-primary-foreground);
}

.btn-outline {
    background: transparent;
    color: var(--cye-primary);
    border-color: var(--cye-primary);
}

.btn-outline:hover {
    background: rgba(var(--cye-primary-rgb), 0.1);
    box-shadow: 0 0 20px rgba(var(--cye-primary-rgb), 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--cye-muted-foreground);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--cye-muted);
    color: var(--cye-foreground);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(var(--cye-primary-rgb), 0.5);
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-family: var(--cye-font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background: rgba(var(--cye-primary-rgb), 0.1);
    color: var(--cye-primary);
    border: 1px solid rgba(var(--cye-primary-rgb), 0.2);
}

.badge-secondary {
    background: rgba(var(--cye-secondary-rgb), 0.1);
    color: var(--cye-secondary);
    border-color: rgba(var(--cye-secondary-rgb), 0.2);
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-family: var(--cye-font-mono);
    font-size: 0.75rem;
    background: var(--cye-muted);
    color: var(--cye-muted-foreground);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--cye-primary);
    color: var(--cye-primary-foreground);
}

/* ============================================
   FORMS
   ============================================ */
.form-input,
.form-textarea,
.search-field {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    color: var(--cye-foreground);
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    outline: none;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.search-field:focus {
    border-color: var(--cye-primary);
    box-shadow: 0 0 0 3px rgba(var(--cye-primary-rgb), 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder,
.search-field::placeholder {
    color: var(--cye-muted-foreground);
}

/* Search with icon */
.search-with-icon {
    position: relative;
}

.search-with-icon .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cye-muted-foreground);
    pointer-events: none;
    display: flex;
}

.search-with-icon .search-field {
    padding-left: 3rem;
    border-radius: var(--cye-radius);
}

@media (min-width: 640px) {
    .search-with-icon .search-field {
        padding: 1rem 1rem 1rem 3rem;
    }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cye-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 15, 26, 0.95);
    border-bottom-color: rgba(var(--cye-primary-rgb), 0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem; /* h-16 on mobile */
}

@media (min-width: 768px) {
    .site-header .container {
        height: 5rem; /* h-20 on md+ */
    }
}

.site-logo img,
.site-logo .custom-logo {
    height: 2rem !important;
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .site-logo img,
    .site-logo .custom-logo {
        height: 2.5rem !important;
        max-width: 200px;
    }
}

/* Fix WordPress custom logo wrapper */
.custom-logo-link {
    display: flex;
    align-items: center;
}

.custom-logo-link img {
    height: 2rem !important;
    width: auto !important;
    max-width: 160px;
}

@media (min-width: 768px) {
    .custom-logo-link img {
        height: 2.5rem !important;
        max-width: 200px;
    }
}

.main-navigation {
    display: none;
}

@media (min-width: 1024px) {
    .main-navigation {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
}

/* Primary menu - horizontal layout */
.main-navigation > ul,
.main-navigation ul.primary-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Menu items */
.main-navigation > ul > li,
.main-navigation ul.primary-menu > li {
    position: relative;
}

.main-navigation a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cye-muted-foreground);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--cye-foreground);
    background: rgba(255, 255, 255, 0.05);
}

.main-navigation .current-menu-item > a {
    color: var(--cye-primary);
}

/* Chevron icon in menu */
.main-navigation a .chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.main-navigation > ul > li:hover > a .chevron,
.main-navigation ul.primary-menu > li:hover > a .chevron {
    transform: rotate(180deg);
}

/* Dropdown / Submenu - VERTICAL layout */
.main-navigation .sub-menu {
    /* Reset to vertical column layout */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    
    /* Positioning - push down to leave room for hover bridge */
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    padding: 0.5rem;
    
    /* Styling - matches React dropdown */
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: 0.75rem; /* rounded-xl */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(var(--cye-primary-rgb), 0.05);
    
    /* Animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    
    /* Reset list styles */
    list-style: none;
    z-index: 100;
}

/* Invisible hover bridge to prevent gap issue */
.main-navigation > ul > li.menu-item-has-children::before,
.main-navigation ul.primary-menu > li.menu-item-has-children::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    height: calc(0.5rem + 10px); /* Bridge the gap + transform offset */
    background: transparent;
    pointer-events: auto;
}

/* Show submenu on hover */
.main-navigation > ul > li:hover > .sub-menu,
.main-navigation ul.primary-menu > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Submenu items */
.main-navigation .sub-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Submenu links - vertical block display */
.main-navigation .sub-menu a {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--cye-muted-foreground);
    border-radius: 0.5rem;
    background: transparent;
    transition: all 0.15s ease;
}

.main-navigation .sub-menu a:hover {
    color: var(--cye-foreground);
    background: rgba(255, 255, 255, 0.05);
}

/* Header actions */
.header-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .header-actions {
        display: flex;
    }
}

/* Mobile menu toggle */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--cye-muted-foreground);
    cursor: pointer;
    transition: color 0.15s ease;
}

.menu-toggle:hover {
    color: var(--cye-foreground);
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.menu-toggle .menu-icon,
.menu-toggle .close-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Toggle icon visibility with CSS */
.menu-toggle .close-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    display: none;
}

.menu-toggle[aria-expanded="true"] .close-icon {
    display: flex;
}

/* Mobile navigation - fixed below header */
.mobile-navigation {
    position: fixed;
    top: 4rem; /* Below header on mobile */
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cye-background);
    border-top: 1px solid var(--cye-border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
    
    /* Hidden by default */
    display: none;
}

@media (min-width: 768px) {
    .mobile-navigation {
        top: 5rem; /* Match desktop header height */
    }
}

/* Show mobile menu when open */
.mobile-navigation.is-open {
    display: block;
}

/* Hide on desktop */
@media (min-width: 1024px) {
    .mobile-navigation,
    .mobile-navigation.is-open {
        display: none !important;
    }
}

.mobile-navigation .container {
    padding-top: 1rem;
    padding-bottom: 2rem; /* Extra padding at bottom for scroll */
}

.mobile-navigation ul,
.mobile-navigation ul.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Regular menu items - like React's direct links */
.mobile-navigation li {
    margin: 0;
}

.mobile-navigation a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--cye-foreground);
    transition: color 0.15s ease;
    border-radius: 0.5rem;
}

.mobile-navigation a:hover,
.mobile-navigation a:active {
    color: var(--cye-primary);
    background: rgba(255, 255, 255, 0.03);
}

/* Submenu items */
.mobile-navigation .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 0.5rem;
    list-style: none;
    margin: 0;
}

.mobile-navigation .sub-menu li {
    margin: 0;
}

.mobile-navigation .sub-menu a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--cye-foreground);
}

.mobile-navigation .sub-menu a:hover,
.mobile-navigation .sub-menu a:active {
    color: var(--cye-primary);
    background: rgba(255, 255, 255, 0.03);
}

/* Mobile menu labels - section headers like React */
.mobile-navigation .mobile-menu-label,
.mobile-navigation .menu-item-label {
    display: block;
    padding: 1rem 1rem 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cye-muted-foreground);
    pointer-events: none;
    list-style: none;
}

.mobile-navigation li:first-child.mobile-menu-label,
.mobile-navigation li:first-child.menu-item-label {
    margin-top: 0;
    padding-top: 0;
}

/* Separator/Divider between menu sections */
.mobile-navigation .mobile-menu-divider,
.mobile-navigation .menu-item-separator {
    height: 1px;
    background: var(--cye-border);
    margin: 0.75rem 0;
    list-style: none;
}

/* Mobile action buttons */
.mobile-navigation .mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--cye-border);
}

.mobile-navigation .mobile-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.site-main {
    padding-top: 4rem; /* Account for fixed header - mobile */
    min-height: calc(100vh - 4rem);
}

@media (min-width: 768px) {
    .site-main {
        padding-top: 5rem; /* Account for fixed header - desktop */
        min-height: calc(100vh - 5rem);
    }
}

/* Page/Post hero section */
.page-hero {
    position: relative;
    padding: 5rem 0 3rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 5rem 0 4rem;
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: 
        linear-gradient(var(--cye-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--cye-grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to bottom, rgba(var(--cye-primary-rgb), 0.08) 0%, var(--cye-background) 60%, var(--cye-background) 100%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero .badge {
    margin-bottom: 1.5rem;
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero h1 .text-primary {
    color: var(--cye-primary);
}

.page-hero .lead {
    font-size: 1rem;
    color: var(--cye-muted-foreground);
    max-width: 42rem;
}

@media (min-width: 768px) {
    .page-hero .lead {
        font-size: 1.125rem;
    }
}

/* ============================================
   BLOG LISTING
   ============================================ */
.blog-layout {
    display: grid;
    gap: 2rem;
    width: 100%;
}

@media (min-width: 1024px) {
    .blog-layout {
        grid-template-columns: 280px 1fr;
        gap: 2.5rem;
    }
}

/* Blog main content area */
.blog-main-content {
    min-width: 0;
}

@media (min-width: 1024px) {
    .blog-main-content {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Posts grid */
.posts-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Blog section wrapper */
.blog-section {
    width: 100%;
    max-width: var(--cye-container-max);
    margin: 0 auto;
    padding: 0 var(--cye-container-padding);
}

/* Post card */
.post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    border-color: rgba(var(--cye-primary-rgb), 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(var(--cye-primary-rgb), 0.1);
}

/* Full-card link wrapper */
.post-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.post-card-link:hover {
    color: inherit;
}

.post-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

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

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--cye-muted);
}

.post-card-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    font-family: var(--cye-font-mono);
    font-size: 0.75rem;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 0.25rem;
    color: var(--cye-foreground);
}

.post-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.25rem;
}

.post-card-title {
    font-family: var(--cye-font-mono);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
    color: var(--cye-primary);
}

.post-card-title a {
    color: inherit;
}

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-card-author img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-author-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cye-foreground);
}

.post-card-date,
.post-card-read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--cye-muted-foreground);
}

.post-card-date svg,
.post-card-read-time svg {
    width: 0.75rem;
    height: 0.75rem;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--cye-muted-foreground);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--cye-border);
}

.post-card-footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.post-card-arrow {
    display: flex;
    color: var(--cye-muted-foreground);
    transition: all 0.2s ease;
}

.post-card-arrow svg {
    width: 1rem;
    height: 1rem;
}

.post-card:hover .post-card-arrow {
    color: var(--cye-primary);
    transform: translateX(4px);
}

/* Featured post */
.post-featured {
    grid-column: 1 / -1;
    display: grid;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: calc(var(--cye-radius) * 1.5);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.post-featured:hover {
    border-color: rgba(var(--cye-primary-rgb), 0.5);
}

@media (min-width: 768px) {
    .post-featured {
        grid-template-columns: 1fr 1fr;
    }
}

.post-featured .post-card-image {
    aspect-ratio: 16/10;
}

@media (min-width: 768px) {
    .post-featured .post-card-image {
        aspect-ratio: auto;
        height: 100%;
    }
}

.post-featured .post-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .post-featured .post-card-content {
        padding: 2.5rem 3rem;
    }
}

.post-featured .post-card-title {
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .post-featured .post-card-title {
        font-size: 1.75rem;
    }
}

.post-featured .post-card-excerpt {
    -webkit-line-clamp: 3;
    font-size: 1rem;
}

.post-featured .post-card-title:hover,
.post-featured:hover .post-card-title {
    color: var(--cye-primary);
}

/* Read Article link in featured post */
.read-article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--cye-primary);
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    transition: gap 0.2s ease;
}

.read-article-link:hover,
.post-featured:hover .read-article-link {
    gap: 0.625rem;
    color: var(--cye-primary);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .sidebar {
        grid-column: 1;
        grid-row: 1;
    }
}

.sidebar-widget {
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    padding: 1.25rem;
}

.sidebar-widget-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sidebar-widget-title svg {
    width: 1rem;
    height: 1rem;
    color: var(--cye-primary);
}

/* Categories widget */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 0.25rem;
}

.categories-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.categories-list a:hover {
    background: var(--cye-muted);
    color: var(--cye-foreground);
}

.categories-list .current-cat a {
    background: var(--cye-primary);
    color: var(--cye-primary-foreground);
}

.categories-list .count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Tags widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tagcloud a {
    padding: 0.25rem 0.75rem;
    font-family: var(--cye-font-mono);
    font-size: 0.75rem !important;
    background: var(--cye-muted);
    color: var(--cye-muted-foreground);
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.tagcloud a:hover {
    background: var(--cye-primary);
    color: var(--cye-primary-foreground);
}

/* Recent posts widget */
.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 0.75rem;
}

.recent-post-number {
    font-family: var(--cye-font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.recent-post-content h4 {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.recent-post-content h4 a {
    color: var(--cye-foreground);
    transition: color 0.2s ease;
}

.recent-post-content h4 a:hover {
    color: var(--cye-primary);
}

.recent-post-content span {
    font-size: 0.75rem;
    color: var(--cye-muted-foreground);
}

/* Newsletter widget */
.widget-newsletter {
    background: linear-gradient(135deg, rgba(var(--cye-primary-rgb), 0.1) 0%, rgba(var(--cye-secondary-rgb), 0.1) 100%);
    border-color: rgba(var(--cye-primary-rgb), 0.2);
}

.widget-newsletter p {
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    margin-bottom: 1rem;
}

.widget-newsletter .btn {
    width: 100%;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-hero {
    position: relative;
    padding: 5rem 0 2rem;
    overflow: hidden;
}

.single-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 
        linear-gradient(var(--cye-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--cye-grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.single-post-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to bottom, rgba(var(--cye-primary-rgb), 0.04) 0%, var(--cye-background) 100%);
    pointer-events: none;
}

.single-post-hero .container {
    position: relative;
    z-index: 1;
    max-width: 56rem;
}

.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
}

.single-post-back svg {
    width: 1rem;
    height: 1rem;
}

.single-post-back:hover {
    color: var(--cye-foreground);
}

.single-post-categories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.single-post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.single-post-excerpt {
    font-size: 1.25rem;
    color: var(--cye-muted-foreground);
    margin-bottom: 2rem;
}

.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cye-border);
}

.single-post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.single-post-author img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.single-post-author-info .name {
    font-family: var(--cye-font-mono);
    font-weight: 500;
    color: var(--cye-foreground);
}

.single-post-author-info .role {
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
}

.single-post-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
}

.single-post-info > span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.single-post-info svg {
    width: 1rem;
    height: 1rem;
}

/* Featured image */
.single-post-featured-image {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 var(--cye-container-padding);
}

.single-post-featured-image .image-wrapper {
    aspect-ratio: 21/9;
    border-radius: calc(var(--cye-radius) * 1.5);
    overflow: hidden;
}

.single-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Post content */
.single-post-layout {
    display: grid;
    gap: 3rem;
    padding: 3rem 0;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 4rem 1fr 18rem;
    }
}

/* Share sidebar */
.share-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .share-sidebar {
        display: block;
    }
}

.share-sidebar .sticky-wrapper {
    position: sticky;
    top: 7rem;
}

.share-sidebar .label {
    font-family: var(--cye-font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--cye-muted-foreground);
    margin-bottom: 1rem;
}

.share-sidebar .share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: 0.5rem;
    color: var(--cye-muted-foreground);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    border-color: var(--cye-primary);
    color: var(--cye-primary);
}

.share-btn svg {
    width: 1rem;
    height: 1rem;
}

/* Article content */
.post-content {
    max-width: 65ch;
}

.post-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--cye-muted-foreground);
}

.post-content a {
    color: var(--cye-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content strong {
    color: var(--cye-foreground);
}

.post-content code {
    font-family: var(--cye-font-mono);
    font-size: 0.875em;
    padding: 0.125em 0.375em;
    background: rgba(var(--cye-primary-rgb), 0.1);
    color: var(--cye-primary);
    border-radius: 0.25rem;
}

.post-content pre {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow-x: auto;
}

.post-content pre code {
    padding: 0;
    background: none;
    color: var(--cye-foreground);
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(var(--cye-primary-rgb), 0.05);
    border-left: 3px solid var(--cye-primary);
    border-radius: 0 var(--cye-radius) var(--cye-radius) 0;
}

.post-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--cye-foreground);
}

.post-content ul,
.post-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--cye-muted-foreground);
}

.post-content li {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cye-radius);
    margin: 1.5rem 0;
}

.post-content table {
    width: 100%;
    margin: 1.5rem 0;
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow: hidden;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cye-border);
}

.post-content th {
    font-family: var(--cye-font-mono);
    background: var(--cye-card);
    color: var(--cye-foreground);
}

.post-content td {
    color: var(--cye-muted-foreground);
}

/* Author box */
.post-author-box {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
}

.post-author-box-inner {
    display: flex;
    gap: 1rem;
}

.post-author-box img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-box .author-info .name {
    font-family: var(--cye-font-mono);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.post-author-box .author-info .role {
    font-size: 0.875rem;
    color: var(--cye-primary);
    margin-bottom: 0.5rem;
}

.post-author-box .author-info .bio {
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    margin: 0;
}

/* Post tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* Table of contents sidebar */
.toc-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .toc-sidebar {
        display: block;
    }
}

.toc-sidebar .sticky-wrapper {
    position: sticky;
    top: 7rem;
}

.toc-widget {
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.toc-widget h3 {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.toc-widget nav a {
    display: block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    margin-left: -0.75rem;
}

.toc-widget nav a:hover {
    color: var(--cye-primary);
}

.toc-widget nav a.active {
    color: var(--cye-primary);
    border-left-color: var(--cye-primary);
    background: rgba(var(--cye-primary-rgb), 0.05);
    border-radius: 0 0.375rem 0.375rem 0;
}

.toc-cta {
    background: linear-gradient(135deg, rgba(var(--cye-primary-rgb), 0.1) 0%, rgba(var(--cye-secondary-rgb), 0.1) 100%);
    border: 1px solid rgba(var(--cye-primary-rgb), 0.2);
    border-radius: var(--cye-radius);
    padding: 1.25rem;
}

.toc-cta h3 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.toc-cta p {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.toc-cta .btn {
    width: 100%;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--cye-border);
}

.related-posts-title {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 72rem;
        margin: 0 auto;
    }
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--cye-primary);
    color: var(--cye-primary);
}

.pagination .page-numbers.current {
    background: var(--cye-primary);
    border-color: var(--cye-primary);
    color: var(--cye-primary-foreground);
}

.pagination .prev,
.pagination .next {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.pagination svg {
    width: 1rem;
    height: 1rem;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-header {
    text-align: center;
}

.search-header .search-form {
    max-width: 36rem;
    margin: 2rem auto 0;
    display: flex;
    gap: 0.75rem;
}

.search-header .search-field {
    flex: 1;
}

.search-header .search-submit {
    flex-shrink: 0;
}

.search-results-count {
    margin: 2rem 0;
    font-family: var(--cye-font-mono);
    color: var(--cye-muted-foreground);
}

/* ============================================
   ARCHIVE PAGES
   ============================================ */
.archive-header {
    text-align: center;
}

.archive-description {
    max-width: 42rem;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--cye-muted-foreground);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--cye-border);
}

.comments-title {
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.comment-author .fn {
    font-family: var(--cye-font-mono);
    font-weight: 500;
    color: var(--cye-foreground);
}

.comment-metadata time {
    font-size: 0.75rem;
    color: var(--cye-muted-foreground);
}

.comment-content p {
    font-size: 0.9375rem;
}

.reply {
    margin-top: 1rem;
}

.reply a {
    font-size: 0.875rem;
    color: var(--cye-primary);
}

/* Nested comments */
.comment .children {
    margin-top: 1.5rem;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--cye-border);
    list-style: none;
}

/* Comment form */
.comment-respond {
    margin-top: 3rem;
}

.comment-reply-title {
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cye-foreground);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--cye-foreground);
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    transition: all 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--cye-primary);
    box-shadow: 0 0 0 3px rgba(var(--cye-primary-rgb), 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    margin-top: 0.5rem;
}

.form-submit .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cye-primary-foreground);
    background: linear-gradient(135deg, var(--cye-primary) 0%, #0077cc 100%);
    border: 1px solid var(--cye-primary);
    border-radius: var(--cye-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit .submit:hover {
    box-shadow: var(--cye-glow-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--cye-card);
    border-top: 1px solid var(--cye-border);
    padding: 3rem 0 2rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 0 2rem;
    }
}

/* Mobile: Brand on top, centered */
.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Mobile: Links in 2-column grid */
.footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-wrapper {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 2.5fr;
        gap: 4rem;
    }
}

/* Footer brand section */
.footer-brand {
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-brand {
        text-align: left;
    }
}

.footer-brand .site-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-brand .site-logo img,
.footer-brand .custom-logo-link img {
    height: 2rem !important;
    width: auto !important;
    max-width: 160px;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    margin-bottom: 1.5rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .footer-brand p {
        margin-left: 0;
        margin-right: 0;
    }
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .footer-social {
        justify-content: flex-start;
    }
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--cye-muted);
    border-radius: 0.5rem;
    color: var(--cye-muted-foreground);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--cye-primary);
    color: var(--cye-primary-foreground);
}

.footer-social svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Footer link columns */
.footer-links {
    text-align: left;
}

.footer-links h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cye-foreground);
    margin-bottom: 1rem;
}

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

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.125rem 0;
}

.footer-links a:hover {
    color: var(--cye-primary);
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--cye-border);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--cye-muted-foreground);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-links {
        gap: 1.5rem;
    }
}

.footer-bottom-links a {
    font-size: 0.8125rem;
    color: var(--cye-muted-foreground);
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--cye-foreground);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 6rem 0;
}

.error-404 h1 {
    font-size: 8rem;
    line-height: 1;
    background: linear-gradient(135deg, var(--cye-primary), var(--cye-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-404 p {
    font-size: 1.125rem;
    color: var(--cye-muted-foreground);
    margin-bottom: 2rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-on-mobile {
        display: none !important;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.from-left {
    transform: translateX(-20px);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Stagger post cards */
.posts-grid .post-card:nth-child(1) { transition-delay: 0s; }
.posts-grid .post-card:nth-child(2) { transition-delay: 0.05s; }
.posts-grid .post-card:nth-child(3) { transition-delay: 0.1s; }
.posts-grid .post-card:nth-child(4) { transition-delay: 0.15s; }
.posts-grid .post-card:nth-child(5) { transition-delay: 0.2s; }
.posts-grid .post-card:nth-child(6) { transition-delay: 0.25s; }

/* Hero entrance animation */
.page-hero .badge,
.page-hero h1,
.page-hero .lead,
.page-hero form {
    animation: fadeInUp 0.5s ease-out both;
}

.page-hero .badge { animation-delay: 0.1s; }
.page-hero h1 { animation-delay: 0.2s; }
.page-hero .lead { animation-delay: 0.3s; }
.page-hero form { animation-delay: 0.4s; }

/* Single post hero staggered entrance */
.single-post-hero .single-post-back,
.single-post-hero .single-post-categories,
.single-post-hero .single-post-title,
.single-post-hero .single-post-excerpt,
.single-post-hero .single-post-meta {
    animation: fadeInUp 0.5s ease-out both;
}

.single-post-hero .single-post-back { animation-delay: 0s; }
.single-post-hero .single-post-categories { animation-delay: 0.1s; }
.single-post-hero .single-post-title { animation-delay: 0.15s; }
.single-post-hero .single-post-excerpt { animation-delay: 0.25s; }
.single-post-hero .single-post-meta { animation-delay: 0.35s; }

.single-post-featured-image {
    animation: fadeInUp 0.5s ease-out both;
    animation-delay: 0.4s;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cye-background);
}

::-webkit-scrollbar-thumb {
    background: var(--cye-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cye-muted-foreground);
}

/* ============================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================ */

/* Apply entry-content styles to post-content as well */
.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--cye-muted-foreground);
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content > *:last-child {
    margin-bottom: 0;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--cye-foreground);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.75rem; margin-top: 3rem; }
.post-content h3 { font-size: 1.5rem; }
.post-content h4 { font-size: 1.25rem; }

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content a {
    color: var(--cye-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    text-decoration: none;
}

.post-content strong {
    color: var(--cye-foreground);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content li::marker {
    color: var(--cye-primary);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(var(--cye-primary-rgb), 0.05);
    border-left: 4px solid var(--cye-primary);
    border-radius: 0 var(--cye-radius) var(--cye-radius) 0;
}

.post-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--cye-foreground);
}

.post-content code {
    font-family: var(--cye-font-mono);
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background: rgba(var(--cye-primary-rgb), 0.1);
    color: var(--cye-primary);
    border-radius: 0.25rem;
}

.post-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow-x: auto;
}

.post-content pre code {
    padding: 0;
    background: none;
    color: var(--cye-foreground);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cye-radius);
    margin: 2rem 0;
}

.post-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow: hidden;
}

.post-content th,
.post-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cye-border);
}

.post-content th {
    font-family: var(--cye-font-mono);
    background: var(--cye-card);
    color: var(--cye-foreground);
}

.post-content td {
    color: var(--cye-muted-foreground);
}

.post-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--cye-border);
}

/* WordPress Block Styles */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: var(--cye-radius);
    max-width: 100%;
    height: auto;
}

.wp-block-image figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    text-align: center;
}

.wp-block-quote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(var(--cye-primary-rgb), 0.05);
    border-left: 4px solid var(--cye-primary);
    border-radius: 0 var(--cye-radius) var(--cye-radius) 0;
}

.wp-block-quote p {
    margin: 0 0 1rem;
    font-style: italic;
    color: var(--cye-foreground);
    font-size: 1.125rem;
}

.wp-block-quote p:last-of-type {
    margin-bottom: 0;
}

.wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    font-style: normal;
}

.wp-block-code {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
}

.wp-block-code code {
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    color: var(--cye-foreground);
    background: none;
    padding: 0;
}

.wp-block-preformatted {
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow-x: auto;
    white-space: pre-wrap;
}

.wp-block-table {
    margin: 2rem 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow: hidden;
}

.wp-block-table th,
.wp-block-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cye-border);
}

.wp-block-table th {
    font-family: var(--cye-font-mono);
    font-weight: 600;
    background: var(--cye-card);
    color: var(--cye-foreground);
}

.wp-block-table td {
    color: var(--cye-muted-foreground);
}

.wp-block-separator {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--cye-border);
}

.wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cye-primary-foreground);
    background: linear-gradient(135deg, var(--cye-primary) 0%, #0077cc 100%);
    border-radius: var(--cye-radius);
    text-decoration: none;
    transition: all 0.2s ease;
}

.wp-block-button__link:hover {
    box-shadow: var(--cye-glow-primary);
    transform: translateY(-1px);
}

.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--cye-primary);
    border: 1px solid var(--cye-primary);
}

.is-style-outline .wp-block-button__link:hover {
    background: rgba(var(--cye-primary-rgb), 0.1);
}

.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.wp-block-column {
    flex: 1;
    min-width: 200px;
}

.wp-block-group {
    margin: 2rem 0;
}

.wp-block-group.has-background {
    padding: 2rem;
    border-radius: var(--cye-radius);
}

.wp-block-cover {
    margin: 2rem 0;
    border-radius: var(--cye-radius);
    overflow: hidden;
}

.wp-block-heading {
    color: var(--cye-foreground);
}

/* Gallery */
.wp-block-gallery {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.wp-block-gallery.columns-2 { grid-template-columns: repeat(2, 1fr); }
.wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.wp-block-gallery.columns-4 { grid-template-columns: repeat(4, 1fr); }

.wp-block-gallery .wp-block-image {
    margin: 0;
}

/* Embed blocks */
.wp-block-embed {
    margin: 2rem 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--cye-radius);
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Alignment */
.alignwide {
    margin-left: -2rem;
    margin-right: -2rem;
    max-width: calc(100% + 4rem);
    width: calc(100% + 4rem);
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .alignleft,
    .alignright {
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
    
    .wp-block-gallery.columns-3,
    .wp-block-gallery.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PAGE TEMPLATE STYLES
   ============================================ */
.page-hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.page-breadcrumb {
    margin-bottom: 1.5rem;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-excerpt {
    font-size: 1.25rem;
    color: var(--cye-muted-foreground);
    max-width: 42rem;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--cye-border);
}

.page-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
}

.page-meta-item svg {
    flex-shrink: 0;
}

.page-featured-image {
    padding: 0 0 2rem;
}

.page-featured-image-wrapper {
    max-width: 72rem;
    margin: 0 auto;
    aspect-ratio: 21/9;
    border-radius: calc(var(--cye-radius) * 1.5);
    overflow: hidden;
}

.page-featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-content-section {
    padding: 3rem 0 4rem;
}

.page-content-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

.page-article {
    width: 100%;
}

/* Entry Content - Main content styling */
.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--cye-muted-foreground);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: var(--cye-foreground);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.75rem; margin-top: 3rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.125rem; }
.entry-content h6 { font-size: 1rem; }

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content a {
    color: var(--cye-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content a:hover {
    text-decoration: none;
}

.entry-content strong,
.entry-content b {
    color: var(--cye-foreground);
    font-weight: 600;
}

.entry-content em,
.entry-content i {
    font-style: italic;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.entry-content li::marker {
    color: var(--cye-primary);
}

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: rgba(var(--cye-primary-rgb), 0.05);
    border-left: 4px solid var(--cye-primary);
    border-radius: 0 var(--cye-radius) var(--cye-radius) 0;
}

.entry-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--cye-foreground);
    font-size: 1.125rem;
}

.entry-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    font-style: normal;
}

.entry-content code {
    font-family: var(--cye-font-mono);
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    background: rgba(var(--cye-primary-rgb), 0.1);
    color: var(--cye-primary);
    border-radius: 0.25rem;
}

.entry-content pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow-x: auto;
}

.entry-content pre code {
    padding: 0;
    background: none;
    color: var(--cye-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--cye-radius);
    margin: 2rem 0;
}

.entry-content figure {
    margin: 2rem 0;
}

.entry-content figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    text-align: center;
}

.entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--cye-border);
    border-radius: var(--cye-radius);
    overflow: hidden;
}

.entry-content th,
.entry-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--cye-border);
}

.entry-content th {
    font-family: var(--cye-font-mono);
    font-weight: 600;
    background: var(--cye-card);
    color: var(--cye-foreground);
}

.entry-content td {
    color: var(--cye-muted-foreground);
}

.entry-content tr:last-child td {
    border-bottom: none;
}

.entry-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 1px solid var(--cye-border);
}

/* Page comments section */
.page-comments-section {
    padding: 3rem 0;
    background: var(--cye-card);
}

.page-comments-wrapper {
    max-width: 56rem;
    margin: 0 auto;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    font-size: 0.875rem;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cye-muted-foreground);
}

.breadcrumbs li:not(:last-child)::after {
    content: '/';
    color: var(--cye-border);
}

.breadcrumbs a {
    color: var(--cye-muted-foreground);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--cye-primary);
}

.breadcrumbs li:last-child {
    color: var(--cye-foreground);
}

/* ============================================
   PAGE LINKS (Multi-page content)
   ============================================ */
.page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.page-links .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    font-family: var(--cye-font-mono);
    font-size: 0.875rem;
    color: var(--cye-muted-foreground);
    background: var(--cye-card);
    border: 1px solid var(--cye-border);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.page-links .page-link:hover {
    border-color: var(--cye-primary);
    color: var(--cye-primary);
}

.page-links > .page-link {
    background: var(--cye-primary);
    border-color: var(--cye-primary);
    color: var(--cye-primary-foreground);
}

/* Screen reader text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--cye-card);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--cye-foreground);
    display: block;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--cye-primary);
    color: var(--cye-primary-foreground);
    padding: 8px;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

