/* frameshift docs - documentation system */

/* import base styles from main site */
@import url('styles.css');

/* ==================================
   DOCS LAYOUT STRUCTURE
   ================================== */

.docs-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 73px; /* nav height */
}

/* ==================================
   SIDEBAR NAVIGATION
   ================================== */

.docs-sidebar {
    position: fixed;
    top: 73px;
    left: 0;
    bottom: 0;
    width: 280px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    overflow-y: auto;
    z-index: 100;
    padding: var(--spacing-xl) 0;
}

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

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

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* search box */
.docs-search {
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-hint);
    pointer-events: none;
}

.docs-search input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md) var(--spacing-sm) 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.docs-search input::placeholder {
    color: var(--text-hint);
}

.docs-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cpu);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* keyboard shortcut hint */
.search-kbd {
    position: absolute;
    right: var(--spacing-sm);
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-hint);
    pointer-events: none;
}

/* sidebar navigation */
.sidebar-nav {
    padding: 0 var(--spacing-lg);
}

.nav-section {
    margin-bottom: var(--spacing-lg);
}

.nav-section-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-hint);
    margin-bottom: var(--spacing-sm);
    padding: 0 var(--spacing-sm);
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
    color: var(--accent-cpu);
    background: rgba(0, 212, 255, 0.08);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-cpu);
    border-radius: 0 2px 2px 0;
}

.nav-item-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* nested nav items */
.nav-subsection {
    margin-top: 4px;
    margin-left: var(--spacing-lg);
    padding-left: var(--spacing-md);
    border-left: 1px solid var(--border-subtle);
}

.nav-subsection .nav-item {
    font-size: 12px;
    padding: 6px var(--spacing-sm);
}

/* ==================================
   MAIN CONTENT AREA
   ================================== */

.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 1200px;
}

/* breadcrumb navigation */
.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
    font-size: 12px;
    color: var(--text-hint);
}

.breadcrumb-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
    color: var(--accent-cpu);
}

.breadcrumb-separator {
    color: var(--text-hint);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 600;
}

/* page header */
.docs-page-header {
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-subtle);
}

.docs-page-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--accent-cpu), var(--text-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-page-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
}

/* ==================================
   CONTENT TYPOGRAPHY
   ================================== */

.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.docs-article h1 {
    font-size: 36px;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-subtle);
}

.docs-article h2 {
    font-size: 28px;
    margin-top: var(--spacing-3xl);
}

.docs-article h3 {
    font-size: 20px;
    color: var(--accent-cpu);
}

.docs-article h4 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-article p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.docs-article ul,
.docs-article ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.docs-article li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.docs-article a {
    color: var(--accent-cpu);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.docs-article a:hover {
    border-bottom-color: var(--accent-cpu);
}

/* ==================================
   PRO BADGES
   ================================== */

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ffd700 0%, var(--accent-cpu) 100%);
    border-radius: var(--radius-sm);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #000000;
    -webkit-text-fill-color: #000000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
    transition: all var(--transition-fast);
    vertical-align: middle;
    margin-left: var(--spacing-sm);
}

.pro-badge:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

.pro-badge-icon {
    width: 10px;
    height: 10px;
}

/* pro feature cards */
.pro-feature-card {
    position: relative;
    overflow: hidden;
}

.pro-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
    opacity: 0.5;
}

/* ==================================
   EXPANDABLE SECTIONS
   ================================== */

.expandable-section {
    margin: var(--spacing-lg) 0;
}

.expand-trigger {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    user-select: none;
    width: 100%;
}

.expand-trigger:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-glow);
}

.expand-trigger.learn-more {
    border-left: 3px solid var(--accent-cpu);
}

.expand-trigger.advanced {
    border-left: 3px solid var(--accent-gpu);
}

.expand-icon {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.expand-trigger.learn-more .expand-icon {
    color: var(--accent-cpu);
}

.expand-trigger.advanced .expand-icon {
    color: var(--accent-gpu);
}

.expandable-section.open .expand-icon {
    transform: rotate(180deg);
}

.expand-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease-out;
}

