/* ===================================================================
   DOCUMENTATION.CSS - AEO Analyzer Documentation Page Styles
   =================================================================== */

/* NOTE: Base styles (CSS variables, body, bg-mesh, animations, buttons,
   lucide icons) are provided by shared_styles.html partial */


/* ===== HEADER OVERRIDE ===== */

/* Header Override for Documentation - sticky positioning */
.header {
    position: sticky !important;
    top: 0;
    z-index: 100;
}


/* ===== DOCUMENTATION LANDING PAGE ===== */

/* Landing page container */
.doc-landing {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

/* Hero section */
.doc-hero {
    text-align: center;
    margin-bottom: 60px;
}

.doc-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.doc-hero-title {
    font-size: 3.5em;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.doc-hero-subtitle {
    font-size: 1.2em;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.doc-search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.doc-search-input {
    width: 100%;
    padding: 18px 24px 18px 52px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--white);
    font-size: 1em;
    transition: all 0.3s;
}

.doc-search-input::placeholder {
    color: var(--text-tertiary);
}

.doc-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.doc-search-box .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
}

/* Category cards grid */
.doc-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

/* Individual category card */
.doc-category-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-category-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.doc-category-card.doc-category-wide {
    grid-column: 1 / -1;
}

/* Category icon */
.doc-category-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.doc-category-icon i {
    width: 28px;
    height: 28px;
    color: var(--white);
}

/* Category content */
.doc-category-content {
    flex: 1;
    min-width: 0;
}

.doc-category-title {
    font-size: 1.25em;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--white);
}

.doc-category-description {
    font-size: 0.95em;
    color: var(--text-tertiary);
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.doc-category-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-category-topics li {
    font-size: 0.8em;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    color: var(--text-secondary);
}

.doc-category-arrow {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s;
    align-self: center;
}

.doc-category-arrow i {
    width: 24px;
    height: 24px;
}

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

/* Checks grid within the wide card */
.doc-checks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.doc-check-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s;
}

.doc-check-link:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
}

/* Quick links section */
.doc-quick-links {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
}

.doc-quick-links-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 20px 0;
    text-align: center;
}

.doc-quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.doc-quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s;
}

.doc-quick-link:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    color: var(--primary-light);
}


/* ===== DOCUMENTATION LAYOUT (Sub-pages) ===== */

/* Main documentation container with sidebar + content grid */
.doc-container {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    animation: fadeIn 0.8s ease-out 0.3s both;
}


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

/* Sticky sidebar with scrollable content */
.sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--glass);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Glass morphism card for sidebar */
.sidebar-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

