/*
Theme Name: Nexus Docs
Theme URI: https://docs.nexusmarket.com
Author: Nexus Market
Author URI: https://www.nexusmarket.com
Description: A premium, high-performance documentation theme for Nexus Market products. Strictly for personal use only.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexusdocs
*/

/* =========================================
   VARIABLES & THEME
========================================= */
:root {
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-speed: 0.4s;
}

[data-theme="dark"] {
    --bg-base: #0a0a0c;
    --glass-bg: rgba(20, 20, 22, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-bg: rgba(139, 92, 246, 0.15);
    
    --orb-1: rgba(139, 92, 246, 0.35);
    --orb-2: rgba(6, 182, 212, 0.3);
    
    --code-bg: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    --bg-base: #f4f5f7;
    --glass-bg: #ffffff;
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
    
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    
    --accent: #6d28d9;
    --accent-hover: #5b21b6;
    --accent-bg: rgba(109, 40, 217, 0.1);
    
    --orb-1: rgba(139, 92, 246, 0.2);
    --orb-2: rgba(6, 182, 212, 0.2);
    
    --code-bg: #f1f5f9;
}

/* =========================================
   BASE STYLES
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color var(--transition-speed);
}

a { color: var(--accent); text-decoration: none; }
ul, ol { list-style-position: inside; }

.top-mask { display: none; }

/* Abstract Glowing Orbs */
.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1;
    animation: float 25s infinite alternate ease-in-out;
}
.orb-1 {
    top: -10%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
}
.orb-2 {
    bottom: -10%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0,0) scale(1); }
    100% { transform: translate(40px, 40px) scale(1.1); }
}

/* Glassmorphism Panel Class */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-speed);
}

/* =========================================
   HOMEPAGE SPECIFIC
========================================= */
.home-body { display: flex; flex-direction: column; }
.glass-wrapper { max-width: 1400px; margin: 0 auto; width: 100%; padding: 24px; display: flex; flex-direction: column; min-height: 100vh;}

/* Header Z-Index & Solid Background Fix */
.top-nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 32px; border-radius: 16px;
    margin-bottom: 60px;
    background: var(--bg-base) !important;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    z-index: 9999 !important;
}

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 20px; font-weight: 800; color: var(--text-primary); }
.logo-box { background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; }

.nav-actions { display: flex; align-items: center; gap: 24px; }
.nav-link { font-weight: 500; color: var(--text-secondary); }
.nav-link:hover { color: var(--text-primary); }
.icon-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 20px; cursor: pointer; transition: 0.2s; }
.icon-btn:hover { color: var(--accent); }

.hero-section { text-align: center; max-width: 800px; margin: 0 auto 80px; }
.hero-section h1 { font-family: var(--font-heading); font-size: 56px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; line-height: 1.1; color: var(--text-primary); }
.hero-section p { font-size: 20px; color: var(--text-secondary); margin-bottom: 40px; font-weight: 500;}

.search-container {
    display: flex; align-items: center; padding: 8px 16px; border-radius: 16px;
    max-width: 600px; margin: 0 auto;
}
.search-container i { color: var(--text-muted); font-size: 20px; margin-right: 16px; }
.search-container input {
    flex-grow: 1; background: transparent; border: none; outline: none;
    font-family: var(--font-body); font-size: 18px; color: var(--text-primary); padding: 12px 0;
}
.search-container kbd {
    background: rgba(128,128,128,0.2); padding: 4px 8px; border-radius: 6px;
    font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}

.categories-section { max-width: 1200px; margin: 0 auto; }
.section-title { font-family: var(--font-heading); font-size: 28px; font-weight: 800; margin-bottom: 32px; text-align: center; color: var(--text-primary); letter-spacing: -0.5px;}

/* SLEEK 4-COLUMN GRID */
.sleek-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sleek-card {
    display: flex; align-items: center; gap: 16px; padding: 20px;
    border-radius: 16px; transition: transform 0.2s, border-color 0.2s;
    text-decoration: none; color: inherit;
}
.sleek-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card-icon {
    width: 44px; height: 44px; border-radius: 12px; background: var(--accent-bg);
    color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px;
    flex-shrink: 0;
}
.card-info h3 { font-family: var(--font-heading); font-weight: 700; font-size: 17px; margin-bottom: 4px; color: var(--text-primary); }
.card-info p { font-size: 13px; color: var(--text-muted); font-weight: 500;}

/* =========================================
   DOCUMENTATION PAGE (2-COLUMN READABLE)
========================================= */
.glass-layout {
    display: flex; max-width: 1600px; margin: 0 auto; padding: 24px; gap: 24px;
    min-height: 100vh;
}