.expandable-section.open .expand-content {
    max-height: 2000px;
}

.expand-content-inner {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.expand-content-inner p,
.expand-content-inner ul,
.expand-content-inner ol {
    font-size: 14px;
    line-height: 1.8;
}

/* ==================================
   CARDS & CONTAINERS
   ================================== */

.docs-card {
    padding: var(--spacing-xl);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    transition: all var(--transition-medium);
}

.docs-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-soft);
}

.docs-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.docs-card-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* feature grid for docs */
.docs-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

/* ==================================
   CALLOUTS & ALERTS
   ================================== */

.callout {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin: var(--spacing-lg) 0;
    background: rgba(255, 255, 255, 0.02);
}

.callout-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.callout-icon {
    width: 18px;
    height: 18px;
}

.callout-content {
    font-size: 14px;
    line-height: 1.8;
}

.callout.info {
    border-color: var(--accent-cpu);
    background: rgba(0, 212, 255, 0.05);
}

.callout.info .callout-title {
    color: var(--accent-cpu);
}

.callout.warning {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.05);
}

.callout.warning .callout-title {
    color: #fbbf24;
}

.callout.success {
    border-color: var(--accent-memory);
    background: rgba(0, 255, 136, 0.05);
}

.callout.success .callout-title {
    color: var(--accent-memory);
}

.callout.danger {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.callout.danger .callout-title {
    color: #ef4444;
}

/* ==================================
   CODE & TECHNICAL ELEMENTS
   ================================== */

.docs-article code {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: var(--accent-cpu);
    word-break: break-all;
    overflow-wrap: break-word;
}

.docs-article pre {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.docs-article pre code {
    padding: 0;
    background: none;
    border: none;
    color: var(--text-primary);
}

.copy-code-btn {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-code-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ==================================
   TOOLTIPS
   ================================== */

.tooltip-term {
    border-bottom: 1px dotted var(--accent-cpu);
    cursor: help;
    position: relative;
    transition: all var(--transition-fast);
}

.tooltip-term:hover {
    color: var(--accent-cpu);
}

/* ==================================
   IMAGES & SCREENSHOTS
   ================================== */

.docs-screenshot {
    margin: var(--spacing-xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-medium);
    background: var(--bg-tertiary);
}

.docs-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-caption {
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    color: var(--text-hint);
    text-align: center;
}

/* placeholder for missing screenshots */
.screenshot-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 0, 255, 0.05));
    border: 2px dashed var(--border-subtle);
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--text-hint);
}

.placeholder-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-hint);
    text-align: center;
}

/* ==================================
   TABLES
   ================================== */

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.docs-table th,
.docs-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.docs-table th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent-cpu);
    background: rgba(0, 0, 0, 0.2);
}

.docs-table td {
    font-size: 14px;
    color: var(--text-secondary);
}

.docs-table tbody tr {
    transition: background var(--transition-fast);
}

.docs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.docs-table tbody tr:last-child td {
    border-bottom: none;
}

/* ==================================
   STEP-BY-STEP GUIDES
   ================================== */

.step-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: var(--spacing-xl) 0;
}

.step-item {
    counter-increment: step-counter;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.step-item::before {
    content: counter(step-counter);
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-cpu), var(--accent-gpu));
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    color: #0a0e14;
    box-shadow: 0 0 20px var(--accent-cpu-glow);
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.step-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* ==================================
   TROUBLESHOOTING ACCORDION
   ================================== */

.troubleshoot-item {
    margin-bottom: var(--spacing-md);
}

.troubleshoot-question {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.troubleshoot-question:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-glow);
}

.troubleshoot-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.troubleshoot-icon.warning {
    color: #fbbf24;
}

.troubleshoot-icon.error {
    color: #ef4444;
}

.troubleshoot-icon.info {
    color: var(--accent-cpu);
}

.troubleshoot-text {
    flex: 1;
}

