/*
Theme Name: Gebeya Dala Docs
Theme URI: https://gebeya.com/dala
Author: Gebeya
Author URI: https://gebeya.com
Description: A modern, elegant documentation theme for Gebeya Dala - the ultimate vibecoding tool. Features a clean, responsive design optimized for developer documentation with syntax highlighting, easy navigation, and beautiful typography.
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: gebeya-dala-docs
Tags: documentation, developer, one-column, custom-menu, featured-images, translation-ready

Gebeya Dala Docs WordPress Theme, (C) 2024 Gebeya
Gebeya Dala Docs is distributed under the terms of the GNU GPL.
*/

/* ===== CSS Variables ===== */
:root {
    /* Gebeya Dala Brand Colors - Orange/Red/Yellow gradient */
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-200: #fed7aa;
    --primary-300: #fdba74;
    --primary-400: #fb923c;
    --primary-500: #f97316;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --primary-800: #9a3412;
    --primary-900: #7c2d12;
    
    /* Brand Accent Colors from Logo */
    --accent-orange: #FF6B35;
    --accent-red: #E63946;
    --accent-yellow: #FFD93D;
    --accent-pink: #EC4899;
    --accent-coral: #FF8A5B;
    
    /* Brand Gradient */
    --brand-gradient: linear-gradient(135deg, #EC4899, #FF6B35, #FFD93D);
    --brand-gradient-hover: linear-gradient(135deg, #DB2777, #EA580C, #EAB308);
    
    /* Accent Primary/Secondary (used throughout the theme) */
    --accent-primary: #FF6B35;
    --accent-primary-hover: #EA580C;
    --accent-secondary: #FFD93D;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* Light Mode (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f9fafb;
    --bg-sidebar: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Spacing */
    --header-height: 64px;
    --nav-height: 48px;
    --sidebar-width: 260px;
    --content-max-width: 720px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark Mode */
[data-theme="dark"] {
    --bg-primary: #0f0f10;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --bg-sidebar: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --border-light: #3f3f46;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
}

/* Body lock when sidebar is open */
body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: 2rem; font-weight: 700; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

code, pre {
    font-family: var(--font-mono);
}

code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: var(--primary-600);
}

[data-theme="dark"] code {
    color: var(--primary-400);
}

pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
}

pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* ===== Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-primary);
    transition: background-color var(--transition-normal);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    padding: 0 30px;
    gap: 16px;
    max-width: 100%;
    margin: 0 90px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}

/* Custom Logo Support */
.site-logo.custom-logo-link {
    line-height: 0;
}

.site-logo.custom-logo-link a {
    display: flex;
    align-items: center;
}

.site-logo.custom-logo-link img,
.custom-logo {
    max-height: 40px;
    width: auto;
    height: auto;
}

/* Theme-aware Logo Display */
.logo-light-mode,
.logo-dark-mode {
    max-height: 40px;
    width: auto;
    height: auto;
}

/* Light mode (default): show light logo, hide dark logo */
[data-theme="light"] .logo-light-mode,
:root:not([data-theme="dark"]) .logo-light-mode {
    display: block;
}

[data-theme="light"] .logo-dark-mode,
:root:not([data-theme="dark"]) .logo-dark-mode {
    display: none;
}

/* Dark mode: show dark logo, hide light logo */
[data-theme="dark"] .logo-light-mode {
    display: none;
}

[data-theme="dark"] .logo-dark-mode {
    display: block;
}

@media (max-width: 768px) {
    .site-logo.custom-logo-link img,
    .custom-logo,
    .logo-light-mode,
    .logo-dark-mode {
        max-height: 32px;
    }
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-coral));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Search Bar */
.header-search {
    position: relative;
    width: 100%;
    max-width: 560px;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color var(--transition-fast);
}

.search-input-wrapper:focus-within {
    border-color: var(--text-muted);
}

.search-input-wrapper > svg {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    pointer-events: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.header-search input {
    width: 100%;
    padding: 12px 70px 12px 56px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    background: transparent;
    color: var(--text-primary);
}

.header-search input:focus {
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-shortcut {
    position: absolute;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-sans);
    pointer-events: none;
    font-weight: 400;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.header-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.header-link svg {
    width: 16px;
    height: 16px;
}

/* Header CTA Button */
.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-600));
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
}

.header-cta-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.header-cta-btn:hover svg {
    transform: translateX(2px);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle svg {
    transition: transform var(--transition-fast);
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

/* Theme toggle icons */
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

/* Default state (light mode): show sun, hide moon */
.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Light mode: show sun, hide moon */
[data-theme="light"] .theme-toggle .sun-icon,
html:not([data-theme="dark"]) .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon,
html:not([data-theme="dark"]) .theme-toggle .moon-icon {
    display: none;
}

/* Dark mode: hide sun, show moon */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* Secondary Navigation */
.header-nav {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    padding: 0 30px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100%;
    margin: 0 80px;
}

.header-nav::-webkit-scrollbar {
    display: none;
    margin: 0 auto;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-tabs li a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
}

.nav-tabs li a:hover {
    color: var(--text-primary);
}

.nav-tabs li.current-menu-item a,
.nav-tabs li.current_page_item a,
.nav-tabs li a.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* Remove active state from "Getting Started" on home/welcome page */
body.home .nav-tabs li:first-child.current-menu-item a,
body.home .nav-tabs li:first-child.current_page_item a,
body.page-template-template-welcome .nav-tabs li:first-child.current-menu-item a,
body.page-template-template-welcome .nav-tabs li:first-child.current_page_item a,
body.front-page .nav-tabs li:first-child.current-menu-item a,
body.front-page .nav-tabs li:first-child.current_page_item a {
    color: var(--text-secondary);
    border-bottom-color: transparent;
}

/* ===== Mobile Menu Toggle - HAMBURGER BUTTON ===== */
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    background: var(--bg-tertiary);
}

.mobile-menu-toggle:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

/* Hamburger to X animation when active */
.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Expandable Search */
.mobile-search-expand {
    display: none; /* Hidden on desktop */
    align-items: center;
    position: relative;
}

.mobile-search-form {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-right: 8px;
}

.mobile-search-expand.is-open .mobile-search-form {
    width: 200px;
    opacity: 1;
}

@media (max-width: 480px) {
    .mobile-search-expand.is-open .mobile-search-form {
        width: 160px;
    }
}

.mobile-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px; /* Prevents iOS zoom */
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.mobile-search-input:focus {
    border-color: var(--primary-500);
}

.mobile-search-input::placeholder {
    color: var(--text-muted);
}

/* Mobile Search Toggle Button */
.mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-search-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Toggle between search and close icons */
.mobile-search-toggle .close-icon {
    display: none;
}

.mobile-search-expand.is-open .mobile-search-toggle .search-icon {
    display: none;
}

.mobile-search-expand.is-open .mobile-search-toggle .close-icon {
    display: block;
}

.mobile-search-expand.is-open .mobile-search-toggle {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Hide old mobile search bar - replaced with inline expand */
.mobile-search-bar {
    display: none !important;
}

/* ===== Layout ===== */
.site-wrapper {
    display: flex;
    flex-direction: column;
    padding-top: calc(var(--header-height) + var(--nav-height));
    min-height: 100vh;
    max-width: 100%;
    margin: 0 auto;
    padding-left: 90px;
    padding-right: 90px;
}

.site-main {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Order elements: left sidebar (1), content (2), right TOC (3) */
.docs-sidebar {
    order: 1;
}

.docs-content {
    order: 2;
}

.toc-sidebar {
    order: 3;
}


/* ===== Sidebar ===== */
.docs-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height));
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height) - var(--nav-height));
    overflow-y: auto;
    padding: 24px 16px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    transition: transform var(--transition-slow) ease, background-color var(--transition-normal);
    z-index: 90;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* ===== Sidebar Mobile Header (Section Toggle) ===== */
.sidebar-mobile-header {
    display: none; /* Hidden on desktop */
    position: relative;
    margin-bottom: 16px;
}

.sidebar-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: all var(--transition-fast);
}

.sidebar-section-toggle:hover {
    border-color: var(--primary-300);
}

.sidebar-section-toggle:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.sidebar-section-toggle .current-section-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.sidebar-section-toggle .toggle-chevron {
    color: var(--text-muted);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.sidebar-section-toggle.is-open .toggle-chevron {
    transform: rotate(180deg);
}

/* Sections Dropdown */
.sidebar-sections-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    max-height: 300px;
    overflow-y: auto;
}

.sidebar-sections-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sections-list {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.sections-list li {
    margin-bottom: 2px;
}

.sections-list li:last-child {
    margin-bottom: 0;
}

.sections-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.sections-list a svg:first-child {
    flex-shrink: 0;
    color: var(--text-muted);
}

.sections-list a .check-icon {
    margin-left: auto;
    color: var(--primary-600);
}

.sections-list a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sections-list a:hover svg:first-child {
    color: var(--text-secondary);
}

.sections-list li.is-active a {
    background: var(--primary-50);
    color: var(--primary-600);
}

.sections-list li.is-active a svg:first-child {
    color: var(--primary-600);
}

[data-theme="dark"] .sections-list li.is-active a {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

[data-theme="dark"] .sections-list li.is-active a svg {
    color: var(--primary-400);
}

/* Desktop Section Title */
.desktop-section-title {
    display: block;
}

.sidebar-section {
    margin-bottom: 24px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* Sidebar CTA Button */
.sidebar-cta {
    margin-top: auto;
    padding: 16px 12px 0;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-600));
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-cta-button::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;
}

.sidebar-cta-button:hover::before {
    left: 100%;
}

.sidebar-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
}

