/* ============================================================
   OpenMark Content Pages — Shared Stylesheet
   Used by: /gpt-vs-claude, /compare-ai-models, /llm-benchmark,
   /best-ai-model, /ai-pricing, /best-llm-for-coding, etc.
   ============================================================ */

:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a24;
    --border: rgba(255, 255, 255, 0.08);
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background gradient */
.bg-gradient {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-glow), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(99, 102, 241, 0.1), transparent);
    pointer-events: none; z-index: 0;
}

/* ============ Navigation (matches /why pattern) ============ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.25rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: inherit;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-badge { opacity: 0.85; transition: opacity 0.3s ease; }
.nav-badge:hover { opacity: 1; }
.nav-badge img { height: 32px; width: auto; }

.nav-cta {
    background: var(--primary); color: white;
    padding: 0.625rem 1.25rem; border-radius: 6px;
    font-weight: 600; font-size: 0.875rem;
    text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ============ Main Content ============ */
main {
    position: relative; z-index: 1;
    max-width: 800px; margin: 0 auto; padding: 7rem 2rem 4rem;
}

/* Hero */
.hero { text-align: center; margin-bottom: 3rem; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800; letter-spacing: -0.03em;
    line-height: 1.2; margin-bottom: 1.25rem;
}
.hero h1 .gradient {
    background: linear-gradient(135deg, var(--text-light) 0%, var(--primary-light) 50%, var(--primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
    font-size: 1.125rem; color: var(--text-dim);
    max-width: 600px; margin: 0 auto;
}

/* Hero image (screenshot) */
.hero-image {
    margin-top: 2.5rem; max-width: 100%; border-radius: 12px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px var(--primary-glow);
    border: 1px solid var(--border);
}
.hero-image a { display: block; }
.hero-image img { width: 100%; height: auto; display: block; }

/* TL;DR box */
.tldr-box {
    margin: 2rem auto; padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
    border: 1px solid rgba(99, 102, 241, 0.25); border-radius: 12px;
    max-width: 620px;
}
.tldr-box strong { color: var(--primary-light); }
.tldr-box p { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.tldr-box.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.04));
    border-color: rgba(16, 185, 129, 0.25);
}
.tldr-box.green strong { color: #10b981; }

/* ============ Sections ============ */
section { margin-bottom: 3rem; }
section h2 {
    font-size: 1.5rem; font-weight: 700;
    letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
section h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
section p { color: var(--text-dim); margin-bottom: 1rem; font-size: 1rem; }
section p:last-child { margin-bottom: 0; }

/* ============ Cards ============ */
.card-grid {
    display: grid; gap: 1rem; margin-top: 1.5rem;
}
.card-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.card-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}
.card:hover { border-color: rgba(99, 102, 241, 0.3); }
.card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
.card .label {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 0.5rem;
}
.card .label.danger { color: var(--danger); }
.card .label.success { color: var(--success); }
.card .label.primary { color: var(--primary-light); }
.card .label.warning { color: var(--warning); }

/* Compare cards (side-by-side) */
.compare-card { border-top: 3px solid var(--border); }
.compare-card.green { border-top-color: #10b981; }
.compare-card.green .label { color: #10b981; }
.compare-card.purple { border-top-color: #6366f1; }
.compare-card.purple .label { color: var(--primary-light); }
.compare-card.blue { border-top-color: #3186ff; }
.compare-card.blue .label { color: #3186ff; }
.compare-card.orange { border-top-color: #f59e0b; }
.compare-card.orange .label { color: #f59e0b; }

.compare-card ul { list-style: none; padding: 0; margin: 0; }
.compare-card ul li {
    font-size: 0.9rem; color: var(--text-muted);
    padding: 0.35rem 0; display: flex; align-items: flex-start; gap: 0.5rem;
}
.compare-card ul li::before { content: '✓'; color: var(--success); font-weight: 600; flex-shrink: 0; }

/* Tags / pills */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag {
    font-size: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 4px;
    background: rgba(99, 102, 241, 0.1); color: var(--primary-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Tier badges */
.tier-badge {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; padding: 0.2rem 0.5rem; border-radius: 4px;
}
.tier-high { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.tier-mid { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.tier-low { background: rgba(16, 185, 129, 0.15); color: #10b981; }

/* ============ Info Box / Verdict Box (steps, verdicts) ============ */
.info-box, .verdict-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.5rem; margin: 1.5rem 0;
}
.info-box h3, .verdict-box h3 { margin-bottom: 0.5rem; }
.info-box .row, .verdict-box .row {
    display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.35rem 0;
}
.info-box .row span:first-child, .verdict-box .row span:first-child { flex-shrink: 0; }
.info-box .row span:last-child, .verdict-box .row span:last-child { color: var(--text-dim); font-size: 0.95rem; }

/* ============ Quote Block ============ */
.quote-block {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-left: 3px solid var(--primary); border-radius: 0 10px 10px 0;
    padding: 1.5rem; margin: 2rem 0;
}
.quote-block p {
    font-size: 1.0625rem; font-style: italic;
    color: var(--text-light); margin-bottom: 0;
}

/* ============ Pricing Table ============ */
.pricing-table {
    width: 100%; border-collapse: collapse; margin-top: 1rem;
    background: var(--bg-card); border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border);
}
.pricing-table th, .pricing-table td {
    padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}
.pricing-table th {
    color: var(--text-muted); font-weight: 600; font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
}
.pricing-table td { color: var(--text-dim); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table .model-name { color: var(--text-light); font-weight: 500; }
.pricing-table .provider { color: var(--text-muted); font-size: 0.75rem; }
.pricing-table .cheap { color: #10b981; }
.pricing-table .mid { color: #f59e0b; }
.pricing-table .expensive { color: #ef4444; }

/* ============ Stats Row ============ */
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1rem; margin: 2rem 0;
}
.stat {
    text-align: center; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 1.25rem;
}
.stat .number { font-size: 2rem; font-weight: 800; color: var(--primary-light); }
.stat .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ============ CTA Section ============ */
.cta-section {
    text-align: center; margin: 3rem 0; padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.03));
    border: 1px solid rgba(99, 102, 241, 0.2); border-radius: 16px;
}
.cta-section h2 { margin-bottom: 0.75rem; }
.cta-section p { color: var(--text-dim); margin-bottom: 1.5rem; }

.btn-primary {
    display: inline-block; background: var(--primary); color: white;
    padding: 0.875rem 2rem; border-radius: 8px; font-weight: 700;
    font-size: 1rem; text-decoration: none; transition: all 0.2s;
}
.btn-primary:hover {
    background: var(--primary-light); transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

/* ============ Internal Links ============ */
.internal-links {
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.internal-links h3 { font-size: 1rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.internal-links a {
    display: inline-block; color: var(--primary-light); text-decoration: none;
    font-size: 0.9rem; margin-right: 1.5rem; margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.internal-links a:hover { color: var(--text-light); }

/* ============ Footer ============ */
footer {
    text-align: center; padding: 3rem 2rem;
    color: var(--text-muted); font-size: 0.85rem;
    position: relative; z-index: 1;
}
footer a { color: var(--primary-light); text-decoration: none; }
footer a:hover { color: var(--text-light); }
.footer-badge {
    display: inline-block; margin-top: 1rem;
    opacity: 0.7; transition: opacity 0.3s;
}
.footer-badge:hover { opacity: 1; }
.footer-badge img { height: 28px; width: auto; }

/* ============ FAQ Section ============ */
.faq-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 1.25rem 1.5rem;
}
.faq-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.faq-item p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }
.faq-item a { color: var(--primary-light); text-decoration: none; }

/* ============ Provider Logos ============ */
.provider-row {
    display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center;
    justify-content: center; margin: 1.5rem 0;
}
.provider-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
}
.provider-item svg { width: 32px; height: 32px; }
.provider-item span { font-size: 0.7rem; color: var(--text-muted); }

/* ============ Responsive ============ */
@media (max-width: 640px) {
    nav { padding: 1rem; }
    .nav-badge { display: none; }
    .nav-cta { padding: 0.5rem 0.875rem; font-size: 0.8rem; }
    main { padding: 5.5rem 1.25rem 3rem; }
    .hero h1 { font-size: 1.75rem; }
    section h2 { font-size: 1.25rem; }
    .card-grid.cols-2, .card-grid.cols-3 { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .stat { padding: 0.75rem; }
    .pricing-table th, .pricing-table td { padding: 0.5rem; font-size: 0.75rem; }
}

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

