/* ===========================================
   TEMPLATE CSS — iGaming Affiliate (4rabet-style)
   =========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-bg:           #0e0e0e;
    --color-bg-alt:       #151515;
    --color-bg-card:      #1c1c1c;
    --color-bg-soft:      #232323;
    --color-border:       #2a2a2a;
    --color-accent:       #e30613;
    --color-accent-dark:  #b80510;
    --color-accent-hover: #ff1a2d;
    --color-gold:         #f5c542;
    --color-text:         #ffffff;
    --color-text-muted:   #b5b5b5;
    --color-text-dim:     #7a7a7a;
    --color-success:      #2ecc71;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --container: 1200px;

    --ff-base: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --ff-heading: 'Inter', 'Roboto', sans-serif;

    --transition: 0.2s ease;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-accent: 0 6px 24px rgba(227,6,19,0.35);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--ff-base);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-accent-hover);
}

ul, ol {
    padding-left: 1.3rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-top: 2rem; }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1.1rem;
    color: var(--color-text-muted);
}

blockquote {
    border-left: 4px solid var(--color-accent);
    background: var(--color-bg-card);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text);
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(227,6,19,0.5);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* ===========================================
   HEADER
   =========================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 44px;
    width: auto;
}

.header-auth {
    display: flex;
    gap: 8px;
    align-items: center;
}

.auth-field {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.auth-field:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.auth-field img {
    width: 16px;
    height: 16px;
}

.header-btns {
    display: flex;
    gap: 8px;
}

.btn-login,
.btn-register {
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-login {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-login:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-register {
    background: var(--color-accent);
    color: var(--color-text);
    border: 1px solid var(--color-accent);
}

.btn-register:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--color-text);
}

/* ---------- Navigation ---------- */
.site-nav {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 16px 28px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 3px solid transparent;
    transition: all var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===========================================
   HERO
   =========================================== */
.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(227,6,19,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    margin-bottom: 1.25rem;
}

.hero .lead {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ===========================================
   INFO TABLE (specs table)
   =========================================== */
.info-table {
    width: 100%;
    max-width: 600px;
    margin: 2rem 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    border-collapse: collapse;
}

.info-table tr {
    border-bottom: 1px solid var(--color-border);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 14px 20px;
    font-size: 0.95rem;
}

.info-table td:first-child {
    color: var(--color-text);
    font-weight: 500;
    width: 45%;
    background: var(--color-bg-soft);
}

.info-table td:last-child {
    color: var(--color-text-muted);
    text-align: right;
}

/* ===========================================
   TABLE OF CONTENTS
   =========================================== */
.toc {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}

.toc h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--color-accent);
}

.toc ol {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.25rem;
}

.toc ol li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
    color: var(--color-text-muted);
}

.toc a {
    color: var(--color-text);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.toc a:hover {
    color: var(--color-accent);
}

/* ===========================================
   CONTENT SECTIONS
   =========================================== */
.content-section {
    padding: 30px 0;
}

.content-section .section-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-soft);
}

.content-section ul,
.content-section ol {
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.content-section ul li,
.content-section ol li {
    margin-bottom: 0.65rem;
}

/* ---------- Data tables ---------- */
.data-table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.data-table th {
    background: var(--color-bg-soft);
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.data-table td {
    color: var(--color-text-muted);
}

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

.data-table tr:hover td {
    background: rgba(227,6,19,0.04);
    color: var(--color-text);
}

.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* ===========================================
   REVIEWS
   =========================================== */
.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.review-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition);
}

.review-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

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

.review-author {
    font-weight: 700;
    color: var(--color-text);
    font-size: 1rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-text-dim);
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0.75rem;
}

.review-rating .stars {
    display: flex;
    gap: 2px;
}

.review-rating .stars img {
    width: 16px;
    height: 16px;
}

.review-rating .score {
    font-weight: 700;
    color: var(--color-gold);
    margin-left: 6px;
}

.review-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.review-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.review-actions a {
    font-size: 0.85rem;
    color: var(--color-text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.review-actions a:hover {
    color: var(--color-accent);
}

.review-actions img {
    width: 14px;
    height: 14px;
}

/* ===========================================
   FAQ
   =========================================== */
.faq-list {
    margin: 1.5rem 0;
}

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-text);
    font-size: 1.05rem;
    list-style: none;
    transition: all var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: var(--color-bg-soft);
    color: var(--color-accent);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 400;
    transition: transform var(--transition);
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================================
   FOOTER
   =========================================== */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--color-text);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.footer-col a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.footer-badges img {
    max-height: 40px;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.footer-badges img:hover {
    opacity: 1;
}

.footer-copy {
    text-align: center;
    padding-top: 1.5rem;
    color: var(--color-text-dim);
    font-size: 0.85rem;
}

/* ===========================================
   COOKIE BANNER
   =========================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 500px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-banner img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--color-accent);
}

.cookie-accept {
    padding: 8px 20px;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.cookie-accept:hover {
    background: var(--color-accent-hover);
}

.cookie-banner.hidden {
    display: none;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .toc ol {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header-auth {
        display: none;
    }

    .header-auth.show {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .auth-field {
        width: 100%;
    }

    .header-btns {
        width: 100%;
    }

    .btn-login,
    .btn-register {
        flex: 1;
    }

    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-list.show {
        display: flex;
    }

    .nav-list a {
        padding: 14px 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .hero {
        padding: 40px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .data-table th,
    .data-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    .info-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .toc {
        padding: 1.25rem;
    }
}