.sidebar-cta-button:active {
    transform: translateY(0);
}

.sidebar-cta-button svg:first-child {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-cta-button svg:last-child {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sidebar-cta-button:hover svg:last-child {
    transform: translateX(3px);
}

.sidebar-cta-button span {
    flex: 1;
    text-align: center;
}

[data-theme="dark"] .sidebar-cta-button {
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

[data-theme="dark"] .sidebar-cta-button:hover {
    box-shadow: 0 6px 24px rgba(255, 107, 53, 0.5);
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 12px;
}

.sidebar-title svg {
    color: var(--primary-500);
    flex-shrink: 0;
}

/* Empty sidebar state */
.sidebar-empty {
    padding: 20px 12px;
    text-align: center;
}

.sidebar-empty .empty-message {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.sidebar-nav ul,
.sidebar-nav .sidebar-menu {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

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

.sidebar-nav .current-menu-item > a,
.sidebar-nav .current_page_item > a,
.sidebar-nav a.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

/* Parent and ancestor menu item styles */
.sidebar-nav .current-menu-ancestor > a,
.sidebar-nav .current-menu-parent > a,
.sidebar-nav .current_page_ancestor > a,
.sidebar-nav .current_page_parent > a {
    color: var(--primary-600);
    font-weight: 500;
}

[data-theme="dark"] .sidebar-nav .current-menu-item > a,
[data-theme="dark"] .sidebar-nav .current_page_item > a,
[data-theme="dark"] .sidebar-nav a.active {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

[data-theme="dark"] .sidebar-nav .current-menu-ancestor > a,
[data-theme="dark"] .sidebar-nav .current-menu-parent > a,
[data-theme="dark"] .sidebar-nav .current_page_ancestor > a,
[data-theme="dark"] .sidebar-nav .current_page_parent > a {
    color: var(--primary-400);
}

.sidebar-nav .menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Dashicons in sidebar navigation */
.sidebar-nav .menu-icon.dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    opacity: 0.7;
    flex-shrink: 0;
    font-family: "dashicons";
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar-nav a:hover .menu-icon.dashicons {
    opacity: 1;
    color: inherit;
}

.sidebar-nav .current-menu-item > a .menu-icon.dashicons,
.sidebar-nav .current_page_item > a .menu-icon.dashicons,
.sidebar-nav a.active .menu-icon.dashicons {
    opacity: 1;
    color: var(--primary-600);
}

[data-theme="dark"] .sidebar-nav .current-menu-item > a .menu-icon.dashicons,
[data-theme="dark"] .sidebar-nav .current_page_item > a .menu-icon.dashicons,
[data-theme="dark"] .sidebar-nav a.active .menu-icon.dashicons {
    color: var(--primary-400);
}

/* ===== Sidebar Overlay ===== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999; /* Below sidebar (1000+) but above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    pointer-events: none; /* Allow clicks to pass through when not visible */
}

.sidebar-overlay.is-visible {
    pointer-events: auto; /* Enable clicks when visible */
}

.sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ===== Table of Contents (Right Sidebar) ===== */
.toc-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height));
    width: 260px;
    height: calc(100vh - var(--header-height) - var(--nav-height));
    padding: 32px 24px 32px 24px;
    overflow-y: auto;
    z-index: 80;
    flex-shrink: 0;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-primary);
}

.toc-sidebar::-webkit-scrollbar {
    width: 4px;
}

.toc-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.toc-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 2px;
}

[data-theme="dark"] .toc-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--gray-600);
}

.toc-container {
    position: relative;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.toc-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 20px;
    padding: 0;
}

.toc-nav {
    position: relative;
}

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

.toc-list li {
    margin-bottom: 0;
}

.toc-list a {
    display: block;
    padding: 8px 0 8px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

/* Active TOC item */
.toc-list a.is-active {
    color: var(--primary-600);
    border-left-color: var(--primary-600);
    font-weight: 500;
}

[data-theme="dark"] .toc-list a.is-active {
    color: var(--primary-400);
    border-left-color: var(--primary-400);
}

/* Nested TOC items (h3) */
.toc-list .toc-h3 a {
    padding-left: 28px;
    font-size: 13px;
    color: var(--text-muted);
}

.toc-list .toc-h3 a:hover {
    color: var(--text-secondary);
}

.toc-list .toc-h3 a.is-active {
    color: var(--primary-600);
}

[data-theme="dark"] .toc-list .toc-h3 a.is-active {
    color: var(--primary-400);
}

/* Placeholder/Loading state */
.toc-placeholder {
    padding: 8px 0;
}

.toc-loading {
    font-size: 13px;
    color: var(--text-muted);
}

/* Empty state */
.toc-empty {
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 0;
}

/* Scroll to top button */
.toc-scroll-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    background: none;
    border-left: none;
    border-right: none;
    border-bottom: none;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    width: 100%;
    justify-content: flex-start;
}

.toc-scroll-top:hover {
    color: var(--text-primary);
}

.toc-scroll-top svg {
    flex-shrink: 0;
}

/* Scroll to top button */
.toc-scroll-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
}

.toc-scroll-top:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.toc-scroll-top svg {
    flex-shrink: 0;
}

/* ===== Main Content ===== */
.docs-content {
    flex: 1;
    padding: 32px 48px;
    min-width: 0;
    max-width: 800px;
    box-sizing: border-box;
    background: var(--bg-primary);
}

/* When TOC is hidden (mobile/tablet) */
.docs-content.no-toc {
    margin-right: 0;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-word;
}

.page-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

.copy-page-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-page-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.copy-page-btn svg {
    width: 14px;
    height: 14px;
}

/* Video Embed */
.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-900);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Entry Content */
.entry-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.entry-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.entry-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--primary-500);
    background: var(--primary-50);
    border-radius: 0 8px 8px 0;
}

[data-theme="dark"] .entry-content blockquote {
    background: rgba(255, 107, 53, 0.1);
}

.entry-content blockquote p {
    margin: 0;
    color: var(--text-primary);
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

/* ============================================
   COMPREHENSIVE CONTENT STYLING
   For all post types - matches documentation design
   ============================================ */

/* Base Typography */
.entry-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 100%;
}

.entry-content * {
    box-sizing: border-box;
}

/* Headings */
.entry-content h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: 16px;
    padding-top: 0;
    border-top: none;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.entry-content h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-top: 0;
    border-top: none;
}

.entry-content h4 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.entry-content h5 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 20px;
    margin-bottom: 8px;
}

.entry-content h6 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

/* Links */
.entry-content a {
    color: var(--primary-600);
    text-decoration: none;
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, var(--primary-200) 90%, var(--primary-200) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.entry-content a:hover {
    color: var(--primary-700);
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, var(--primary-400) 90%, var(--primary-400) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}

.entry-content a:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 3px;
}

[data-theme="dark"] .entry-content a {
    color: var(--primary-400);
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, rgba(255, 107, 53, 0.4) 90%, rgba(255, 107, 53, 0.4) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}

[data-theme="dark"] .entry-content a:hover {
    color: var(--primary-300);
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, rgba(255, 107, 53, 0.6) 90%, rgba(255, 107, 53, 0.6) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}

/* Lists */
.entry-content ul,
.entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Nested Lists */
.entry-content li > ul,
.entry-content li > ol {
    margin-top: 8px;
    margin-bottom: 8px;
}

/* List Items with Paragraphs */
.entry-content li > p {
    margin-bottom: 8px;
}

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

/* Blockquotes */
.entry-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 3px solid var(--primary-500);
    background: var(--primary-50);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

[data-theme="dark"] .entry-content blockquote {
    background: rgba(255, 107, 53, 0.1);
    border-left-color: var(--primary-400);
}

.entry-content blockquote p {
    margin: 0;
    color: var(--text-primary);
}

.entry-content blockquote p:not(:last-child) {
    margin-bottom: 12px;
}

/* Code */
.entry-content code {
    background: var(--bg-secondary);
    color: var(--primary-600);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .entry-content code {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-300);
    border-color: rgba(255, 107, 53, 0.3);
}

.entry-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 14px;
    line-height: 1.6;
}

[data-theme="dark"] .entry-content pre {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--border-color);
}

.entry-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--text-primary);
    font-size: inherit;
    border-radius: 0;
}

[data-theme="dark"] .entry-content pre code {
    background: transparent;
    color: var(--text-primary);
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content thead {
    background: var(--bg-secondary);
}

[data-theme="dark"] .entry-content thead {
    background: rgba(255, 255, 255, 0.05);
}

.entry-content th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 15px;
}

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

.entry-content tbody tr:hover {
    background: var(--bg-secondary);
}

[data-theme="dark"] .entry-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Images */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.entry-content figure {
    margin: 24px 0;
}

.entry-content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    font-style: italic;
}

/* Text Formatting */
.entry-content strong,
.entry-content b {
    font-weight: 600;
    color: var(--text-primary);
}

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

.entry-content mark {
    background: var(--primary-100);
    color: var(--text-primary);
    padding: 2px 4px;
    border-radius: 3px;
}

[data-theme="dark"] .entry-content mark {
    background: rgba(255, 107, 53, 0.2);
}

/* Horizontal Rules */
.entry-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
    background: none;
}

/* Definition Lists */
.entry-content dl {
    margin: 16px 0;
}

.entry-content dt {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 16px;
    margin-bottom: 4px;
}

