* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #9B0002;
    --primary-dark: #7A0001;
    --primary-light: #C50003;
    --black: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --success: #0A6E0A;
    --warning: #B85C00;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    padding-top: 68px; /* 75% of 90px for reduced header height */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body > header {
    background: var(--primary);
    color: var(--white);
    padding: 1.125rem 0; /* 75% of 1.5rem */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 300;
    letter-spacing: -0.5px;
}

.logo strong {
    font-weight: 700;
}

.logo a {
    display: block;
    text-decoration: none;
}

.navbar-logo {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); /* Make logo white for dark navbar */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 400;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.components-section {
    background: var(--light-gray);
    padding: 4rem 0;
}

.components-container {
    padding: 20px;
}

.cta {
    text-align: center;
    padding: 4rem 0;
    background: var(--white);
}

h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

h1 strong {
    font-weight: 700;
}

.subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0.95;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

h2 {
    font-size: 2.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
    letter-spacing: -0.5px;
}

h2 strong {
    font-weight: 700;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.feature-section {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 2rem;
}

.feature-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary);
}

.feature-section.available h3 {
    color: var(--success);
    border-color: var(--success);
}

.feature-section.development h3 {
    color: var(--warning);
    border-color: var(--warning);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list strong {
    color: var(--black);
    font-weight: 600;
}

.feature-list a {
    color: var(--gray);
    text-decoration: none;
}

.feature-list a:hover {
    color: var(--black);
}

.feature-list span {
    color: var(--gray);
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.component-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}

.component-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.component-name {
    font-weight: 600;
    color: var(--black);
    font-size: 1.125rem;
}

.component-status {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-ready {
    background: var(--success);
    color: var(--white);
}

.status-development {
    background: var(--warning);
    color: var(--white);
}

.component-desc {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.component-meta {
    font-size: 0.75rem;
    color: var(--gray);
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.component-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.component-links a {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.875rem;
    text-underline-offset: 2px;
}

.component-links a:hover {
    color: var(--primary-dark);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.component-card .btn {
    display: block;
    width: 100%;
    text-align: center;
}

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

footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
}

footer a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Breadcrumb styles */
.breadcrumb {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main content area */
main {
    padding: 4rem 0;
}

/* Back link styles */
.back-link {
    display: inline-block;
    color: var(--white);
    background: var(--primary);
    text-decoration: none;
    margin-top: 2rem;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: background 0.3s;
    font-weight: 500;
}

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

/* Progress bar (for component cards) */
.progress-bar {
    height: 4px;
    background: #e0e0e0;
    margin: 1rem 0;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    transition: width 0.3s;
}

/* Article styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.article-meta {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-description {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.6;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--black);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: left;
}

.article-body h3 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--black);
}

.article-body h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--primary-dark);
}

.article-body code {
    background: var(--light-gray);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.article-body pre {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: var(--black);
}

.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--gray);
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body table th,
.article-body table td {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    text-align: left;
}

.article-body table th {
    background: var(--light-gray);
    font-weight: 600;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.article-tags {
    color: var(--gray);
}

.article-tags .tag {
    display: inline-block;
    background: var(--light-gray);
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-top: 0.5rem;
    border-radius: 3px;
    font-size: 0.875rem;
    color: var(--black);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    background: var(--light-gray);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.empty-state .emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: var(--black);
}

@media (max-width: 768px) {
    body {
        padding-top: 60px; /* 75% of 80px for mobile */
    }

    body > header {
        padding: 0.75rem 0; /* 75% of 1rem for mobile */
    }

    .navbar-logo {
        height: 30px; /* Slightly smaller on mobile */
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
    }

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

    .article-header h1 {
        font-size: 1.75rem;
    }

    .article-body {
        font-size: 0.95rem;
    }
}
