/* BetResearcher Design System */
/* Colors: Dark Navy #0A0E17, Orange #FF6B1A, Cyan #00E5FF, Light #fafbfc */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #1a1a2e;
    background: #fafbfc;
}

/* === NAV === */
nav {
    background: #0A0E17;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255,107,26,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
nav .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
nav .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
}
nav .logo .logo-icon {
    width: 32px;
    height: 32px;
}
nav .logo .logo-text {
    color: #fff;
}
nav .logo .logo-text span {
    color: #FF6B1A;
}
nav .nav-links { display: flex; align-items: center; gap: 2px; }
nav .nav-links > a, nav .nav-links .nav-dropdown-trigger {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-block;
    line-height: 1;
}
nav .nav-links > a:hover, nav .nav-links > a.active,
nav .nav-links .nav-dropdown-trigger:hover {
    color: #fff;
    background: rgba(255,107,26,0.1);
}

/* Mobile nav toggle */
nav .nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
}
nav .nav-toggle:hover { color: #FF6B1A; }

/* === HERO SECTIONS === */
.hero {
    background: linear-gradient(135deg, #0A0E17 0%, #0D1520 50%, #121A28 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,107,26,0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0,229,255,0.04) 0%, transparent 40%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, 3%); }
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.hero h1 span { color: #FF6B1A; }
.hero p {
    font-size: 1.15rem;
    color: #a0a0c0;
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.6;
}
.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B1A, #ff8c5a);
    color: white;
    padding: 14px 36px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(255,107,26,0.3);
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255,107,26,0.4);
}

/* Page hero (smaller, for guide/article pages) */
.page-hero {
    background: linear-gradient(135deg, #0A0E17 0%, #121A28 100%);
    color: white;
    padding: 50px 24px 40px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF6B1A, #00E5FF, #FF6B1A);
}
.page-hero .container { max-width: 750px; margin: 0 auto; }
.page-hero .breadcrumb { font-size: 0.85rem; color: #666; margin-bottom: 16px; }
.page-hero .breadcrumb a { color: #FF6B1A; text-decoration: none; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.page-hero .subtitle { font-size: 1.05rem; color: #a0a0c0; line-height: 1.6; }

/* === CONTAINERS === */
.container { max-width: 960px; margin: 0 auto; padding: 40px 24px; }
.container.narrow { max-width: 750px; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }
h2 { font-size: 1.5rem; font-weight: 800; margin: 48px 0 16px; color: #0A0E17; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 10px; }
p { margin-bottom: 18px; color: #444; }
ul, ol { margin: 0 0 18px 24px; color: #444; }
li { margin-bottom: 8px; }
a { color: #FF6B1A; }

/* Section divider */
h2.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin: 48px 0 24px;
}

/* === ARTICLE CARDS === */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.article-card {
    background: white;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.25s;
    position: relative;
}
.article-card:hover {
    border-color: #FF6B1A;
    box-shadow: 0 8px 30px rgba(255,107,26,0.08);
    transform: translateY(-2px);
}
.article-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.article-card .icon.orange { background: #fff3ed; }
.article-card .icon.green { background: #edfcf2; }
.article-card .icon.blue { background: #eef4ff; }
.article-card .icon.purple { background: #f3eeff; }
.article-card .tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}
.article-card .tag.featured { background: #fff3ed; color: #FF6B1A; }
.article-card .tag.guide { background: #eef4ff; color: #4a90d9; }
.article-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
    font-weight: 700;
}
.article-card h3 a { color: #0A0E17; text-decoration: none; }
.article-card h3 a:hover { color: #FF6B1A; }
.article-card p { font-size: 0.9rem; color: #666; margin-bottom: 12px; }
.article-card .read-more {
    color: #FF6B1A;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.article-card .read-more::after { content: '→'; }

/* === APP CARDS (comparison page) === */
.app-card {
    background: white;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    padding: 32px;
    margin-bottom: 24px;
    transition: all 0.2s;
}
.app-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.app-card.top-pick {
    border: 2px solid #FF6B1A;
    background: linear-gradient(180deg, #fffaf7 0%, #ffffff 100%);
}
.app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.app-name { font-size: 1.3rem; font-weight: 800; }
.app-price {
    font-size: 0.88rem;
    color: #666;
    background: #f5f5fa;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.pros h4 { color: #16a34a; margin-bottom: 10px; font-size: 0.9rem; font-weight: 700; }
.cons h4 { color: #dc2626; margin-bottom: 10px; font-size: 0.9rem; font-weight: 700; }
.pros li, .cons li { font-size: 0.88rem; list-style: none; margin-bottom: 6px; padding-left: 22px; position: relative; }
.pros li::before { content: '✓'; position: absolute; left: 0; color: #16a34a; font-weight: 700; }
.cons li::before { content: '✗'; position: absolute; left: 0; color: #dc2626; font-weight: 700; }

/* Badges */
.winner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B1A, #ff8c5a);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}
.runner-up-badge {
    display: inline-block;
    background: #4a90d9;
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

/* === TABLES === */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.88rem; border-radius: 12px; overflow: hidden; }
.comparison-table th {
    background: #0A0E17;
    color: white;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
}
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid #eee; }
.comparison-table tr:hover td { background: #fafafa; }

table.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
table.data-table th { background: #f5f5fa; font-weight: 600; padding: 10px 14px; text-align: left; border-bottom: 2px solid #ddd; }
table.data-table td { padding: 10px 14px; border-bottom: 1px solid #eee; }

/* === SPECIAL BOXES === */
.formula-box {
    background: #0A0E17;
    color: #e0e0f0;
    padding: 28px 32px;
    border-radius: 12px;
    margin: 28px 0;
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    text-align: center;
    border: 1px solid rgba(255,107,26,0.2);
}
.formula-box .label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.example-box {
    background: #f8f9fc;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    padding: 28px;
    margin: 28px 0;
}
.example-box h4 { margin-bottom: 14px; color: #0A0E17; font-size: 1rem; }

.highlight {
    background: linear-gradient(135deg, #fff8f0, #fff3ed);
    border-left: 4px solid #FF6B1A;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 10px 10px 0;
}
.highlight strong { color: #FF6B1A; }

/* === CTA BOX === */
.cta-box {
    background: linear-gradient(135deg, #FF6B1A 0%, #e85a28 100%);
    color: white;
    padding: 36px;
    border-radius: 16px;
    margin: 48px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-box > * { position: relative; }
.cta-box h3 { color: white; margin: 0 0 10px; font-size: 1.3rem; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }
.cta-box a {
    display: inline-block;
    background: white;
    color: #FF6B1A;
    padding: 13px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
}
.cta-box a:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

/* === RECOMMENDATION BOX === */
.recommendation-box {
    background: #f8f8fc;
    border: 1px solid #e0e0e8;
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
}
.recommendation-box h3 { margin: 0 0 10px; font-size: 1.1rem; color: #0A0E17; }
.recommendation-box p { margin-bottom: 0; color: #444; }
.recommendation-box a { color: #FF6B1A; text-decoration: none; font-weight: 600; }
.recommendation-box a:hover { text-decoration: underline; }

/* === ABOUT BOX (homepage) === */
.about-box {
    background: white;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    padding: 36px;
    margin: 40px 0;
}
.about-box h2 { margin-top: 0; font-size: 1.3rem; }

/* === GUIDE CARDS === */
.guide-card {
    background: white;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 16px;
    transition: all 0.25s;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.guide-card:hover {
    border-color: #FF6B1A;
    box-shadow: 0 8px 30px rgba(255,107,26,0.08);
    transform: translateY(-2px);
}
.guide-card .guide-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.guide-card .guide-content { flex: 1; }
.guide-card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.guide-card h2 a { color: #0A0E17; text-decoration: none; }
.guide-card h2 a:hover { color: #FF6B1A; }
.guide-card p { font-size: 0.9rem; color: #666; margin-bottom: 10px; }
.guide-card .read { color: #FF6B1A; text-decoration: none; font-weight: 600; font-size: 0.88rem; }

/* === TOC === */
.toc {
    background: #f8f9fc;
    border: 1px solid #e4e4ec;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 32px;
}
.toc h3 { margin: 0 0 12px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; color: #888; }
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 0.92rem; }
.toc a { color: #4a90d9; text-decoration: none; }
.toc a:hover { color: #FF6B1A; }

/* === COMPARISON BOXES === */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.comparison-col {
    background: #f8f9fc;
    border: 1px solid #e4e4ec;
    border-radius: 12px;
    padding: 24px;
}
.comparison-col h4 { margin-bottom: 12px; font-size: 1rem; }
.comparison-col ul { margin-left: 18px; font-size: 0.9rem; }

/* === FOOTER === */
footer {
    background: #0A0E17;
    color: #666;
    padding: 48px 24px;
    margin-top: 60px;
    border-top: 1px solid rgba(255,107,26,0.15);
}
footer .footer-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
footer p { font-size: 0.85rem; margin-bottom: 8px; }
footer a { color: #FF6B1A; text-decoration: none; }

/* === STATS ROW (for visual flair) === */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #FF6B1A;
    line-height: 1.2;
}
.stat-item .stat-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    /* Tighter line-height for all headings on mobile */
    h1, h2, h3, h4, h5, h6 { line-height: 1.25; }
    
    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 1.7rem; }
    .article-grid { grid-template-columns: 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .comparison-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 24px; }
    .guide-card { flex-direction: column; }
    
    /* Mobile nav */
    nav .nav-toggle { display: block; }
    nav .nav-inner { position: relative; }
    nav .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        right: 24px;
        background: #0A0E17;
        border: 1px solid rgba(255,107,26,0.2);
        border-radius: 12px;
        padding: 12px;
        flex-direction: column;
        gap: 4px;
        min-width: 160px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        z-index: 1000;
    }
    nav .nav-links.nav-open { display: flex; }
    nav .nav-links a {
        padding: 12px 16px;
        font-size: 0.95rem;
        text-align: left;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Nav dropdown */
/* Nav dropdown */
.nav-dropdown { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 16px;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #161628;
    border: 1px solid rgba(255,107,26,0.15);
    border-radius: 10px;
    padding: 6px 0;
    min-width: 240px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    z-index: 200;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-dropdown-menu a:hover {
    background: rgba(255,107,26,0.08);
    color: #fff;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

/* Footer grid */
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; text-align: left; }
.footer-col h4 { color: #ff6b35; font-size: 0.9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; color: #aaa; text-decoration: none; font-size: 0.85rem; padding: 10px 0; margin-bottom: 0; }
.footer-col a:hover { color: #ff6b35; }
.footer-bottom { border-top: 1px solid #252540; padding-top: 20px; text-align: center; }
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer-col a { padding: 12px 0; font-size: 0.9rem; }
}