.entry-content dd {
    margin-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Address */
.entry-content address {
    font-style: italic;
    margin: 16px 0;
    color: var(--text-secondary);
}

/* Abbreviations */
.entry-content abbr {
    text-decoration: underline dotted;
    cursor: help;
}

/* Subscript and Superscript */
.entry-content sub,
.entry-content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.entry-content sup {
    top: -0.5em;
}

.entry-content sub {
    bottom: -0.25em;
}

/* WordPress Blocks Support */
.entry-content .wp-block-group {
    margin: 24px 0;
}

.entry-content .wp-block-columns {
    margin: 24px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.entry-content .wp-block-button {
    margin: 16px 0;
}

.entry-content .wp-block-button__link {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-600);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.entry-content .wp-block-button__link:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .entry-content .wp-block-button__link {
    background: var(--primary-500);
}

[data-theme="dark"] .entry-content .wp-block-button__link:hover {
    background: var(--primary-400);
}

/* Spacing between elements */
.entry-content > *:first-child {
    margin-top: 0;
}

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

/* Responsive Typography */
@media (max-width: 768px) {
    .entry-content {
        font-size: 14px;
    }
    
    .entry-content h1 {
        font-size: 28px;
    }
    
    .entry-content h2 {
        font-size: 22px;
        margin-top: 40px;
    }
    
    .entry-content h3 {
        font-size: 18px;
        margin-top: 28px;
    }
    
    .entry-content h4 {
        font-size: 16px;
    }
    
    .entry-content table {
        font-size: 14px;
    }
    
    .entry-content th,
    .entry-content td {
        padding: 10px 12px;
    }
    
    .entry-content pre {
        font-size: 13px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .entry-content {
        font-size: 14px;
    }
    
    .entry-content h1 {
        font-size: 24px;
    }
    
    .entry-content h2 {
        font-size: 20px;
        margin-top: 32px;
    }
    
    .entry-content h3 {
        font-size: 17px;
        margin-top: 24px;
    }
    
    .entry-content ul,
    .entry-content ol {
        padding-left: 20px;
    }
    
    .entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Feature Cards Grid */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.feature-card {
    display: block;
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.feature-card:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--primary-600);
}

[data-theme="dark"] .feature-card-icon {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

.feature-card-icon svg {
    width: 20px;
    height: 20px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ===== Callout Boxes ===== */
.callout {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.callout-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.callout-content p {
    margin: 0;
    font-size: 14px;
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.callout-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== Simple Footer ===== */
.site-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 24px 30px;
    transition: background-color var(--transition-normal);
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 100%;
    margin: 0 auto;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-social-icons a:hover {
    color: var(--text-primary);
}

.footer-social-icons a svg {
    width: 20px;
    height: 20px;
}

.footer-powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-powered-by a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-powered-by a:hover {
    color: var(--text-primary);
}

/* Post Navigation */
/* ===== Doc Taxonomies (Categories and Tags) ===== */
.doc-taxonomies {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.doc-categories,
.doc-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.doc-categories:last-child,
.doc-tags:last-child {
    margin-bottom: 0;
}

.taxonomy-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.taxonomy-label svg {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.taxonomy-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.doc-taxonomy-term {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.doc-category-term {
    background: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-200);
}

.doc-category-term:hover {
    background: var(--primary-100);
    color: var(--primary-800);
    border-color: var(--primary-300);
    transform: translateY(-1px);
}

.doc-tag-term {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.doc-tag-term:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--primary-300);
    transform: translateY(-1px);
}

[data-theme="dark"] .doc-category-term {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-300);
    border-color: rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .doc-category-term:hover {
    background: rgba(255, 107, 53, 0.25);
    color: var(--primary-200);
    border-color: rgba(255, 107, 53, 0.4);
}

[data-theme="dark"] .doc-tag-term {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .doc-tag-term:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--primary-400);
}

/* Responsive taxonomies */
@media (max-width: 768px) {
    .doc-categories,
    .doc-tags {
        flex-direction: column;
        gap: 8px;
    }
    
    .taxonomy-label {
        margin-top: 0;
    }
    
    .taxonomy-terms {
        width: 100%;
    }
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.post-navigation a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all var(--transition-fast);
}

.post-navigation a:hover {
    border-color: var(--primary-300);
    background: var(--bg-tertiary);
}

.post-navigation .nav-next {
    justify-content: flex-end;
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Pagination */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover,
.nav-links a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.pagination .current,
.nav-links .current {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* ===== Utilities ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.desktop-only {
    display: flex;
}

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

.alignleft { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Large Desktop */
@media (min-width: 1281px) {
    .mobile-menu-toggle,
    .mobile-search-expand {
        display: none !important;
    }
}

/* Desktop */
@media (min-width: 1025px) and (max-width: 1280px) {
    .mobile-menu-toggle,
    .mobile-search-expand {
        display: none !important;
    }
}

/* ===== Tablet and Below (≤1024px) ===== */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 280px;
    }
    
    /* Reduce wrapper padding on tablet */
    .site-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .blog-layout {
        padding-left: 0;
        padding-right: 0;
    }
    
    /* Show hamburger button on tablet and below */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Show mobile section toggle on tablet and below */
    .sidebar-mobile-header {
        display: block;
    }
    
    /* Hide desktop section title on tablet and below */
    .desktop-section-title {
        display: none;
    }
    
    /* Hide TOC sidebar on tablet and below */
    .toc-sidebar {
        display: none;
    }
    
    /* Sidebar - hidden by default on mobile, slide in when open */
    .docs-sidebar {
        position: fixed;
        left: 0;
        top: calc(var(--header-height) + var(--nav-height));
        transform: translateX(-100%);
        box-shadow: none;
        will-change: transform;
        height: calc(100vh - var(--header-height) - var(--nav-height));
        z-index: 1000;
    }
    
    .docs-sidebar.is-open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    
    /* Content takes full width on tablet */
    .docs-content {
        max-width: 100%;
        padding: 32px 24px;
    }
    
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Mobile (≤768px) ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
        --nav-height: 44px;
    }
    
    .header-main {
        padding: 0 16px;
        gap: 12px;
        margin: 0 auto;
        
    }
    
    /* Hide desktop search on mobile */
    .header-search {
        display: none;
    }
    
    /* Show mobile expandable search on mobile */
    .mobile-search-expand {
        display: flex;
    }
    
    /* Hide desktop search on mobile */
    .header-search {
        display: none;
    }
    
    /* Hide desktop-only links */
    .desktop-only {
        display: none !important;
    }
    
    .logo-text {
        display: none;
    }
    
    .header-nav {
        padding: 0 16px;
        margin: 0 auto;
    }
    
    .nav-tabs li a {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* Mobile sidebar - full width with max-width */
    .docs-sidebar {
        width: 100%;
        max-width: 300px;
        top: 0;
        height: 100vh;
        padding-top: calc(var(--header-height) + var(--nav-height) + 16px);
    }
    
    /* Content padding on mobile */
    .docs-content {
        padding: 20px 16px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    /* Video embed responsive */
    .video-embed {
        margin: 0 -16px 24px -16px;
        border-radius: 0;
    }
    
    .copy-page-btn {
        width: 100%;
        justify-content: center;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-next {
        justify-content: flex-start;
        text-align: left;
    }
    
    .site-footer {
        padding: 16px;
    }
    
}

/* ===== Small Mobile (≤480px) ===== */
@media (max-width: 480px) {
    .header-main {
        padding: 0 12px;
        margin: 0 auto;
    }
    
    .header-actions {
        gap: 4px;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .mobile-search-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg,
    .mobile-search-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    .mobile-search-expand.is-open .mobile-search-form {
        width: 140px;
    }
    
    .mobile-search-input {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .mobile-menu-toggle span {
        width: 18px;
    }
}

/* ===== Touch Device Improvements ===== */
@media (hover: none) and (pointer: coarse) {
    .sidebar-nav a,
    .nav-tabs li a,
    .feature-card,
    .copy-page-btn,
    .theme-toggle,
    .header-link,
    .mobile-menu-toggle {
        min-height: 44px;
    }
    
    .mobile-search-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    .sidebar-nav a {
        padding: 12px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .docs-sidebar,
    .mobile-menu-toggle,
    .mobile-search-expand,
    .sidebar-overlay {
        display: none !important;
    }
    
    .docs-content {
        padding: 0 !important;
    }
    
    .site-wrapper {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ===================================================================
   BLOG STYLES
   =================================================================== */

/* ===== Blog Container ===== */
.blog-container {
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    padding-bottom: 80px;
}

/* ===== Blog Header ===== */
.blog-header {
    position: relative;
    padding: 60px 24px 48px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

[data-theme="dark"] .blog-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, var(--bg-primary) 100%);
}

.blog-header-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.blog-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

[data-theme="dark"] .blog-header-badge {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-400);
}

.blog-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.2;
}

.blog-header-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Blog Search */
.blog-search {
    max-width: 480px;
    margin: 0 auto;
}

.blog-search-inner {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.blog-search-inner:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.blog-search .search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.blog-search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.blog-search input[type="search"]::placeholder {
    color: var(--text-muted);
}

/* Decorative Elements */
.blog-header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.blog-header-decoration .decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.blog-header-decoration .decoration-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    top: -150px;
    right: -50px;
}

.blog-header-decoration .decoration-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-200, #fef3c7) 0%, transparent 70%);
    bottom: -100px;
    left: 10%;
}

.blog-header-decoration .decoration-circle-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%);
    top: 20%;
    left: -50px;
}

[data-theme="dark"] .blog-header-decoration .decoration-circle-1 {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
}

[data-theme="dark"] .blog-header-decoration .decoration-circle-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

[data-theme="dark"] .blog-header-decoration .decoration-circle-3 {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

/* ===== Categories Filter ===== */
.blog-categories {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.category-chip:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.category-chip.active {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.category-count {
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
}

.category-chip.active .category-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Featured Card (first post) */
.blog-card-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.blog-card-featured .blog-card-image {
    height: 400px;
}

.blog-card-featured .blog-card-title {
    font-size: 1.75rem;
}

/* Regular Card */
.blog-card {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

[data-theme="dark"] .blog-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-500);
}

/* Card Image */
.blog-card-image {
    position: relative;
    display: block;
    height: 200px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.blog-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.blog-card:hover .blog-card-image-overlay {
    opacity: 1;
}

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

/* Card Content */
.blog-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

/* Categories */
.blog-card-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.blog-card-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card-category:hover {
    text-decoration: underline;
}

[data-theme="dark"] .blog-card-category {
    color: var(--primary-400);
}

/* Title */
.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary-600);
}

[data-theme="dark"] .blog-card-title a:hover {
    color: var(--primary-400);
}

/* Excerpt */
.blog-card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
    flex: 1;
}

/* Meta */
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-author span {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.blog-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-card-separator {
    opacity: 0.5;
}

/* ===== Blog Pagination ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
    padding: 32px 24px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-pagination .page-numbers li {
    display: flex;
}

.blog-pagination a,
.blog-pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.blog-pagination a {
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.blog-pagination a:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.blog-pagination span.current {
    background: var(--primary-600);
    color: white;
    border: 1px solid var(--primary-600);
}

/* ===== Blog Empty State ===== */
.blog-empty {
    text-align: center;
    padding: 80px 24px;
}

.blog-empty-icon {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.blog-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.blog-empty p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.blog-empty .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--primary-600);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.blog-empty .btn-primary:hover {
    background: var(--primary-700);
}

/* ===== Blog Responsive ===== */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 32px;
    }
    
    .blog-card-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .blog-card-featured .blog-card-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 40px 20px 32px;
    }
    
    .blog-header-title {
        font-size: 1.75rem;
    }
    
    .blog-header-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .blog-categories {
        padding: 16px;
        gap: 8px;
    }
    
    .category-chip {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .blog-card-featured {
        grid-column: span 1;
    }
    
    .blog-card-featured .blog-card-image {
        height: 220px;
    }
    
    .blog-card-featured .blog-card-title {
        font-size: 1.25rem;
    }
    
    .blog-card-image {
        height: 180px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .blog-header-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .blog-header-title {
        font-size: 1.5rem;
    }
    
    .blog-grid {
        padding: 16px;
    }
    
    .blog-card-content {
        padding: 16px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
}

/* ===================================================================
   SINGLE BLOG POST STYLES
   =================================================================== */

/* ===== Single Post Wrapper ===== */
.single-post-wrapper {
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
}

/* ===== Post Header ===== */
.single-post-header {
    position: relative;
    padding: 60px 24px 48px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

[data-theme="dark"] .single-post-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, var(--bg-primary) 100%);
}

.single-post-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.single-post-header-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.single-post-header-decoration .decoration-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    position: absolute;
    top: -200px;
    right: -100px;
    opacity: 0.5;
    border-radius: 50%;
}

.single-post-header-decoration .decoration-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-200, #fef3c7) 0%, transparent 70%);
    position: absolute;
    bottom: -150px;
    left: -50px;
    opacity: 0.5;
    border-radius: 50%;
}

[data-theme="dark"] .single-post-header-decoration .decoration-circle-1 {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.2) 0%, transparent 70%);
}

[data-theme="dark"] .single-post-header-decoration .decoration-circle-2 {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
}

/* Categories */
.single-post-categories {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.single-post-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
}

.single-post-category:hover {
    background: var(--primary-600);
    color: white;
}

[data-theme="dark"] .single-post-category {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-400);
}

/* Title */
.single-post-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}

/* Excerpt */
.single-post-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Meta */
.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.single-post-meta .post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.single-post-meta .post-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-post-meta .author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.single-post-meta .author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.single-post-meta .author-role {
    font-size: 13px;
    color: var(--text-muted);
}

.post-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== Featured Image ===== */
.single-post-featured-image {
    max-width: 1000px;
    margin: -24px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.featured-image-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Content Wrapper ===== */
.single-post-content-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px;
    gap: 48px;
}

/* ===== TOC Sidebar ===== */
.single-post-toc {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 24px);
    height: fit-content;
    order: 2;
}

.single-post-toc .toc-container {
    padding: 0;
}

.single-post-toc .toc-title,
.single-post-toc .share-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.single-post-toc .toc-nav {
    position: relative;
}

.single-post-toc .toc-nav::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

.single-post-toc .toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-post-toc .toc-list a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.single-post-toc .toc-list a:hover {
    color: var(--text-primary);
}

.single-post-toc .toc-list a.is-active {
    color: var(--primary-600);
    border-left-color: var(--primary-600);
    font-weight: 500;
}

[data-theme="dark"] .single-post-toc .toc-list a.is-active {
    color: var(--primary-400);
    border-left-color: var(--primary-400);
}

/* Share Buttons */
.post-share {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.share-buttons {
    display: flex;
    gap: 8px;
}

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

.share-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.share-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.share-copy:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

/* ===== Main Content ===== */
.single-post-content {
    flex: 1;
    min-width: 0;
    max-width: 750px;
    order: 1;
}

.single-post-content .entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.single-post-content .entry-content h2 {
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 1.75rem;
    color: var(--text-primary);
}

.single-post-content .entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.single-post-content .entry-content h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.35rem;
    color: var(--text-primary);
}

.single-post-content .entry-content p {
    margin-bottom: 20px;
}

.single-post-content .entry-content a {
    color: var(--primary-600);
    text-decoration: none;
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, var(--primary-200) 90%, var(--primary-200) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 2px;
}

.single-post-content .entry-content a:hover {
    color: var(--primary-700);
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, var(--primary-400) 90%, var(--primary-400) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}

.single-post-content .entry-content a:focus {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 3px;
}

[data-theme="dark"] .single-post-content .entry-content a {
    color: var(--primary-400);
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, rgba(255, 107, 53, 0.4) 90%, rgba(255, 107, 53, 0.4) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}

[data-theme="dark"] .single-post-content .entry-content a:hover {
    color: var(--primary-300);
    background: linear-gradient(to bottom, transparent 0%, transparent 90%, rgba(255, 107, 53, 0.6) 90%, rgba(255, 107, 53, 0.6) 100%);
    background-size: 100% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
}

.single-post-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.single-post-content .entry-content blockquote {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-600);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.single-post-content .entry-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9em;
}

.single-post-content .entry-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
}