/* Sidebar title styling - WCAG AA: Removed opacity for proper contrast */
.sidebar-title {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Navigation section grouping */
.nav-section {
    margin-bottom: 24px;
}

/* Quick navigation section - category links */
.nav-section.quick-nav {
    background: rgba(99, 102, 241, 0.05);
    margin: -24px -24px 24px -24px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 16px 16px 0 0;
}

.nav-section.quick-nav .nav-section-title {
    color: var(--primary-light);
    font-size: 0.85em;
    margin-bottom: 10px;
}

.nav-section.quick-nav .nav-link {
    padding: 8px 12px;
    font-size: 0.85em;
}

/* Section title in navigation */
.nav-section-title {
    color: var(--white);
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Navigation links - WCAG AA */
.nav-link {
    display: block;
    color: var(--text-secondary); /* ~12:1 contrast */
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: all 0.3s;
    margin-bottom: 4px;
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.nav-link.active {
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}


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

/* Content area container */
.content {
    min-width: 0;
}

/* Glass morphism card for content sections */
.content-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

/* Animated top border gradient */
.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Documentation section with scroll margin for anchor links */
.doc-section {
    scroll-margin-top: 100px;
    margin-bottom: 48px;
}

/* Main section title */
.section-title {
    color: var(--white);
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

/* Section subtitle/description - WCAG AA */
.section-subtitle {
    color: var(--text-tertiary); /* ~7:1 contrast */
    font-size: 1.1em;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Subsection container */
.subsection {
    margin: 32px 0;
}

/* Subsection title */
.subsection-title {
    color: var(--white);
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main content text - WCAG AA */
.content-text {
    color: var(--text-tertiary); /* ~7:1 contrast */
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1em;
}


/* ===== CONTENT LISTS ===== */

/* Standard unordered lists within content sections - WCAG AA */
.doc-list {
    color: var(--text-tertiary); /* ~7:1 contrast */
    line-height: 1.8;
    margin-left: 20px;
}

/* Ordered lists for step-by-step instructions - WCAG AA */
.doc-list-ordered {
    color: var(--text-tertiary); /* ~7:1 contrast */
    line-height: 2;
    margin-left: 20px;
}

/* Center-aligned content text with top margin */
.content-text-centered {
    text-align: center;
    margin-top: 16px;
}

/* Inline links within content */
.content-inline-link {
    color: var(--primary-light);
    text-decoration: underline;
}


/* ===== SCORE CARDS ===== */

/* Grid layout for score cards */
.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

/* Individual score card */
.score-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.score-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Score range display */
.score-range {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Score range color variants */
.score-excellent { color: var(--success); }
.score-good { color: var(--primary); }
.score-moderate { color: var(--warning); }
.score-poor { color: #fb923c; }
.score-failing { color: var(--danger); }

/* Score label text */
.score-label {
    color: var(--white);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Score description text - WCAG AA */
.score-description {
    color: var(--text-tertiary); /* ~7:1 contrast */
    font-size: 0.9em;
}


/* ===== CHECK ITEMS ===== */

/* Container for check item list */
.check-list {
    margin: 24px 0;
}

/* Individual check item card */
.check-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.check-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(4px);
}

/* Check item header with name and badge */
.check-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Check name title */
.check-name {
    color: var(--white);
    font-size: 1.1em;
    font-weight: 600;
}

/* Severity badge */
.severity-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
}

/* Severity level variants - WCAG AA Compliant */
.severity-critical {
    background: var(--badge-critical-bg);
    color: var(--badge-critical-text);
}

.severity-high {
    background: var(--badge-high-bg);
    color: var(--badge-high-text);
}

.severity-medium {
    background: var(--badge-medium-bg);
    color: var(--badge-medium-text);
}

.severity-low {
    background: rgba(99, 102, 241, 0.25);
    color: var(--alert-info);
}

/* Check details container */
.check-details {
    display: grid;
    gap: 16px;
}

/* Check information section */
.check-info {
    display: grid;
    gap: 8px;
}

/* Info label text */
.info-label {
    color: var(--primary-light);
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info text content - WCAG AA */
.info-text {
    color: var(--text-tertiary); /* ~7:1 contrast */
    line-height: 1.6;
}


/* ===== CODE BLOCKS ===== */

/* Code block container */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    position: relative;
    overflow-x: auto;
}

/* Code pre element */
.code-block pre {
    color: #e2e8f0;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

/* Copy button for code blocks */
.copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-button:hover {
    background: var(--primary-dark);
}

.copy-button.copied {
    background: var(--success);
}


/* ===== PRIORITY MATRIX ===== */

/* 2x2 grid for priority matrix */
.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

/* Individual quadrant card */
.matrix-quadrant {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

/* Quadrant title */
.quadrant-title {
    color: var(--white);
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* List of items in quadrant */
.quadrant-items {
    list-style: none;
}

.quadrant-items li {
    color: var(--text-tertiary); /* WCAG AA: ~7:1 contrast */
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95em;
}

.quadrant-items li:last-child {
    border-bottom: none;
}

/* Matrix quadrant color variants */
.matrix-quadrant-success {
    border-color: var(--success);
}

.matrix-quadrant-primary {
    border-color: var(--primary);
}

.matrix-quadrant-gray {
    border-color: var(--gray);
}

.matrix-quadrant-warning {
    border-color: var(--warning);
}


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

/* Accordion container */
.accordion {
    margin: 24px 0;
}

/* Individual accordion item */
.accordion-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Clickable accordion header */
.accordion-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Accordion title text */
.accordion-title {
    color: var(--white);
    font-size: 1.05em;
    font-weight: 600;
}

/* Accordion expand/collapse icon */
.accordion-icon {
    color: var(--primary);
    transition: transform 0.3s;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Accordion content area */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
}

/* Accordion content body - WCAG AA */
.accordion-body {
    padding: 0 24px 20px;
    color: var(--text-tertiary); /* ~7:1 contrast */
    line-height: 1.7;
}


/* ===== SEARCH BOX ===== */

/* Search container */
.search-box {
    position: relative;
    margin-bottom: 32px;
}

/* Search input field */
.search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.95em;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: var(--text-tertiary); /* WCAG AA: ~7:1 contrast */
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Search icon positioning - WCAG AA */
.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary); /* ~7:1 contrast */
}

/* Search highlight styling (used by JavaScript) */
.search-highlight {
    background: none;
    color: var(--white);
    font-weight: 600;
}


/* ===== TIPS AND ALERTS ===== */

/* Tip/info box */
.tip-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    display: flex;
    gap: 16px;
}

/* Tip icon */
.tip-icon {
    color: var(--primary);
    font-size: 1.5em;
    flex-shrink: 0;
}

/* Tip content text - WCAG AA */
.tip-content {
    color: var(--text-tertiary); /* ~7:1 contrast */
    line-height: 1.6;
}

.tip-content strong {
    color: var(--white);
}


/* ===== FOOTER ===== */

/* Footer container */
.footer {
    position: relative;
    z-index: 10;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 32px;
    margin-top: 80px;
}

/* Footer content wrapper */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Footer brand section */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Footer logo image */
.footer-logo {
    height: 32px;
    opacity: 0.8;
}

/* Footer text - WCAG AA */
.footer-text {
    color: var(--text-tertiary); /* ~7:1 contrast */
    font-size: 0.9em;
}

/* Footer links container */
.footer-links {
    display: flex;
    gap: 24px;
}

/* Individual footer link - WCAG AA */
.footer-link {
    color: var(--text-tertiary); /* ~7:1 contrast */
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--white);
}


/* ===== CHECKS OVERVIEW GRID ===== */

/* Grid layout for check category cards */
.checks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

/* Individual category card styling */
.check-category-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.check-category-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Category icon container */
.category-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
}

.category-icon i {
    width: 32px;
    height: 32px;
    color: var(--white);
}

/* Category content section */
.category-content {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--white);
}

.category-weight {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 500;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.category-description {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* Stats badges within category cards */
.category-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75em;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-secondary);
}

.stat-badge i {
    width: 12px;
    height: 12px;
}

/* WCAG AA Compliant Stat Badge Severity Colors */
.stat-badge.severity-critical {
    background: var(--badge-critical-bg);
    color: var(--badge-critical-text);
}

.stat-badge.severity-high {
    background: var(--badge-high-bg);
    color: var(--badge-high-text);
}

.stat-badge.severity-medium {
    background: var(--badge-medium-bg);
    color: var(--badge-medium-text);
}

/* Arrow indicator */
.category-arrow {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

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


/* ===== SEVERITY LEGEND ===== */

.severity-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.severity-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.severity-desc {
    font-size: 0.85em;
    color: var(--text-secondary);
}


/* ===== CHECK DETAIL PAGE STYLES ===== */

/* Back navigation link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    margin-bottom: 24px;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

/* Category header on detail pages */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
}

.category-header-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
}

.category-header-icon i {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.category-header-content h1 {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.category-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* Expanded check item styling for detail pages */
.check-detail-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.check-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.3s;
}

.check-detail-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.check-detail-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-detail-title h3 {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
}

.check-detail-title i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.check-detail-badges {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-detail-body {
    padding: 0 24px 24px;
    display: none;
}

.check-detail-item.expanded .check-detail-body {
    display: block;
}

.check-detail-item.expanded .accordion-icon {
    transform: rotate(180deg);
}

/* Info grid within check details */
.check-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.check-info-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
}

.check-info-box.full-width {
    grid-column: 1 / -1;
}

.info-box-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-box-label i {
    width: 14px;
    height: 14px;
}

.info-box-content {
    font-size: 0.9em;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Thresholds display */
.thresholds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.threshold-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.threshold-item.pass {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.threshold-item.warning {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
}

.threshold-item.fail {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}


/* ===== DOCUMENTATION NAVIGATION ===== */

.doc-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--primary);
}

.nav-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--white);
}

.nav-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Doc list styling */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.doc-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.doc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}


/* ===== DOCUMENTATION TABLE ===== */

/* Table for MCP tools and similar documentation */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
}