/* Docs page layout wrapper */
.docs-layout {
    display: flex; gap: 24px; align-items: flex-start;
}

.sidebar {
    width: 300px; flex-shrink: 0; border-radius: 24px; padding: 32px 24px;
    position: sticky; top: 24px; height: calc(100vh - 48px); overflow-y: auto;
}
.sidebar .logo { margin-bottom: 40px; }

.nav-group { margin-bottom: 32px; }
.nav-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 12px; font-weight: 700;}
.nav-group a {
    display: block; padding: 10px 16px; border-radius: 10px; color: var(--text-secondary);
    font-weight: 500; font-size: 15px; margin-bottom: 4px; transition: all 0.2s;
}
.nav-group a:hover { background: rgba(128,128,128,0.1); color: var(--text-primary); }
.nav-group a.active { background: var(--accent-bg); color: var(--accent); font-weight: 600;}

/* Main Reading Content */
.content-panel {
    flex-grow: 1; border-radius: 24px; display: flex; flex-direction: column; overflow: visible;
}

.content-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 48px; border-bottom: 1px solid var(--glass-border);
}
.breadcrumbs { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-muted); font-weight: 500;}
.breadcrumbs a:hover { color: var(--text-primary); }
.separator { font-size: 10px; }
.current { color: var(--text-primary); font-weight: 600; }

.prose {
    padding: 56px 80px; max-width: 900px;
    font-size: 16px; line-height: 1.7; color: var(--text-secondary);
    font-weight: 400; letter-spacing: -0.02em;
}

.prose .docs-title { font-family: var(--font-heading); color: var(--text-primary); font-size: 44px; font-weight: 800; margin-top: 0; margin-bottom: 24px; letter-spacing: -1.5px; line-height: 1.2; }
.prose h2 { font-size: 30px; font-family: var(--font-heading); color: var(--text-primary); font-weight: 800; margin: 56px 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--glass-border); letter-spacing: -0.5px;}
.prose h3 { font-size: 24px; font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; margin: 40px 0 16px; letter-spacing: -0.5px;}
.prose h4 { font-size: 20px; font-family: var(--font-heading); color: var(--text-primary); font-weight: 700; margin-top: 32px; margin-bottom: 16px; }

.prose p { margin-bottom: 20px; }
.prose ul, .prose ol { margin-bottom: 20px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }

/* WP Block compatibility */
.wp-block-code, .prose pre {
    background: var(--code-bg); border: 1px solid var(--glass-border);
    border-radius: 12px; margin: 0; overflow-x: auto; padding: 24px;
}
.wp-block-code code, .prose pre code {
    background: transparent; padding: 0; color: var(--text-primary); font-size: 14px; font-family: var(--font-mono);
}
.prose code:not(pre code) {
    background: rgba(128,128,128,0.1); padding: 2px 6px; border-radius: 4px; font-size: 14px; font-family: var(--font-mono); color: #ec4899;
}

.copy-btn { position: absolute; top: 12px; right: 12px; background: rgba(128,128,128,0.1); border: 1px solid rgba(128,128,128,0.2); color: var(--text-muted); padding: 8px; border-radius: 8px; cursor: pointer; transition: 0.2s; font-family: var(--font-body); font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; z-index: 10; backdrop-filter: blur(8px);}
.copy-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.wp-block-quote, .prose blockquote {
    border-left: none; padding: 24px 28px; margin: 32px 0;
    background: var(--accent-bg); border-radius: 12px;
    font-style: italic; color: var(--text-primary);
    position: relative; font-size: 17px; line-height: 1.7;
    border: 1px solid rgba(139, 92, 246, 0.12);
}
.prose blockquote::before {
    content: '\201C'; position: absolute; top: -8px; left: 16px;
    font-size: 56px; color: var(--accent); opacity: 0.3;
    font-family: Georgia, serif; line-height: 1;
}
.wp-block-image img { border-radius: 12px; max-width: 100%; height: auto; border: 1px solid var(--glass-border); }

