/* ===================================
   Biomarker.fit - Optimized Styles
   Eye-friendly colors, minimal weight
   =================================== */

/* CSS Variables for easy theming */
:root {
    /* Eye-friendly color palette */
    --bg-primary: #fafbfc;
    --bg-secondary: #f6f8fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: #3182ce;
    --accent-secondary: #2c5282;
    --accent-success: #48bb78;
    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --highlight-bg: #edf2f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

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

/* Header */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo span {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--accent-primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Quick Comparison */
.quick-comparison {
    background: white;
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th {
    background: var(--bg-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.comparison-table th a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
}

.comparison-table th a:hover {
    text-decoration: underline;
}

.comparison-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.comparison-table td strong {
    color: var(--text-primary);
}

.comparison-table td.highlight {
    background: #eef8ff;
    font-weight: 600;
    color: var(--accent-secondary);
}

.comparison-table tbody tr:hover {
    background: var(--highlight-bg);
}

/* Comparison Cards */
.detailed-comparisons {
    margin-top: 3rem;
}

.detailed-comparisons h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.comparison-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.comparison-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.comparison-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.comparison-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-primary);
    font-weight: 600;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-block h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.content-block p {
    color: var(--text-secondary);
}

/* Use Cases */
.use-cases-section {
    background: white;
}

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

.use-case-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.use-case-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.use-case-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.use-case-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.use-case-platforms {
    list-style: none;
    margin: 1rem 0;
}

.use-case-platforms li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.use-case-platforms strong {
    color: var(--text-primary);
}

.link-arrow {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.link-arrow:hover {
    text-decoration: underline;
}

/* Trends Section */
.trends-section {
    background: var(--bg-secondary);
}

.trend-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.trend-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.trend-card h3 {
    margin-bottom: 1rem;
}

.trend-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.trend-stat {
    background: var(--highlight-bg);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Why Sahha Section */
.why-sahha-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.insight-box {
    max-width: 900px;
    margin: 0 auto;
}

.insight-box h2 {
    color: white;
    margin-bottom: 1rem;
}

.insight-intro {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.insight-comparison {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.insight-column {
    color: var(--text-primary);
}

.insight-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.insight-column ul {
    list-style: none;
    margin-bottom: 1rem;
}

.insight-column li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.insight-question {
    font-style: italic;
    color: var(--text-muted);
    margin-top: 1rem;
}

.insight-answer {
    font-weight: 600;
    color: var(--accent-success);
    margin-top: 1rem;
}

.insight-arrow {
    font-size: 2rem;
    color: var(--accent-primary);
}

.insight-conclusion {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-align: center;
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: #a0aec0;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

.footer-bottom p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Sidebar Navigation */
.page-layout {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 2rem;
    align-self: flex-start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.sidebar-links a:hover {
    background: var(--highlight-bg);
    color: var(--accent-primary);
}

.sidebar-links a.active {
    background: var(--accent-primary);
    color: white;
    font-weight: 500;
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .comparison-table {
        font-size: 0.875rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }

    .insight-comparison {
        grid-template-columns: 1fr;
    }

    .insight-arrow {
        transform: rotate(90deg);
    }

    /* Sidebar responsive */
    .page-layout {
        flex-direction: column;
        padding: 1rem 20px;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--border-light);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
