/* ==========================================
   CasinoToronto.com - Main Stylesheet
   Theme: Luxury Dark / Gold
   ========================================== */

:root {
    --gold: #c9a84c;
    --gold-light: #e8cb7a;
    --gold-dark: #a07c2a;
    --black: #0a0a0a;
    --dark: #111118;
    --dark-2: #1a1a24;
    --dark-3: #22222e;
    --dark-card: #181820;
    --text: #e8e6e0;
    --text-muted: #9994a8;
    --text-dim: #6b6678;
    --white: #ffffff;
    --green: #2ecc71;
    --red: #e74c3c;
    --border: rgba(201,168,76,0.15);
    --border-subtle: rgba(255,255,255,0.07);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-gold: 0 4px 24px rgba(201,168,76,0.2);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 1.25;
    font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text); }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
ul, ol { margin-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--white); font-weight: 600; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header p { max-width: 600px; margin: 0.8rem auto 0; color: var(--text-muted); font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.layout-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; }

/* ---- Age Banner ---- */
.age-banner {
    background: linear-gradient(90deg, #1a1000, #2a1f00, #1a1000);
    border-bottom: 1px solid var(--gold-dark);
    color: var(--gold-light);
    font-size: 0.78rem;
    text-align: center;
    padding: 8px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.age-banner a { color: var(--gold); text-decoration: underline; }
.age-banner button {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}

/* ---- Header ---- */
.site-header {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.5); }

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 14px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon {
    font-size: 1.8rem;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 20px rgba(201,168,76,0.5);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--white);
    letter-spacing: 0.05em;
}
.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 500;
}

.main-nav { flex: 1; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav a {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
    white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.header-cta { flex-shrink: 0; font-size: 0.85rem; padding: 9px 18px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,168,76,0.35);
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: var(--black);
}
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }

/* ---- Gold Accent ---- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ---- Cards ---- */
.card {
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #0a0a0f 0%, #12101a 50%, #0f0d15 100%);
    position: relative;
    overflow: hidden;
    padding: 90px 0 80px;
    min-height: 520px;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(100,50,150,0.06) 0%, transparent 60%);
}
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        45deg,
        var(--gold) 0,
        var(--gold) 1px,
        transparent 0,
        transparent 50%
    );
    background-size: 30px 30px;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 50px;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}
.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

/* ---- Casino Cards ---- */
.casino-card {
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.casino-card:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), var(--shadow-gold);
}
.casino-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}
.casino-card-header {
    padding: 28px 24px 20px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 16px;
}
.casino-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    font-family: var(--font-display);
    color: var(--black);
    flex-shrink: 0;
}
.casino-name-block h3 { font-size: 1.15rem; margin-bottom: 2px; }
.casino-name-block .bonus-text {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}
.stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; }
.rating-num { color: var(--text-muted); font-size: 0.8rem; margin-left: 4px; }