.single-post-content .entry-content pre code {
    background: transparent;
    padding: 0;
}

/* Comprehensive content styling for single-post-content (blog posts) */
/* Base styles inherited from .entry-content - additional specific styles below */

.single-post-content .entry-content h1,
.single-post-content .entry-content h2,
.single-post-content .entry-content h3,
.single-post-content .entry-content h4,
.single-post-content .entry-content h5,
.single-post-content .entry-content h6 {
    color: var(--text-primary);
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.single-post-content .entry-content li {
    margin-bottom: 8px;
    line-height: 1.8;
}

.single-post-content .entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.single-post-content .entry-content thead {
    background: var(--bg-secondary);
}

[data-theme="dark"] .single-post-content .entry-content thead {
    background: rgba(255, 255, 255, 0.05);
}

.single-post-content .entry-content th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-post-content .entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 15px;
}

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

.single-post-content .entry-content tbody tr:hover {
    background: var(--bg-secondary);
}

[data-theme="dark"] .single-post-content .entry-content tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.single-post-content .entry-content code {
    background: var(--bg-secondary);
    color: var(--primary-600);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .single-post-content .entry-content code {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-300);
    border-color: rgba(255, 107, 53, 0.3);
}

.single-post-content .entry-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 24px 0;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
    font-size: 14px;
    line-height: 1.6;
}

[data-theme="dark"] .single-post-content .entry-content pre {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--border-color);
}

.single-post-content .entry-content pre code {
    background: transparent;
    padding: 0;
    border: none;
    color: var(--text-primary);
    font-size: inherit;
    border-radius: 0;
}

[data-theme="dark"] .single-post-content .entry-content pre code {
    background: transparent;
    color: var(--text-primary);
}

.single-post-content .entry-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 32px 0;
    background: none;
}

.single-post-content .entry-content strong,
.single-post-content .entry-content b {
    font-weight: 600;
    color: var(--text-primary);
}

.single-post-content .entry-content mark {
    background: var(--primary-100);
    color: var(--text-primary);
    padding: 2px 4px;
    border-radius: 3px;
}

[data-theme="dark"] .single-post-content .entry-content mark {
    background: rgba(255, 107, 53, 0.2);
}

.single-post-content .entry-content figure {
    margin: 24px 0;
}

.single-post-content .entry-content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
    text-align: center;
    font-style: italic;
}

/* ===== Tags ===== */
.single-post-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.single-post-tags svg {
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 4px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--primary-50);
    border-color: var(--primary-300);
    color: var(--primary-600);
}

[data-theme="dark"] .post-tag:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* ===== Author Box ===== */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.author-content {
    flex: 1;
}

.author-content .author-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.author-content .author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 8px;
}

.author-content .author-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ===== Related Posts ===== */
.related-posts {
    margin-top: 64px;
}

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

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: block;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-200);
}

.related-image {
    height: 140px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.related-content {
    padding: 16px;
}

.related-date {
    font-size: 12px;
    color: var(--text-muted);
}

.related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 6px;
    line-height: 1.4;
}