.doc-table thead {
    background: rgba(99, 102, 241, 0.15);
}

.doc-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--white);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary);
    font-size: 0.95em;
}

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

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

.doc-table code {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-light);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
}


/* ===== RESPONSIVE DESIGN ===== */

/* Tablet and smaller - stack sidebar and content */
@media (max-width: 1024px) {
    .doc-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
        margin-bottom: 32px;
    }
}

/* Tablet - single column checks grid */
@media (max-width: 1024px) {
    .checks-grid {
        grid-template-columns: 1fr;
    }

    .severity-legend {
        grid-template-columns: 1fr;
    }

    .check-info-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile - reduce padding and simplify layout */
@media (max-width: 768px) {
    .content-card {
        padding: 32px 24px;
    }

    .section-title {
        font-size: 1.8em;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .check-category-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .category-arrow {
        display: none;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
    }

    .category-header-meta {
        flex-wrap: wrap;
        justify-content: center;
    }

    .check-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Landing page mobile */
    .doc-hero-title {
        font-size: 2.2em;
    }

    .doc-hero-subtitle {
        font-size: 1em;
    }

    .doc-categories {
        grid-template-columns: 1fr;
    }

    .doc-category-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .doc-category-arrow {
        display: none;
    }

    .doc-checks-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-quick-links-grid {
        flex-direction: column;
    }

    .doc-quick-link {
        justify-content: center;
    }
}