/* Alerts - Premium Colored Design */
.glass-alert {
    padding: 16px 20px; border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex; gap: 14px; align-items: flex-start;
    margin-bottom: 20px; color: var(--text-primary);
    font-weight: 500; font-size: 15px; line-height: 1.65;
}
.glass-alert .alert-icon {
    width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(59, 130, 246, 0.15); flex-shrink: 0; margin-top: 1px;
}
.glass-alert .alert-icon svg { width: 14px; height: 14px; fill: #3b82f6; }
.glass-alert div:not(.alert-icon) { flex: 1; }
.glass-alert strong { font-weight: 700; }
.glass-warning { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.15); }
.glass-warning .alert-icon { background: rgba(245, 158, 11, 0.15); }
.glass-warning .alert-icon svg { fill: #f59e0b; }
.glass-success { background: rgba(16, 185, 129, 0.08); border-color: rgba(16, 185, 129, 0.15); }
.glass-success .alert-icon { background: rgba(16, 185, 129, 0.15); }
.glass-success .alert-icon svg { fill: #10b981; }
.glass-danger { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.15); }
.glass-danger .alert-icon { background: rgba(239, 68, 68, 0.15); }
.glass-danger .alert-icon svg { fill: #ef4444; }

/* SVG Copy Grid - Minimal Icon Grid */
.svg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 12px; margin-bottom: 28px; }
.svg-grid br { display: none !important; } /* Fix WP auto-p injection */
.svg-card {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; border: 1px solid var(--glass-border); background: var(--glass-bg);
    cursor: pointer; transition: all 0.2s; position: relative;
    -webkit-tap-highlight-color: transparent;
}
.svg-card:hover { border-color: var(--accent); }
.svg-card svg { width: 24px; height: 24px; fill: var(--text-primary); transition: all 0.2s; }
.svg-card:hover svg { fill: var(--accent); }
.svg-card .svg-name, .svg-card .svg-copy-text { display: none; }
.svg-card.copied { border-color: var(--accent); background: var(--accent-bg); }
.svg-card.copied svg { fill: var(--accent); }

/* Resource Cards - Dribbble Dashboard Style */
.resources-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.resources-grid br { display: none !important; } /* Fix WP auto-p injection */
.resource-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 12px;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    text-decoration: none; transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.resource-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(139, 92, 246, 0.08); transform: translateY(-2px); }
.resource-card .rc-icon {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; min-width: 40px;
    border-radius: 10px; background: var(--accent); color: #fff;
    font-size: 18px;
}
.resource-card .rc-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.resource-card .rc-title {
    font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px;
    font-family: var(--font-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resource-card .rc-desc {
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.resource-card .rc-arrow, .resource-card i.rc-arrow { display: none; }

.prose hr { border: 0; border-top: 1px solid var(--glass-border); margin: 60px 0; }

.pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; width: 100%; box-sizing: border-box;}
.page-btn {
    padding: 24px; border-radius: 16px; display: flex; flex-direction: column; justify-content: center;
    text-decoration: none; color: inherit; transition: all 0.2s;
    border: 1px solid var(--glass-border); background: var(--glass-bg); box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02); position: relative;
}
.page-btn:hover { border-color: var(--accent); }
.page-btn span { font-size: 13px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; font-weight: 700;}
.page-btn strong { color: var(--accent); font-size: 18px; display: flex; align-items: center; gap: 8px; font-weight: 700;}
.text-right { text-align: right; align-items: flex-end; }

/* Auto-TOC Links */
.toc-link {
    display: block; padding: 10px 16px; border-radius: 10px; color: var(--text-secondary);
    font-weight: 500; font-size: 15px; margin-bottom: 4px; transition: all 0.2s;
    text-decoration: none; border-left: 2px solid transparent;
}
.toc-link:hover { background: rgba(128,128,128,0.1); color: var(--text-primary); border-left-color: var(--accent); font-weight: 600;}

/* Desktop: sidebar-mobile-header hidden, close button hidden */
.sidebar-mobile-header { display: none; }
.mobile-only { display: none; }
.overlay { display: none; }

/* Close sidebar button styling */
.close-sidebar-btn {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid var(--glass-border); background: transparent;
    color: var(--text-secondary); font-size: 14px;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.close-sidebar-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

/* Responsive */
@media (max-width: 1200px) { .sleek-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
    .glass-wrapper { padding: 16px; }
    
    /* Solid Header Fix for Mobile */
    .top-mask { display: block; position: fixed; top: 0; left: 0; right: 0; height: 16px; background: var(--bg-base); z-index: 9998; }
    .top-nav { padding: 16px; margin-bottom: 24px !important; position: sticky; top: 16px; border-radius: 16px; z-index: 9999 !important; }
    
    /* Layout: single column on mobile */
    .docs-layout { display: block !important; }
    
    .content-panel { border-radius: 16px; padding: 24px; width: 100% !important; border: 1px solid var(--glass-border); }
    .sleek-grid { grid-template-columns: repeat(2, 1fr); }
    .mobile-only { display: flex !important; align-items: center; justify-content: center; }
    .desktop-only { display: none !important; }
    
    /* Sidebar: fixed overlay, hidden by default */
    .sidebar {
        position: fixed !important;
        left: -320px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 10001;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin: 0;
        border-radius: 0;
        background: var(--bg-base) !important;
        border-right: 1px solid var(--glass-border);
        overflow-y: auto;
        padding: 0 20px 20px;
    }
    .sidebar.open { left: 0; }
    
    /* Mobile sidebar header: logo + close on SAME LINE */
    .sidebar-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 20px 0;
        margin-bottom: 16px;
        border-bottom: 1px solid var(--glass-border);
    }
    .sidebar-mobile-header .logo {
        display: inline-flex !important;
        align-items: center;
        gap: 10px;
        font-size: 17px;
        flex: 1;
        min-width: 0;
        margin-bottom: 0 !important; /* Fixes inheritance from .sidebar .logo */
    }
    .sidebar-mobile-header .close-sidebar-btn {
        margin-left: 8px;
        margin-top: 0 !important;
    }
    
    .overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 10000;
        backdrop-filter: blur(4px);
    }
    .overlay.open { display: block; }

    .prose { padding: 0; font-size: 16px; }
    
    /* MOBILE TYPOGRAPHY FIXES */
    .prose .docs-title { font-size: 28px !important; margin-bottom: 16px; letter-spacing: -1px; }
    .prose h2 { font-size: 22px !important; margin: 40px 0 16px; letter-spacing: -0.5px;}
    .prose h3 { font-size: 18px !important; }

    /* Mobile Nav Boxes - full width stacked */
    .doc-nav-grid { grid-template-columns: 1fr !important; gap: 12px !important; margin-top: 48px !important; width: 100% !important; }
    .doc-nav-grid a { padding: 16px !important; border-radius: 12px !important; }
    .doc-nav-grid a span:first-child { font-size: 10px !important; margin-bottom: 6px !important; }
    .doc-nav-grid a span:last-child { font-size: 13px !important; gap: 4px !important; }
    
    /* SVG grid responsive */
    .svg-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px; }
    .resources-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
    .sleek-grid { grid-template-columns: 1fr; }
    .hero-section h1 { font-size: 40px; letter-spacing: -1px;}
    .pagination { grid-template-columns: 1fr; }
}