/* ===== Comments ===== */
.single-post-comments {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* ===== Single Post Responsive ===== */
@media (max-width: 1024px) {
    .single-post-toc {
        display: none;
    }
    
    .single-post-content-wrapper {
        padding: 32px 20px;
    }
    
    .single-post-content {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .single-post-header {
        padding: 40px 20px 32px;
    }
    
    .single-post-title {
        font-size: 1.75rem;
    }
    
    .single-post-excerpt {
        font-size: 1rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 16px;
    }
    
    .single-post-featured-image {
        padding: 0 16px;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .single-post-header {
        padding: 32px 16px 24px;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-content .entry-content {
        font-size: 16px;
    }
    
    .single-post-meta .post-author img {
        width: 40px;
        height: 40px;
    }
}

/* ===================================================================
   404 PAGE STYLES
   =================================================================== */

/* ===== 404 Wrapper ===== */
.error-404-wrapper {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    width: 100%;
    flex: 1;
    margin: 0 auto;
}

/* Override site-main flex for 404 page */
body.error404 .site-main {
    display: block;
}

body.error404 .site-wrapper {
    display: flex;
    flex-direction: column;
}

/* ===== Animated Background ===== */
.error-404-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.error-404-bg .grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, transparent 20%, black 80%);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-200, #fef3c7) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%);
    top: 30%;
    left: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--accent-300, #fcd34d) 0%, transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: -15s;
}

.shape-5 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-400) 0%, transparent 70%);
    top: 20%;
    right: 30%;
    animation-delay: -7s;
}

[data-theme="dark"] .floating-shape {
    opacity: 0.3;
}

[data-theme="dark"] .shape-1 { background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%); }
[data-theme="dark"] .shape-2 { background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 70%); }
[data-theme="dark"] .shape-3 { background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%); }
[data-theme="dark"] .shape-4 { background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%); }
[data-theme="dark"] .shape-5 { background: radial-gradient(circle, rgba(255, 107, 53, 0.35) 0%, transparent 70%); }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-3deg); }
    75% { transform: translate(15px, 10px) rotate(2deg); }
}

/* ===== 404 Container ===== */
.error-404-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.error-404-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

/* ===== Robot Illustration ===== */
.error-404-illustration {
    margin-bottom: 32px;
}

.illustration-container {
    position: relative;
    display: inline-block;
}

.robot {
    position: relative;
    display: inline-block;
    animation: robot-hover 3s ease-in-out infinite;
}

@keyframes robot-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.robot-head {
    position: relative;
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: 16px;
    margin: 0 auto 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .robot-head {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
}

.robot-face {
    position: absolute;
    inset: 8px;
    background: var(--bg-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.robot-eye {
    width: 16px;
    height: 16px;
    background: var(--primary-100);
    border-radius: 50%;
    position: relative;
    animation: blink 4s ease-in-out infinite;
}

[data-theme="dark"] .robot-eye {
    background: rgba(255, 107, 53, 0.2);
}

.eye-pupil {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary-600);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: look-around 6s ease-in-out infinite;
}

@keyframes blink {
    0%, 45%, 55%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.1); }
}

@keyframes look-around {
    0%, 100% { transform: translate(-50%, -50%); }
    25% { transform: translate(-20%, -50%); }
    50% { transform: translate(-80%, -50%); }
    75% { transform: translate(-50%, -30%); }
}

.robot-mouth {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: var(--primary-600);
    border-radius: 4px;
    animation: mouth-sad 3s ease-in-out infinite;
}

@keyframes mouth-sad {
    0%, 100% { border-radius: 0 0 12px 12px; height: 8px; }
    50% { border-radius: 4px; height: 4px; }
}

.robot-antenna {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 20px;
    background: var(--gray-400);
}

.antenna-ball {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: antenna-glow 2s ease-in-out infinite;
}

@keyframes antenna-glow {
    0%, 100% { box-shadow: 0 0 8px var(--primary-400); }
    50% { box-shadow: 0 0 20px var(--primary-500), 0 0 40px var(--primary-400); }
}

.robot-body {
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
    border-radius: 16px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .robot-body {
    background: linear-gradient(135deg, var(--gray-700) 0%, var(--gray-800) 100%);
}

.robot-screen {
    position: absolute;
    inset: 10px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500, #06b6d4) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen-text {
    font-size: 24px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.robot-arm {
    position: absolute;
    width: 12px;
    height: 40px;
    background: var(--gray-300);
    border-radius: 6px;
    top: 10px;
}

[data-theme="dark"] .robot-arm {
    background: var(--gray-600);
}

.robot-arm-left {
    left: -16px;
    animation: wave-left 2s ease-in-out infinite;
    transform-origin: top center;
}

.robot-arm-right {
    right: -16px;
    animation: wave-right 2s ease-in-out infinite;
    animation-delay: 0.5s;
    transform-origin: top center;
}

@keyframes wave-left {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes wave-right {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
}

/* Floating Code Elements */
.floating-elements {
    position: absolute;
    inset: -40px;
    pointer-events: none;
}

.floating-code {
    position: absolute;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-400);
    opacity: 0.6;
}

.floating-code-1 {
    top: 0;
    left: -20px;
    animation: float-code 4s ease-in-out infinite;
}

.floating-code-2 {
    top: 20px;
    right: -30px;
    animation: float-code 4s ease-in-out infinite reverse;
    animation-delay: 1s;
}

.floating-code-3 {
    bottom: 10px;
    left: 0;
    animation: float-code 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float-code {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-15px) rotate(10deg); opacity: 0.9; }
}

/* ===== Error Text ===== */
.error-404-text {
    margin-bottom: 48px;
}

.error-404-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.error-404-title span {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--accent-500, #06b6d4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bounce-letter 2s ease-in-out infinite;
}

.title-4:first-child { animation-delay: 0s; }
.title-0 { animation-delay: 0.2s; }
.title-4:last-child { animation-delay: 0.4s; }

@keyframes bounce-letter {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.error-404-subtitle {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-404-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ===== 404 Action Buttons ===== */
.error-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-primary-404,
.btn-secondary-404 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary-404 {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.btn-primary-404:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary-404 {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-404:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-300);
}

/* ===== 404 Search Box ===== */
.error-404-search {
    margin-bottom: 48px;
}

.error-404-search .search-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.search-form-404 {
    max-width: 500px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 4px 4px 4px 16px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.search-input-wrapper .search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 12px 14px 48px;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.search-submit-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-600);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-submit-btn:hover {
    background: var(--primary-700);
    transform: translateX(2px);
}

/* ===== 404 Quick Links ===== */
.error-404-links h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.quick-link-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-50);
    border-radius: 10px;
    color: var(--primary-600);
    flex-shrink: 0;
}

[data-theme="dark"] .quick-link-icon {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

.quick-link-content {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quick-link-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.quick-link-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== 404 Responsive ===== */
@media (max-width: 768px) {
    .error-404-title {
        font-size: 4rem;
    }
    
    .error-404-subtitle {
        font-size: 1.25rem;
    }
    
    .error-404-description {
        font-size: 1rem;
    }
    
    .error-404-actions {
        flex-direction: column;
    }
    
    .btn-primary-404,
    .btn-secondary-404 {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-link {
        flex-direction: column;
        text-align: center;
        padding: 20px 12px;
    }
    
    .quick-link-content {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .error-404-wrapper {
        padding: 30px 16px;
        min-height: calc(100vh - var(--header-height) - var(--nav-height) - 60px);
    }
    
    .error-404-container {
        padding: 16px;
    }
    
    .error-404-title {
        font-size: 3rem;
    }
    
    .robot-head { width: 60px; height: 45px; }
    .robot-body { width: 75px; height: 55px; }
    .screen-text { font-size: 18px; }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-link {
        flex-direction: row;
        padding: 14px;
    }
    
    .quick-link-content {
        text-align: left;
    }
}

/* ===================================================================
   BLOG SIDEBAR STYLES
   =================================================================== */

/* ===== Blog Layout ===== */
.blog-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    max-width: 100%;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
}

/* ===== Blog Sidebar ===== */
.blog-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height));
    height: calc(100vh - var(--header-height) - var(--nav-height));
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
    z-index: 10;
}

.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--gray-300);
    border-radius: 3px;
}

[data-theme="dark"] .blog-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--gray-600);
}

.blog-sidebar .sidebar-inner {
    padding: 24px 16px;
}

/* ===== Blog Sidebar Header ===== */
.blog-sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.blog-sidebar-header .sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.blog-sidebar-header .sidebar-title svg {
    color: var(--primary-600);
}

/* ===== Sidebar Sections ===== */
.sidebar-section {
    margin-bottom: 28px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 12px 0;
    padding: 0 4px;
}

.sidebar-section-title svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== Sidebar Menu ===== */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 2px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all var(--transition-fast);
    position: relative;
}

.sidebar-menu li a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-menu li.current-menu-item > a {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 500;
}

[data-theme="dark"] .sidebar-menu li.current-menu-item > a {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

.sidebar-menu .menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

/* Dashicons in sidebar - ensure proper display */
.sidebar-menu .menu-icon.dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: inherit;
    opacity: 0.6;
    flex-shrink: 0;
    font-family: "dashicons" !important;
    font-weight: normal !important;
    font-style: normal !important;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Ensure Dashicons display as icon font, not text */
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}

