/* Design System - Limitless Casino US */
:root {
    --primary-gold: #DBAD64;
    --primary-gold-rgb: 219, 173, 100;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-blue: #0b5bd3;
    --success-green: #2ecc71;
    --border-color: #333333;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
}

img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; border-bottom: 2px solid var(--primary-gold); display: inline-block; padding-bottom: 0.5rem; margin-top: 2rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; }

a {
    color: var(--primary-gold);
    text-decoration: none;
    transition: 0.3s;
    word-break: break-word;
}

a:hover { color: var(--text-white); }

/* Layout - CRITICAL FOR MOBILE */
.container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

section, main, header, footer, article, aside, div {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Header & Nav */
header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary-gold);
    border-radius: 3px;
    transition: 0.3s;
}

.menu-checkbox { display: none; }

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

nav ul li a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 50px 0 !important;
    text-align: center;
    background-size: cover !important;
    background-position: center !important;
}

.hero h1 {
    font-size: 1.75rem !important;
    margin-bottom: 15px;
}

.hero p {
    font-size: 0.95rem;
    padding: 0 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px !important;
    background: var(--primary-gold);
    color: #000;
    font-weight: 800;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    white-space: nowrap;
}

.btn:hover {
    color: #000;
}

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

.btn-outline:hover {
    background: var(--primary-gold);
    color: #000;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Tables - FORCE SCROLL */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    font-size: 0.8rem;
}

th, td {
    padding: 8px 6px;
    border: 1px solid var(--border-color);
    text-align: left;
}

th {
    background: var(--primary-gold);
    color: #000;
    font-size: 0.75rem;
}

.comparison-table-v2 {
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
    display: block !important;
}

.comparison-table-v2 table {
    min-width: 600px;
}

/* Author Box */
.author-box {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--glass-bg);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #444;
    flex-shrink: 0;
}

/* TOC */
.toc-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 30px;
}

.toc-container h4 { margin-bottom: 10px; font-size: 1rem; }
.toc-container ul { list-style: none; }
.toc-container li { margin-bottom: 6px; font-size: 0.85rem; }
.toc-container a { color: var(--text-gray); }

/* Expert Verdict */
.expert-verdict {
    background: rgba(219, 173, 100, 0.05);
    border-left: 4px solid var(--primary-gold);
    padding: 20px 12px 15px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    position: relative;
}

.expert-verdict::before {
    content: "EXPERT VERDICT";
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--primary-gold);
    color: #000;
    padding: 2px 8px;
    font-weight: 800;
    font-size: 0.65rem;
    border-radius: 4px;
}

/* Flags */
.flags-wrapper, .red-green-flags {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.flag-box, .flag-box-v2 {
    padding: 15px;
    border-radius: 12px;
}

.flag-box.green, .flag-box-v2.green {
    background: rgba(46, 204, 113, 0.05);
    border: 1px solid var(--success-green);
}

.flag-box.red, .flag-box-v2.red {
    background: rgba(231, 76, 60, 0.05);
    border: 1px solid #e74c3c;
}

.flag-box h4, .flag-box-v2 h3 { margin-bottom: 10px; font-size: 0.95rem; }
.flag-box.green h4, .flag-box-v2.green h3 { color: var(--success-green); }
.flag-box.red h4, .flag-box-v2.red h3 { color: #e74c3c; }
.flag-box-v2 ul { list-style: none; padding: 0; }
.flag-box-v2 li { margin-bottom: 8px; font-size: 0.85rem; line-height: 1.4; }

/* Casino Cards */
.casino-card-pro {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px !important;
    border-radius: 12px;
    margin-bottom: 20px;
}

.casino-score {
    background: var(--primary-gold);
    color: #000;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1rem;
    margin: 0 auto;
    flex-shrink: 0;
}

.pro-cons {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px;
    margin-top: 10px;
}

.pro-item::before { content: "\2713 "; color: var(--success-green); }
.con-item::before { content: "\2717 "; color: #e74c3c; }
.pro-item, .con-item { font-size: 0.85rem; }

/* Layout with Sidebar */
.layout-with-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px;
}

/* Quick Verdict */
.quick-verdict-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px;
    margin: 20px 0;
}

.quick-verdict-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    position: relative;
}

.quick-verdict-card h3 { margin: 12px 0 8px; font-size: 1.15rem; }

.quick-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gold);
    color: #000;
    padding: 3px 8px;
    font-size: 0.6rem;
    font-weight: 800;
    border-radius: 4px;
    white-space: nowrap;
}

