/* BlazorX Documentation Styles */

/* Hero Section */
.hero-section {
    padding: 3.5rem 2rem;
    background: var(--bx-bg-subtle);
    border: 1px solid var(--bx-border);
    color: var(--bx-text);
    text-align: center;
    border-radius: var(--bx-radius-lg);
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.2rem;
    color: var(--bx-text-muted);
}

/* Feature Section */
.feature-section {
    margin: 2rem 0;
    padding: 2rem;
    background: var(--bx-bg-subtle);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius-lg);
}

.feature-section h2 {
    color: var(--bx-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.quick-demo {
    background: var(--bx-surface);
    border: 1px solid var(--bx-border);
    padding: 1.5rem;
    border-radius: var(--bx-radius);
    margin: 1.5rem 0;
    box-shadow: var(--bx-shadow-sm);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bx-surface);
    border: 1px solid var(--bx-border);
    padding: 1.5rem;
    border-radius: var(--bx-radius);
    box-shadow: var(--bx-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--bx-shadow);
    border-color: var(--bx-accent);
}

.feature-card h4 {
    color: var(--bx-text);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--bx-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--bx-text);
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--bx-accent);
    font-weight: bold;
}

/* Documentation Page */
.docs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.docs-page h1 {
    color: var(--bx-text);
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.docs-page .lead {
    color: var(--bx-text-muted);
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.docs-page h2 {
    color: var(--bx-text);
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--bx-border);
}

.docs-page h3 {
    color: var(--bx-text);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-page h4 {
    color: var(--bx-text);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.docs-page p {
    color: var(--bx-text);
}

/* Page header (used by top-level component demo pages) */
.page-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bx-border);
}

.page-header h1 {
    color: var(--bx-text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.page-header p {
    color: var(--bx-text-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

/* Demo section (wraps a live example) */
.demo-section {
    background: var(--bx-surface);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius);
    padding: 1.5rem;
    margin: 1.25rem 0;
    box-shadow: var(--bx-shadow-sm);
}

.demo-section h2, .demo-section h3 {
    color: var(--bx-text);
}

/* Code Blocks */
.code-block {
    position: relative;
    background: var(--bx-code-bg);
    border-radius: var(--bx-radius);
    padding: 1rem;
    padding-right: 4.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block pre {
    margin: 0;
    color: var(--bx-code-text);
    font-family: var(--bx-font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block code {
    color: var(--bx-code-text);
}

.code-copy-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    color: #c9d1d9;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--bx-radius-sm);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

.code-copy-btn.is-copied {
    background: var(--bx-success);
    border-color: var(--bx-success);
    color: white;
}

/* Inline info callout used inside demo pages */
.demo-info {
    border-left: 3px solid var(--bx-accent);
    padding: 0.75rem 1rem;
    background: var(--bx-accent-soft);
    color: var(--bx-text);
    border-radius: var(--bx-radius-sm);
    margin-bottom: 1rem;
}

.demo-info code {
    background: var(--bx-surface);
}

.demo-info h5 {
    color: var(--bx-accent);
    margin-bottom: 0.75rem;
}

/* Example Demo */
.example-demo {
    background: var(--bx-surface);
    padding: 2rem;
    border-radius: var(--bx-radius);
    border: 1px solid var(--bx-border);
    margin: 1rem 0;
}

/* API Table */
.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--bx-surface);
    border: 1px solid var(--bx-border);
    border-radius: var(--bx-radius);
    overflow: hidden;
}

.api-table thead {
    background: var(--bx-bg-subtle);
}

.api-table th {
    padding: 0.85rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--bx-text);
    border-bottom: 1px solid var(--bx-border);
}

.api-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bx-border);
    color: var(--bx-text);
}

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

.api-table tbody tr:hover {
    background: var(--bx-bg-subtle);
}

.api-table code {
    background: var(--bx-accent-soft);
    padding: 2px 6px;
    border-radius: var(--bx-radius-sm);
    font-family: var(--bx-font-mono);
    font-size: 0.85em;
    color: var(--bx-accent);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.doc-card {
    background: var(--bx-surface);
    padding: 1.5rem;
    border-radius: var(--bx-radius);
    border: 1px solid var(--bx-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: block;
}

.doc-card:hover {
    border-color: var(--bx-accent);
    transform: translateY(-3px);
    box-shadow: var(--bx-shadow);
    text-decoration: none;
}

.doc-card h4 {
    color: var(--bx-accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.doc-card p {
    color: var(--bx-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.example-card {
    background: var(--bx-surface);
    padding: 1.75rem;
    border-radius: var(--bx-radius);
    border: 1px solid var(--bx-border);
    border-left: 3px solid var(--bx-accent);
    box-shadow: var(--bx-shadow-sm);
}

.example-card h3 {
    color: var(--bx-text);
    margin-bottom: 0.5rem;
}

.example-card p {
    color: var(--bx-text-muted);
    margin-bottom: 1rem;
}

/* Navigation Menu Enhancements */
.nav-section {
    margin-top: 0.75rem;
}

.nav-section-title {
    padding: 0.5rem 1rem;
    color: var(--bx-text-faint);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.25rem;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .docs-page h1 {
        font-size: 1.75rem;
    }

    .docs-page {
        padding: 1.25rem;
    }

    .example-demo {
        padding: 1rem;
    }

    .features-grid,
    .card-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }
}