/* Ensure Dashicons pseudo-element works */
.sidebar-menu .menu-icon.dashicons::before {
    font-family: "dashicons" !important;
    font-weight: normal !important;
    font-style: normal !important;
    display: inline-block;
    text-decoration: inherit;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sidebar-menu li a:hover .menu-icon.dashicons {
    opacity: 1;
    color: inherit;
}

.sidebar-menu li.current-menu-item .menu-icon {
    opacity: 1;
}

.sidebar-menu li.current-menu-item .menu-icon.dashicons {
    opacity: 1;
    color: var(--primary-600);
}

[data-theme="dark"] .sidebar-menu li.current-menu-item .menu-icon.dashicons {
    color: var(--primary-400);
}

.sidebar-menu .post-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    background: var(--gray-100);
    color: var(--text-muted);
    border-radius: 10px;
}

[data-theme="dark"] .sidebar-menu .post-count {
    background: var(--gray-700);
}

.sidebar-menu li.current-menu-item .post-count {
    background: var(--primary-100);
    color: var(--primary-700);
}

[data-theme="dark"] .sidebar-menu li.current-menu-item .post-count {
    background: rgba(255, 107, 53, 0.25);
    color: var(--primary-300);
}

/* Archives menu - special styling for wp_get_archives output */
.blog-archives-menu li a {
    padding-left: 12px;
}

/* ===== Blog Tags Cloud ===== */
.blog-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 4px;
}

.blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.blog-tag:hover {
    background: var(--primary-50);
    color: var(--primary-700);
    border-color: var(--primary-200);
}

[data-theme="dark"] .blog-tag:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
    border-color: rgba(255, 107, 53, 0.3);
}

.blog-tag.active {
    background: var(--primary-600);
    color: white;
    border-color: var(--primary-600);
}

/* ===== Blog Main Content ===== */
.blog-main {
    flex: 1;
    min-width: 0;
    padding: 32px 40px;
    max-width: 100%;
    box-sizing: border-box;
}

/* ===== Blog Header ===== */
.blog-header {
    position: relative;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-secondary) 100%);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .blog-header {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, var(--bg-secondary) 100%);
}

.blog-header-content {
    position: relative;
    z-index: 1;
}

.blog-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-700);
    background: var(--primary-100);
    border-radius: 20px;
    margin-bottom: 16px;
}

[data-theme="dark"] .blog-header-badge {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-400);
}

.blog-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.blog-header-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
    max-width: 600px;
    line-height: 1.6;
}

/* Blog Search */
.blog-search {
    max-width: 400px;
}

.blog-search-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.blog-search-inner:focus-within {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.blog-search-inner .search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.blog-search-inner input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.blog-search-inner input::placeholder {
    color: var(--text-muted);
}

/* Header Decoration */
.blog-header-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
}

.decoration-circle-1 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    top: -50px;
    right: -50px;
}

.decoration-circle-2 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--primary-300) 0%, transparent 70%);
    bottom: -30px;
    right: 100px;
}

.decoration-circle-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-200, #fef3c7) 0%, transparent 70%);
    top: 20%;
    right: 20%;
}

[data-theme="dark"] .decoration-circle {
    opacity: 0.2;
}

/* ===== Blog Grid ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Featured Card (First post) */
.blog-card-featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.blog-card-featured .blog-card-image {
    aspect-ratio: 16 / 10;
    border-radius: 16px 0 0 16px;
}

.blog-card-featured .blog-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-featured .blog-card-title {
    font-size: 1.75rem;
}

/* Regular Blog Card */
.blog-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.blog-card:hover {
    border-color: var(--primary-200);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .blog-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--bg-tertiary);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.blog-card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.blog-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.blog-card:hover .blog-card-image-overlay {
    opacity: 1;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-600);
    text-decoration: none;
    padding: 4px 10px;
    background: var(--primary-50);
    border-radius: 6px;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .blog-card-category {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

.blog-card-category:hover {
    background: var(--primary-100);
}

[data-theme="dark"] .blog-card-category:hover {
    background: rgba(255, 107, 53, 0.25);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card-title a:hover {
    color: var(--primary-600);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-card-author span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.blog-card-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.blog-card-separator {
    opacity: 0.5;
}

/* ===== Blog Pagination ===== */
.blog-pagination {
    display: flex;
    justify-content: center;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-pagination .page-numbers li {
    margin: 0;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition-fast);
    gap: 6px;
}

.blog-pagination .page-numbers a:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-300);
    color: var(--text-primary);
}

.blog-pagination .page-numbers .current {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
}

.blog-pagination .page-numbers svg {
    flex-shrink: 0;
}

/* ===== Blog Empty State ===== */
.blog-empty {
    text-align: center;
    padding: 80px 24px;
}

.blog-empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-muted);
}

.blog-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.blog-empty p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.blog-empty .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    background: var(--primary-600);
    border-radius: 10px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.blog-empty .btn-primary:hover {
    background: var(--primary-700);
}

/* ===== Blog Sidebar Responsive ===== */
@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured {
        grid-template-columns: 1fr;
    }
    
    .blog-card-featured .blog-card-image {
        border-radius: 16px 16px 0 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 1024px) {
    .blog-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        z-index: 1001;
        border-right: 1px solid var(--border-color);
    }
    
    .blog-sidebar.active {
        transform: translateX(0);
    }
    
    .blog-main {
        max-width: 100%;
        padding: 24px 20px;
    }
    
    .blog-header {
        padding: 24px;
    }
    
    .blog-header-title {
        font-size: 1.75rem;
    }
    
    .blog-header-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-main {
        padding: 16px;
    }
    
    .blog-header {
        padding: 20px;
        border-radius: 12px;
    }
    
    .blog-header-title {
        font-size: 1.5rem;
    }
    
    .blog-card-content {
        padding: 16px;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ===================================================================
   SINGLE POST LAYOUT STYLES
   =================================================================== */

/* ===== Single Post Layout ===== */
.blog-single-layout .blog-main {
    padding: 32px 40px;
}

.blog-single-main {
    max-width: calc(100% - var(--sidebar-width));
}

.single-post-article {
    max-width: 1000px;
}

/* ===== Back to Blog Link ===== */
.back-to-blog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 20px;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

.back-to-blog:hover {
    color: var(--primary-600);
}

.back-to-blog svg {
    transition: transform var(--transition-fast);
}

.back-to-blog:hover svg {
    transform: translateX(-4px);
}

/* ===== Single Post Header ===== */
.single-post-header {
    margin-bottom: 32px;
}

.single-post-header-content {
    position: relative;
}

.single-post-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.single-post-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-700);
    background: var(--primary-50);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