/* Methodology */
.methodology-weights { margin: 20px 0; }
.weight-item { margin-bottom: 15px; }
.weight-top { display: flex; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: 0.85rem; }
.weight-total { background: var(--border-color); border-radius: 10px; height: 10px; overflow: hidden; }
.weight-bar { height: 100%; background: linear-gradient(90deg, var(--primary-gold), #f0c674); border-radius: 10px; }

/* License Steps */
.license-steps { list-style: none; padding: 0; margin: 20px 0; }
.license-steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.step-circle {
    width: 35px;
    height: 35px;
    background: var(--primary-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Utilities */
.small { font-size: 0.8rem; color: var(--text-gray); }

/* Article */
article { width: 100%; }
article p { margin-bottom: 1rem; font-size: 0.9rem; }
article ul, article ol { margin: 12px 0 15px 18px; }
article li { margin-bottom: 6px; font-size: 0.9rem; }
article h2 { margin-top: 35px; }
article h3 { margin-top: 20px; }

/* FOOTER - Override inline styles */
footer {
    background: #111 !important;
    padding: 30px 0 !important;
    border-top: 2px solid var(--primary-gold) !important;
}

footer .container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

footer .container > div > div {
    flex: none !important;
    width: 100% !important;
}

footer img {
    height: 35px !important;
    width: auto !important;
}

footer p {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Page specific hero filters */
.page-no-deposit .hero { filter: hue-rotate(15deg); }
.page-bonus-codes .hero { filter: saturate(0.6); }
.page-crypto .hero { filter: contrast(1.2) sepia(0.1); }
.page-top-casinos .hero { border-bottom: 4px solid var(--primary-gold); }
.page-sisters .hero { filter: brightness(0.85); }
.page-bonuses .hero { filter: saturate(1.2) hue-rotate(-10deg); }
.page-safety .hero { filter: grayscale(0.25); }

/* =====================
   MOBILE NAV (< 768px)
   ===================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav > .btn.btn-outline {
        display: none;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 260px;
        height: 100vh;
        height: 100dvh;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 70px 20px 30px;
        gap: 0;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        overflow-y: auto;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li a {
        display: block;
        padding: 12px 0;
        font-size: 0.95rem;
    }

    .menu-checkbox:checked ~ ul {
        right: 0;
    }

    .menu-checkbox:checked ~ .menu-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-checkbox:checked ~ .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked ~ .menu-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* =====================
   TABLET (600px+)
   ===================== */
@media (min-width: 600px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }

    .hero { padding: 70px 0 !important; }
    .hero h1 { font-size: 2.5rem !important; }

    .quick-verdict-container {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .quick-verdict-card {
        flex: 1 1 45%;
        min-width: 220px;
    }

    .red-green-flags, .flags-wrapper {
        flex-direction: row;
    }

    .flag-box, .flag-box-v2 {
        flex: 1;
    }

    .casino-card-pro {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start;
        padding: 20px !important;
    }

    .casino-score {
        margin: 0;
    }

    .casino-card-pro > div {
        flex: 1;
        min-width: 0;
    }

    .pro-cons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .pro-item, .con-item {
        flex: 1 1 45%;
    }

    .license-steps li {
        flex-direction: row;
        text-align: left;
    }

    footer .container > div {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    footer .container > div > div:first-child {
        flex: 2 !important;
        min-width: 250px !important;
    }

    footer .container > div > div:last-child {
        flex: 1 !important;
        min-width: 200px !important;
    }
}

/* =====================
   DESKTOP (900px+)
   ===================== */
@media (min-width: 900px) {
    .container {
        padding: 0 20px !important;
    }

    .hero { padding: 90px 0 !important; }
    .hero h1 { font-size: 3rem !important; }

    .layout-with-sidebar {
        flex-direction: row !important;
    }

    .layout-with-sidebar > article {
        flex: 1;
        min-width: 0;
    }

    .layout-with-sidebar > aside {
        width: 260px;
        flex-shrink: 0;
    }

    .toc-container {
        position: sticky;
        top: 90px;
    }

    .quick-verdict-card {
        flex: 1 1 30%;
    }

    .casino-card-pro {
        flex-wrap: nowrap !important;
    }
}

/* =====================
   SMALL MOBILE (< 400px)
   ===================== */
@media (max-width: 400px) {
    .container {
        padding: 0 10px !important;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }

    .hero { padding: 35px 0 !important; }
    .hero h1 { font-size: 1.5rem !important; }

    .btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }

    th, td {
        padding: 6px 4px;
        font-size: 0.7rem;
    }

    .quick-badge {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .casino-card-pro {
        padding: 12px 10px !important;
    }

    .casino-score {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Touch devices */
@media (hover: none) {
    .btn:hover, .quick-verdict-card:hover, .card:hover {
        transform: none;
    }
}

/* Print */
@media print {
    header, .menu-toggle, .btn, .toc-container, footer { display: none !important; }
    body { background: white; color: black; }
    h1, h2, h3, h4 { color: black; }
    .hero { background: none !important; }
}