.troubleshoot-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.troubleshoot-expand {
    width: 20px;
    height: 20px;
    color: var(--text-hint);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.troubleshoot-item.open .troubleshoot-expand {
    transform: rotate(180deg);
}

.troubleshoot-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium) ease-out;
}

.troubleshoot-item.open .troubleshoot-answer {
    max-height: 1000px;
}

.troubleshoot-answer-inner {
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -8px;
}

/* ==================================
   GLOSSARY GRID
   ================================== */

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.glossary-term {
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.glossary-term:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.glossary-word {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent-cpu);
    margin-bottom: var(--spacing-sm);
}

.glossary-definition {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==================================
   PAGE NAVIGATION (PREV/NEXT)
   ================================== */

.docs-page-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-subtle);
}

.page-nav-link {
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.page-nav-link:hover {
    border-color: var(--accent-cpu);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.page-nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-hint);
}

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

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

/* ==================================
   MOBILE RESPONSIVE
   ================================== */

@media (max-width: 1024px) {
    .docs-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-medium);
    }

    .docs-sidebar.open {
        transform: translateX(0);
    }

    .docs-content {
        margin-left: 0;
        padding: var(--spacing-xl) var(--spacing-lg);
    }

    .docs-page-title {
        font-size: 36px;
    }

    .docs-article h1 {
        font-size: 28px;
    }

    .docs-article h2 {
        font-size: 24px;
    }

    .docs-page-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-page-title {
        font-size: 28px;
    }

    .docs-feature-grid {
        grid-template-columns: 1fr;
    }

    .glossary-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================================
   MOBILE MENU TOGGLE
   ================================== */

.mobile-menu-toggle {
    display: none;
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-cpu), var(--accent-gpu));
    border: none;
    border-radius: 50%;
    box-shadow: var(--shadow-hard), 0 0 30px var(--accent-cpu-glow);
    cursor: pointer;
    z-index: 200;
    transition: all var(--transition-medium);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
    color: #0a0e14;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==================================
   QUICK LINKS SECTION
   ================================== */

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.quick-link-card {
    padding: var(--spacing-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.quick-link-card:hover {
    border-color: var(--accent-cpu);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.quick-link-icon {
    width: 32px;
    height: 32px;
    color: var(--accent-cpu);
    flex-shrink: 0;
}

.quick-link-text {
    flex: 1;
}

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

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

/* ==================================
   SEARCH HIGHLIGHTING
   ================================== */

.search-highlight {
    background: rgba(255, 215, 0, 0.2);
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.nav-item.search-match {
    background: rgba(255, 215, 0, 0.1);
    border-left: 2px solid #ffd700;
}

/* search results panel */
.search-results-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: rgba(10, 14, 20, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.search-results-header {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-hint);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-results-list {
    padding: 4px;
}

.search-result-item {
    display: block;
    padding: 12px;
    margin: 2px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-primary);
}

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-snippet {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.search-result-snippet mark {
    background: rgba(0, 255, 255, 0.2);
    color: var(--accent-primary);
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.search-result-count {
    font-size: 11px;
    color: var(--text-hint);
    font-weight: 500;
}

.search-no-results {
    padding: 32px 16px;
    text-align: center;
    color: var(--text-hint);
    font-size: 14px;
}

/* adjust search wrapper positioning */
.docs-search {
    position: relative;
}

/* custom scrollbar for search results */
.search-results-panel::-webkit-scrollbar {
    width: 8px;
}

.search-results-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.search-results-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.2);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.search-results-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.4);
}

/* firefox scrollbar */
.search-results-panel {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 255, 255, 0.2) rgba(255, 255, 255, 0.02);
}

/* ==================================
   SMOOTH ANIMATIONS
   ================================== */

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

.docs-article > * {
    animation: fadeIn 0.4s ease-out;
}

/* ==================================
   ACCESSIBILITY
   ================================== */

.skip-to-content {
    position: absolute;
    top: -100px;
    left: var(--spacing-lg);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent-cpu);
    color: #0a0e14;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 1000;
}

.skip-to-content:focus {
    top: var(--spacing-lg);
}