[data-theme="dark"] .single-post-category {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

.single-post-category:hover {
    background: var(--primary-100);
}

[data-theme="dark"] .single-post-category:hover {
    background: rgba(255, 107, 53, 0.25);
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.single-post-excerpt {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

.post-details {
    display: flex;
    align-items: center;
    gap: 20px;
}

.post-date,
.post-reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.post-date svg,
.post-reading-time svg {
    color: var(--text-muted);
}

/* ===== Featured Image ===== */
.single-post-featured-image {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.featured-image-container {
    position: relative;
    aspect-ratio: 16 / 9;
}

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

/* ===== Post Content Wrapper ===== */
.single-post-content-wrapper {
    display: flex;
    gap: 40px;
    position: relative;
}

/* ===== TOC Sidebar ===== */
.single-post-toc {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 32px);
    width: 220px;
    flex-shrink: 0;
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - var(--nav-height) - 64px);
    order: 2;
}

.toc-container {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.toc-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

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

.toc-list li {
    margin-bottom: 4px;
}

.toc-list li a {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    border-left: 2px solid transparent;
    padding-left: 12px;
    margin-left: -12px;
}

.toc-list li a:hover {
    color: var(--text-primary);
}

.toc-list li a.active {
    color: var(--primary-600);
    border-left-color: var(--primary-600);
}

.toc-placeholder {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Share Buttons ===== */
.post-share {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.share-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 12px 0;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.share-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--primary-300);
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.share-linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

/* ===== Main Post Content ===== */
.single-post-content {
    flex: 1;
    min-width: 0;
    order: 1;
}

/* ===== Post Tags ===== */
.single-post-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 24px 0;
    margin: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.single-post-tags > svg {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-top: 4px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: 20px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.post-tag:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

[data-theme="dark"] .post-tag:hover {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-400);
}

/* ===== Author Box ===== */
.author-box {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin: 32px 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-content {
    flex: 1;
}

.author-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-content .author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 8px 0;
}

.author-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== Post Navigation ===== */
.single-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 40px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    border-color: var(--primary-300);
    transform: translateY(-2px);
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-next .nav-direction {
    justify-content: flex-end;
}

/* ===== Related Posts ===== */
.related-posts {
    margin: 48px 0;
}

.related-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.related-card:hover {
    border-color: var(--primary-300);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.related-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.related-content {
    padding: 16px;
}

.related-date {
    font-size: 12px;
    color: var(--text-muted);
}

.related-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 6px 0 0 0;
}

/* ===== Comments ===== */
.single-post-comments {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

/* ===== Single Post Responsive ===== */
@media (max-width: 1024px) {
    .blog-single-layout .blog-main {
        padding: 24px 20px;
        max-width: 100%;
    }
    
    .single-post-toc {
        display: none;
    }
    
    .single-post-content-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .single-post-title {
        font-size: 2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-single-layout .blog-main {
        padding: 16px;
    }
    
    .single-post-title {
        font-size: 1.5rem;
    }
    
    .single-post-excerpt {
        font-size: 1rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .single-post-featured-image {
        margin: 0 -16px 32px -16px;
        border-radius: 0;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .single-post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-direction {
        justify-content: flex-start;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================================================
   ENHANCED MOBILE RESPONSIVE STYLES
   =================================================================== */

@media (max-width: 768px) {
    /* Blog sidebar on mobile */
    .blog-sidebar {
        width: 100%;
        max-width: 300px;
        padding-top: calc(var(--header-height) + var(--nav-height) + 16px);
    }
    
    .blog-main {
        padding: 16px;
    }
    
    .blog-header {
        padding: 20px;
        margin-bottom: 24px;
        border-radius: 12px;
    }
    
    .blog-header-title {
        font-size: 1.5rem;
    }
    
    .blog-search {
        max-width: 100%;
    }
    
    .blog-card-content {
        padding: 16px;
    }
    
    .blog-card-title {
        font-size: 1rem;
    }
    
    .blog-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    /* Very small devices */
    .header-main {
        padding: 0 12px;
        margin: 0 auto;
    }
    
    .header-nav {
        padding: 0 12px;
        margin: 0 auto;
    }
    
    .docs-content {
        padding: 16px 12px;
    }
    
    .blog-main {
        padding: 12px;
    }
    
    .blog-header {
        padding: 16px;
    }
    
    .blog-header-title {
        font-size: 1.25rem;
    }
    
    .blog-header-description {
        font-size: 0.875rem;
    }
    
    .page-title {
        font-size: 1.25rem;
    }
    
    .page-description {
        font-size: 0.9rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    /* Sidebar width on very small screens */
    .docs-sidebar,
    .blog-sidebar {
        max-width: 280px;
    }
    
    /* Entry content typography */
    .entry-content h2 {
        font-size: 1.25rem;
    }
    
    .entry-content h3 {
        font-size: 1.1rem;
    }
    
    .entry-content p,
    .entry-content li {
        font-size: 0.9rem;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets on touch devices */
    .sidebar-menu li a,
    .nav-tabs li a,
    .blog-tag,
    .share-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .theme-toggle,
    .mobile-menu-toggle {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Remove hover effects on touch devices */
    .blog-card:hover {
        transform: none;
    }
    
    .nav-item:hover {
        transform: none;
    }
}

/* ===== Safe Area Insets for Notched Devices ===== */
@supports (padding: env(safe-area-inset-left)) {
    .header-main {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .header-nav {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .docs-content {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .blog-main {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    
    .site-footer {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
}

/* ===================================================================
   WELCOME PAGE STYLES
   =================================================================== */

.welcome-page {
    min-height: 100vh;
}

/* Hide sidebar on desktop for welcome page - only show on mobile when hamburger is clicked */
@media (min-width: 769px) {
    /* Hide sidebar when welcome page is present */
    body.is-welcome-page .docs-sidebar {
        display: none !important;
    }
}

/* On mobile, sidebar should work normally (hidden by default, shown when hamburger is clicked) */
@media (max-width: 768px) {
    /* Sidebar is already handled by mobile styles, just ensure it's not hidden */
    body.is-welcome-page .docs-sidebar {
        display: block;
    }
}

/* ===== Hero Section ===== */
.welcome-hero {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--nav-height));
    padding: 100px 60px;
    overflow: hidden;
    background: transparent; /* Clean background */
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient {
    display: none; /* Removed background gradient */
}

[data-theme="dark"] .hero-gradient {
    display: none; /* Removed background gradient */
}

.hero-grid {
    display: none; /* Removed grid pattern */
}

[data-theme="dark"] .hero-grid {
    display: none; /* Removed grid pattern */
}

.hero-glow {
    display: none; /* Removed glow effects */
}

.hero-glow-1,
.hero-glow-2,
.hero-glow-3 {
    display: none; /* Removed individual glows */
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 217, 61, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-orange);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

[data-theme="dark"] .hero-badge {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 217, 61, 0.2));
    color: var(--primary-400);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.badge-icon.africa-icon svg {
    color: var(--accent-orange);
}

[data-theme="dark"] .badge-icon.africa-icon svg {
    color: var(--primary-400);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-orange), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-600));
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
    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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hero Visual - Code Window */
.hero-visual {
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.code-window {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 107, 53, 0.08),
        0 10px 30px rgba(255, 107, 53, 0.05);
    transform: perspective(1000px) rotateY(-3deg) rotateX(2deg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-5px);
    box-shadow: 
        0 35px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 107, 53, 0.15),
        0 15px 40px rgba(255, 107, 53, 0.1);
}

[data-theme="dark"] .code-window {
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 107, 53, 0.2);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots .dot.red { background: #ff5f56; }
.code-dots .dot.yellow { background: #ffbd2e; }
.code-dots .dot.green { background: #27ca40; }

.code-title {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
}

.code-body code {
    color: var(--text-secondary);
}

.code-keyword { color: #c678dd; }
.code-var { color: #e5c07b; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }
.code-func { color: #61afef; }
.code-prop { color: #e06c75; }

/* ===== Features Section ===== */
.welcome-features {
    padding: 100px 60px;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 217, 61, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-badge {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(255, 217, 61, 0.2));
    color: var(--primary-400);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome-features .feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.welcome-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-from), var(--gradient-to));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.welcome-features .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.welcome-features .feature-card:hover::before {
    opacity: 1;
}

[data-theme="dark"] .welcome-features .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    border-radius: 14px;
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.feature-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 20px;
    display: inline-block;
}

.feature-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.welcome-features .feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Quick Start Section ===== */
.welcome-quickstart {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    padding: 100px 60px;
    align-items: start;
}

.quickstart-content {
    max-width: 600px;
}

.steps-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 14px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
}

.quickstart-cta {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + 40px);
}

.cta-card {
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), rgba(236, 72, 153, 0.05));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    text-align: center;
}

[data-theme="dark"] .cta-card {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(236, 72, 153, 0.1));
}

.cta-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-card p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ===== Welcome Page Responsive ===== */
@media (max-width: 1024px) {
    .welcome-hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 30px;
        min-height: auto;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .code-window {
        transform: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .welcome-features {
        padding: 60px 30px;
    }
    
    .welcome-quickstart {
        grid-template-columns: 1fr;
        padding: 60px 30px;
    }
    
    .quickstart-cta {
        position: static;
    }
}

@media (max-width: 768px) {
    .welcome-hero {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .welcome-features {
        padding: 40px 20px;
    }
    
    .welcome-quickstart {
        padding: 40px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
}

/* ===== Additional Welcome Page Styles ===== */

/* Hero Title Subtitle */
.hero-subtitle {
    display: block;
    font-size: 0.6em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Hero Languages */
.hero-languages {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.languages-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.languages-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.language-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.language-tag:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-orange);
}

.lang-flag {
    font-size: 16px;
}

.lang-native {
    font-weight: 500;
}

.language-more {
    font-size: 13px;
    color: var(--accent-orange);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 107, 53, 0.1);
}

.language-more:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent-red);
}

/* Prompt Demo in Code Window */
.prompt-demo {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prompt-input,
.prompt-output {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.prompt-label,
.output-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.prompt-text {
    font-size: 18px;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    font-weight: 500;
}

.amharic-text {
    color: var(--primary-500);
}

.prompt-translation {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    font-style: italic;
}

.prompt-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary-500);
    font-size: 14px;
    font-weight: 500;
}

.prompt-arrow svg {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.output-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.preview-component {
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float-badge 4s ease-in-out infinite;
}

[data-theme="dark"] .floating-badge {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.floating-badge-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.floating-badge-2 {
    bottom: 20%;
    left: -30px;
    animation-delay: -2s;
}

@keyframes float-badge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Stats Section */
.welcome-stats {
    padding: 40px 60px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.welcome-stats .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

.welcome-stats .stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-stats .stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: var(--border-color);
}

/* How It Works Section */
.welcome-how-it-works {
    padding: 100px 60px;
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    max-width: 320px;
    padding: 40px 32px;
    text-align: center;
}

.step-card .step-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-100);
    color: var(--primary-600);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 16px;
}

[data-theme="dark"] .step-card .step-number {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-400);
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.step-connector {
    width: 80px;
    padding-top: 80px;
    color: var(--border-color);
    flex-shrink: 0;
}

.step-connector svg {
    width: 100%;
    height: 20px;
}

/* Languages Section */
.welcome-languages {
    padding: 100px 60px;
    background: var(--bg-secondary);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 0 auto 32px;
}

.language-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.language-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-300);
}

[data-theme="dark"] .language-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lang-flag-large {
    font-size: 32px;
}

.lang-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.lang-native-name {
    font-size: 13px;
    color: var(--text-muted);
}

.languages-note {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

/* CTA Section */
.welcome-cta {
    position: relative;
    padding: 100px 60px;
    text-align: center;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

[data-theme="dark"] .cta-glow {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.25) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-emoji {
    font-size: 64px;
    display: block;
    margin-bottom: 24px;
}

.welcome-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.welcome-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-actions {
    margin-bottom: 16px;
}

.cta-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Additional Responsive Styles */
@media (max-width: 1024px) {
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        width: 20px;
        height: 40px;
        padding-top: 0;
        transform: rotate(90deg);
    }
    
    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .welcome-stats {
        padding: 30px 20px;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .welcome-stats .stat-value {
        font-size: 2rem;
    }
    
    .welcome-how-it-works,
    .welcome-languages,
    .welcome-cta {
        padding: 60px 20px;
    }
    
    .step-card {
        padding: 24px 16px;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .welcome-cta h2 {
        font-size: 1.75rem;
    }
    
    .hero-languages {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .output-preview {
        grid-template-columns: 1fr;
    }
    
    .languages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .language-card {
        padding: 16px 12px;
    }
    
    .lang-flag-large {
        font-size: 24px;
    }
}

/* ===================================================================
   DALA TUTORIALS STYLES
   =================================================================== */

/* Tutorial Card in Sidebar */
.tutorial-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    color: var(--text-muted);
}

/* Difficulty Badges */
.difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.difficulty-beginner {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.difficulty-intermediate {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

[data-theme="dark"] .difficulty-beginner {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

[data-theme="dark"] .difficulty-intermediate {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

[data-theme="dark"] .difficulty-advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Tutorial Card */
.tutorial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-300);
}

[data-theme="dark"] .tutorial-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.tutorial-card-header {
    position: relative;
    height: 160px;
    background: linear-gradient(135deg, var(--primary-500), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-card-type {
    font-size: 48px;
}

.tutorial-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tutorial-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.tutorial-card-title a {
    color: inherit;
    text-decoration: none;
}

.tutorial-card-title a:hover {
    color: var(--primary-500);
}

.tutorial-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tutorial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.tutorial-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.tutorial-duration svg {
    width: 14px;
    height: 14px;
}

/* Tutorial Grid */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Tutorial Single View */
.tutorial-header {
    margin-bottom: 32px;
}

.tutorial-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tutorial-header-meta .content-type-badge {
    font-size: 13px;
    padding: 6px 12px;
}

.tutorial-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.tutorial-video-container iframe,
.tutorial-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.tutorial-file-download {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 32px;
}

.tutorial-file-icon {
    font-size: 36px;
}

.tutorial-file-info {
    flex: 1;
}

.tutorial-file-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.tutorial-file-size {
    font-size: 13px;
    color: var(--text-muted);
}

.tutorial-file-download .btn {
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
    }
    
    .tutorial-card-header {
        height: 120px;
    }
    
    .tutorial-card-type {
        font-size: 36px;
    }
    
    .tutorial-header-meta {
        gap: 10px;
    }
    
    .tutorial-file-download {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   ACCORDION / FAQ STYLES
   ======================================== */

/* Accordion Container - All WordPress block variations */
.wp-block-details,
.wp-block-accordion,
.wp-block-yoast-faq-block,
.accordion-item,
details {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Stack accordions with visible borders between items */
.wp-block-details + .wp-block-details,
.wp-block-accordion + .wp-block-accordion,
.accordion-item + .accordion-item,
details + details {
    margin-top: -1px;
    border-radius: 0;
}

/* First item in stack */
.wp-block-details:first-of-type,
.wp-block-accordion:first-of-type,
.accordion-item:first-of-type,
details:first-of-type {
    border-radius: 12px 12px 0 0;
}

/* Last item in stack */
.wp-block-details:last-of-type,
.wp-block-accordion:last-of-type,
.accordion-item:last-of-type,
details:last-of-type {
    border-radius: 0 0 12px 12px;
}

/* Single item (first and last) */
.wp-block-details:only-of-type,
.wp-block-accordion:only-of-type,
.accordion-item:only-of-type,
details:only-of-type {
    border-radius: 12px;
}

/* Middle items - ensure borders show */
.wp-block-details:not(:first-of-type):not(:last-of-type),
.wp-block-accordion:not(:first-of-type):not(:last-of-type),
.accordion-item:not(:first-of-type):not(:last-of-type),
details:not(:first-of-type):not(:last-of-type) {
    border-radius: 0;
}

/* Accordion Header/Summary - All variations */
.wp-block-details > summary,
.wp-block-accordion-heading,
.wp-block-accordion summary,
.wp-block-accordion .accordion-trigger,
.accordion-header,
details > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

/* Remove default markers */
.wp-block-details > summary::-webkit-details-marker,
.wp-block-accordion summary::-webkit-details-marker,
details > summary::-webkit-details-marker {
    display: none;
}

.wp-block-details > summary::marker,
.wp-block-accordion summary::marker,
details > summary::marker {
    display: none;
    content: '';
}

/* Custom triangle indicator */
.wp-block-details > summary::before,
.wp-block-accordion-heading::before,
.wp-block-accordion summary::before,
details > summary::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid var(--text-muted);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

/* Rotate triangle when open */
.wp-block-details[open] > summary::before,
.wp-block-accordion.is-open .wp-block-accordion-heading::before,
.wp-block-accordion[open] summary::before,
.wp-block-accordion-heading[aria-expanded="true"]::before,
details[open] > summary::before {
    transform: rotate(90deg);
}

/* Hover state */
.wp-block-details > summary:hover,
.wp-block-accordion-heading:hover,
.wp-block-accordion summary:hover,
details > summary:hover {
    background: var(--bg-secondary);
}

/* Focus state */
.wp-block-details > summary:focus,
.wp-block-accordion-heading:focus,
.wp-block-accordion summary:focus,
details > summary:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--accent-primary);
}

/* Open state - highlight border */
.wp-block-details[open],
.wp-block-accordion.is-open,
.wp-block-accordion[open],
details[open] {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px var(--accent-primary);
    position: relative;
    z-index: 1;
}

/* Accordion Content/Panel - All variations */
.wp-block-details > *:not(summary),
.wp-block-accordion-panel,
.wp-block-accordion-content,
.wp-block-accordion > *:not(summary):not(.wp-block-accordion-heading),
.accordion-content,
details > *:not(summary) {
    padding: 0 24px 20px 42px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Accordion content paragraphs */
.wp-block-details p,
.wp-block-accordion-panel p,
.wp-block-accordion p,
.accordion-content p,
details p {
    margin: 0 0 12px 0;
}

.wp-block-details p:last-child,
.wp-block-accordion-panel p:last-child,
.wp-block-accordion p:last-child,
.accordion-content p:last-child,
details p:last-child {
    margin-bottom: 0;
}

/* Section header with gradient underline */
.accordion-section-title,
.faq-section-title,
.troubleshooting-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    position: relative;
}

.accordion-section-title::after,
.faq-section-title::after,
.troubleshooting-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #EC4899, #FF6B35, #FFD93D);
    border-radius: 2px;
}

/* WordPress block heading before accordions */
.docs-content h2 + .wp-block-details,
.docs-content h3 + .wp-block-details,
.docs-content h2 + .wp-block-accordion,
.docs-content h3 + .wp-block-accordion {
    margin-top: 16px;
}

/* FAQ specific wrapper */
.faq-wrapper,
.accordion-wrapper,
.wp-block-group.is-style-accordion {
    margin: 32px 0;
}

/* Dark mode adjustments */
[data-theme="dark"] .wp-block-details,
[data-theme="dark"] .wp-block-accordion,
[data-theme="dark"] details {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .wp-block-details[open],
[data-theme="dark"] .wp-block-accordion.is-open,
[data-theme="dark"] .wp-block-accordion[open],
[data-theme="dark"] details[open] {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .wp-block-accordion-heading,
[data-theme="dark"] .wp-block-accordion-panel {
    color: var(--text-primary);
}

[data-theme="dark"] .wp-block-accordion-panel {
    color: var(--text-secondary);
}

/* Responsive accordion styles */
@media (max-width: 768px) {
    .wp-block-details > summary,
    .wp-block-accordion-heading,
    .wp-block-accordion summary,
    details > summary {
        padding: 16px 18px;
        font-size: 15px;
        gap: 10px;
    }
    
    .wp-block-details > *:not(summary),
    .wp-block-accordion-panel,
    .wp-block-accordion > *:not(summary):not(.wp-block-accordion-heading),
    details > *:not(summary) {
        padding: 0 18px 16px 34px;
        font-size: 14px;
    }
    
    .accordion-section-title,
    .faq-section-title,
    .troubleshooting-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .wp-block-details > summary,
    .wp-block-accordion-heading,
    .wp-block-accordion summary,
    details > summary {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .wp-block-details > *:not(summary),
    .wp-block-accordion-panel,
    .wp-block-accordion > *:not(summary):not(.wp-block-accordion-heading),
    details > *:not(summary) {
        padding: 0 16px 14px 30px;
        font-size: 13px;
    }
}

/* ===================================================================
   ARTICLE CTA SECTION
   =================================================================== */

.article-cta {
    margin: 60px 0;
    padding: 0;
}

.article-cta-content {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(236, 72, 153, 0.08));
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.article-cta-content:hover {
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

[data-theme="dark"] .article-cta-content {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(236, 72, 153, 0.15));
    border-color: rgba(255, 107, 53, 0.3);
}

[data-theme="dark"] .article-cta-content:hover {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 8px 32px rgba(255, 107, 53, 0.25);
}

.article-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-600));
    border-radius: 20px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.article-cta-icon svg {
    width: 40px;
    height: 40px;
}

.article-cta-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.article-cta-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.article-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-600));
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.article-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.article-cta-button:hover::before {
    left: 100%;
}

.article-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-orange));
}

.article-cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.article-cta-button:hover svg {
    transform: translateX(4px);
}

.article-cta-note {
    font-size: 14px;
    color: var(--text-muted);
    margin: 24px 0 0;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .article-cta {
        margin: 40px 0;
    }
    
    .article-cta-content {
        padding: 36px 24px;
        border-radius: 16px;
    }
    
    .article-cta-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }
    
    .article-cta-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .article-cta-title {
        font-size: 24px;
    }
    
    .article-cta-description {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .article-cta-button {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .article-cta-content {
        padding: 32px 20px;
    }
    
    .article-cta-title {
        font-size: 22px;
    }
    
    .article-cta-description {
        font-size: 15px;
    }
    
    .article-cta-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}