.casino-card-body { padding: 20px 24px; flex: 1; }
.casino-features {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.casino-features li {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.casino-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.casino-card-footer { padding: 0 24px 24px; }
.casino-card .btn { width: 100%; justify-content: center; }

/* ---- Trust Bar ---- */
.trust-bar {
    background: var(--dark-2);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px 0;
}
.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.trust-item .icon { font-size: 1.1rem; }

/* ---- Content Sections ---- */
.content-section { padding: 70px 0; }
.prose h2 { margin: 2rem 0 1rem; }
.prose h3 { margin: 1.6rem 0 0.8rem; color: var(--gold-light); font-size: 1.2rem; }
.prose p { color: var(--text); margin-bottom: 1.1rem; }
.prose ul, .prose ol { color: var(--text); margin-bottom: 1.1rem; }
.prose a { color: var(--gold); }
.prose a:hover { text-decoration: underline; }

/* ---- Star Rating Component ---- */
.rating-row { display: flex; align-items: center; gap: 6px; }
.star-filled { color: var(--gold); }
.star-empty { color: var(--dark-3); }

/* ---- Info Box ---- */
.info-box {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.2);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
}
.info-box h4 { color: var(--gold); margin-bottom: 8px; font-size: 1rem; }
.info-box p { margin: 0; font-size: 0.9rem; }

.warning-box {
    background: rgba(231,76,60,0.06);
    border: 1px solid rgba(231,76,60,0.2);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 28px 0;
}
.warning-box h4 { color: var(--red); margin-bottom: 8px; font-size: 1rem; }

/* ---- Table ---- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin: 28px 0;
    border-radius: var(--radius);
    overflow: hidden;
}
.comparison-table th {
    background: var(--dark-2);
    color: var(--gold);
    font-family: var(--font-display);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.comparison-table td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.comparison-table tr:hover td { background: rgba(201,168,76,0.04); }

/* ---- Breadcrumb ---- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding: 16px 0;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }

/* ---- FAQ ---- */
.faq-item {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-question {
    background: var(--dark-card);
    padding: 18px 22px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    user-select: none;
}
.faq-question:hover { background: var(--dark-3); }
.faq-question.open { color: var(--gold); }
.faq-icon { color: var(--gold); font-size: 1.2rem; transition: var(--transition); }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    background: var(--dark-2);
    padding: 0 22px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-answer.open {
    max-height: 500px;
    padding: 18px 22px;
}
.faq-answer p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: 100px; }
.sidebar-widget {
    background: var(--dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.sidebar-widget h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}
.sidebar-casino {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.sidebar-casino:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-casino-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--black);
    flex-shrink: 0;
}
.sidebar-casino-info { flex: 1; min-width: 0; }
.sidebar-casino-name { font-size: 0.85rem; font-weight: 600; color: var(--white); }
.sidebar-casino-bonus { font-size: 0.75rem; color: var(--gold); }
.sidebar-casino .btn { font-size: 0.75rem; padding: 6px 12px; flex-shrink: 0; }

/* ---- CTA Banner ---- */
.cta-banner {
    background: linear-gradient(135deg, #1a1000 0%, #2a1f00 50%, #1a1200 100%);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '♦ ♠ ♥ ♣';
    position: absolute;
    font-size: 8rem;
    opacity: 0.04;
    color: var(--gold);
    top: -20px;
    right: -10px;
    letter-spacing: -10px;
}
.cta-banner h2 { font-size: 1.8rem; margin-bottom: 14px; }
.cta-banner p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }

/* ---- Responsible Gambling Box ---- */
.rg-box {
    background: var(--dark-2);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}
.rg-box .rg-icon { font-size: 3rem; margin-bottom: 14px; }
.rg-box h3 { margin-bottom: 12px; }
.rg-box p { color: var(--text-muted); font-size: 0.9rem; max-width: 500px; margin: 0 auto 20px; }
.rg-number {
    display: inline-block;
    background: rgba(46,204,113,0.1);
    border: 1px solid rgba(46,204,113,0.25);
    color: var(--green);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* ---- Footer ---- */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--border-subtle);
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding: 60px 0 40px;
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: 14px 0 18px;
    line-height: 1.65;
}
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-trust {
    font-size: 0.72rem;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.15);
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 50px;
}
.footer-links h4 {
    color: var(--gold);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-dim); font-size: 0.85rem; }
.footer-links a:hover { color: var(--gold); }
.footer-disclaimer {
    border-top: 1px solid var(--border-subtle);
    padding: 24px 0;
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.65;
}
.footer-disclaimer p { color: var(--text-dim); margin-bottom: 0.6rem; }
.footer-disclaimer strong { color: var(--text-muted); }
.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--text-dim);
    gap: 16px;
    flex-wrap: wrap;
}
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { color: var(--text-dim); font-size: 0.78rem; }
.footer-legal-links a:hover { color: var(--gold); }

/* ---- Ad Units ---- */
.ad-unit { margin: 28px 0; text-align: center; }
.ad-placeholder {
    background: var(--dark-2);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
    background: linear-gradient(135deg, #0a0a10 0%, #141020 100%);
    padding: 60px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 100% at 80% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { font-size: 1.05rem; color: var(--text-muted); max-width: 620px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--dark-3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .layout-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
    
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: flex; }
    
    .main-nav.open {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
    }
    .main-nav.open ul {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .main-nav.open a { font-size: 1.2rem; padding: 14px 24px; }

    .hero { padding: 60px 0 50px; }
    .hero-stats { gap: 20px; }
    .trust-bar-inner { gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .cta-banner { padding: 36px 24px; }
}