.content-panel.unboxed { background: transparent !important; border: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0; }
.unboxed .prose { padding: 0; }

/* =============================================
   CHANGELOG — Clean Text Design
   ============================================= */

.changelog-entry {
    padding: 0 0 32px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--glass-border);
}
.changelog-entry:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Version + Date row */
.cl-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.cl-version {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.cl-date {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 2px 10px;
    border-radius: 6px;
    background: rgba(128,128,128,0.08);
}

/* Summary */
.cl-summary {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

/* Changes list */
.cl-changes {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.cl-changes li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Tags */
.cl-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
    min-width: 70px;
    margin-top: 1px;
}
.cl-tag.new {
    background: rgba(16,185,129,0.1);
    color: #10b981;
    border: 1px solid rgba(16,185,129,0.2);
}
.cl-tag.fix {
    background: rgba(239,68,68,0.08);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.15);
}
.cl-tag.improved {
    background: rgba(59,130,246,0.08);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.15);
}
.cl-tag.removed {
    background: rgba(156,163,175,0.08);
    color: #9ca3af;
    border: 1px solid rgba(156,163,175,0.15);
}
.cl-tag.security {
    background: rgba(245,158,11,0.08);
    color: #f59e0b;
    border: 1px solid rgba(245,158,11,0.15);
}

@media (max-width: 600px) {
    .cl-version { font-size: 18px; }
}

/* =============================================
   DOCS ARCHIVE — Product Rows
   ============================================= */
.docs-product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    margin-bottom: 10px;
    text-decoration: none;
    transition: all 0.25s;
    gap: 16px;
}
.docs-product-row:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(108,92,231,0.06);
}
.docs-product-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.docs-product-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(168,85,247,0.12));
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 16px; flex-shrink: 0;
}
.docs-product-name {
    font-family: var(--font-heading);
    font-size: 15px; font-weight: 700;
    color: var(--text-primary);
}
.docs-product-desc {
    font-size: 13px; color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.docs-product-meta {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; color: var(--text-muted);
    flex-shrink: 0; font-family: var(--font-mono);
}

/* =============================================
   BLOG ARCHIVE — Post Rows
   ============================================= */
.blog-post-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    margin-bottom: 8px;
    text-decoration: none;
    transition: all 0.25s;
    gap: 16px;
}
.blog-post-row:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}
.blog-post-title {
    font-family: var(--font-heading);
    font-size: 14.5px; font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.blog-post-date {
    font-size: 12px; color: var(--text-muted);
    flex-shrink: 0; font-family: var(--font-mono);
}

@media (max-width: 600px) {
    .docs-product-row, .blog-post-row { padding: 14px 16px; }
    .docs-product-icon { width: 34px; height: 34px; font-size: 14px; }
    .docs-product-meta { display: none; }
}
