/* ============================================
   Auto Gaming — Style
   Dark pro theme for sports betting content
   ============================================ */

:root {
    --bg: #0d1117;
    --bg-card: #161b22;
    --bg-surface: #1c2333;
    --border: #30363d;
    --border-light: #21262d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --text-dim: #6e7681;
    --accent: #58a6ff;
    --accent-hover: #79c0ff;
    --green: #3fb950;
    --green-dim: #238636;
    --yellow: #d29922;
    --header-bg: #010409;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container: 820px;
    --radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ─────────────────────────────── */

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

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--green) 0%, #2ea043 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 6px;
    letter-spacing: -0.5px;
}

.logo-text { letter-spacing: -0.3px; }

/* Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    display: block;
    padding: 0.45rem 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--bg-surface);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border);
        padding: 0.5rem 1rem 1rem;
    }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 0.7rem 0.85rem; }
    .site-header.nav-open .main-nav { display: block; }
}

/* ── Breadcrumb ─────────────────────────── */

.breadcrumb {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 0.6rem 0;
    font-size: 0.82rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb .sep {
    color: var(--text-dim);
    margin: 0 0.4rem;
}

.breadcrumb .current {
    color: var(--text-muted);
}

/* ── Main Content ───────────────────────── */

main {
    padding: 2.5rem 1.5rem 4rem;
    max-width: var(--container);
    margin: 0 auto;
}

/* ── Page Hero (H1 + SVG illustration) ──── */

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 1.5rem 0 2rem;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.page-hero-text { flex: 1; }

.page-hero-text h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin: 0;
    color: #fff;
}

.page-hero-img {
    flex-shrink: 0;
    width: 200px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-hero-img img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .page-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1.25rem;
        gap: 1.25rem;
    }
    .page-hero-img { width: 140px; height: 110px; }
    .page-hero-text h1 { font-size: 1.5rem; }
}

.content h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    color: #fff;
}

.content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-light);
    color: #fff;
}

.content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

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

.content a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}
.content a:hover {
    color: var(--accent-hover);
    border-bottom-color: var(--accent-hover);
}

.content strong { color: #fff; font-weight: 600; }

/* Lists */
.content ul, .content ol {
    margin: 0.75rem 0 1.25rem 1.25rem;
}

.content li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

.content li::marker {
    color: var(--green);
}

/* ── Tables ─────────────────────────────── */

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 1.75rem;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.content thead {
    background: var(--bg-surface);
}

.content th {
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.content td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

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

.content tr:hover td {
    background: rgba(88, 166, 255, 0.04);
}

/* ── FAQ styling ────────────────────────── */

.content h2#frequently-asked-questions {
    border-bottom: none;
    padding-bottom: 0;
}

.content h2#frequently-asked-questions ~ h3 {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.65rem 1rem;
    margin-top: 1rem;
    font-size: 1rem;
}

.content h2#frequently-asked-questions ~ h3 + p {
    padding: 0 1rem 0.5rem;
    color: var(--text-muted);
}

/* ── Related Guides ─────────────────────── */

.content h2#related-guides ~ ul {
    list-style: none;
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.content h2#related-guides ~ ul li {
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color 0.15s;
}

.content h2#related-guides ~ ul li:hover {
    border-color: var(--accent);
}

.content h2#related-guides ~ ul li::marker { content: ''; }

.content h2#related-guides ~ ul a {
    font-weight: 500;
}

/* ── CTA Box ───────────────────────────── */

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--green);
    border-radius: var(--radius);
}

.cta-box-content { flex: 1; }

.cta-box-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem;
}

.cta-box-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.cta-box-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--green), #2ea043);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: opacity 0.15s;
    border-bottom: none !important;
}

.cta-box-btn:hover {
    opacity: 0.85;
    color: #fff !important;
    border-bottom: none !important;
}

@media (max-width: 600px) {
    .cta-box {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    .cta-box-btn { width: 100%; text-align: center; }
}

/* ── Partners Ranking ──────────────────── */

.partners-ranking {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: border-color 0.15s;
    position: relative;
    cursor: pointer;
}

.partner-card:hover {
    border-color: var(--green-dim);
}

.partner-card-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    border-bottom: none !important;
}

.partner-card-link:hover {
    color: inherit;
    border-bottom: none !important;
}

.partner-rank {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green);
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.partner-info {
    flex: 1;
    min-width: 0;
}

.partner-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.partner-books {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.book-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.2px;
}

.partner-features {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.partner-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 0.55rem 1.3rem;
    background: linear-gradient(135deg, var(--green), #2ea043);
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: opacity 0.15s;
    border-bottom: none !important;
    position: relative;
    z-index: 1;
}

.partner-btn:hover {
    opacity: 0.85;
    color: #fff !important;
    border-bottom: none !important;
}

@media (max-width: 600px) {
    .partner-card-link {
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem;
    }
    .partner-rank { width: auto; }
    .partner-info { width: calc(100% - 3.75rem); }
    .partner-btn {
        width: 100%;
        text-align: center;
    }
}

/* ── Footer ─────────────────────────────── */

.site-footer {
    background: var(--header-bg);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
}

.footer-brand { margin-bottom: 2rem; }

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1rem;
}
.footer-logo .logo-icon {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

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

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .footer-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .footer-links { grid-template-columns: 1fr; }
}

/* ── Selection / scrollbar ──────────────── */

::selection {
    background: rgba(88, 166, 255, 0.25);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
