/* ============================================
   SITE23-CA - CANADIAN SOCIAL CASINO
   
   CSS ARCHITECTURE: OOCSS (Object-Oriented CSS)
   PALETTE: Canadian Wilderness Theme
   EFFECT: Gradient Mesh (complex radial gradients)
   TYPOGRAPHY: Bold Display (Oswald + Raleway)
   BUTTONS: Split Color (dual-tone animation)
   HTML STRUCTURE: Feature-based naming
   JS NAMING: Short names
   ============================================ */

/* ============================================
   CANADIAN WILDERNESS PALETTE
   ============================================ */
:root {
    /* Main Colors */
    --maple-red: #ff0000;
    --pine-green: #1b5e20;
    --mountain-blue: #1976d2;
    --snow-white: #f5f5f5;
    --northern-lights: #00bcd4;
    --autumn-gold: #ff8f00;
    
    /* Neutral & Background */
    --charcoal: #2c2c2c;
    --forest-dark: #0a3d1b;
    --ice-gray: #e8eaf6;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Header */
    --header-height: 70px;
}

@media (max-width: 600px) {
    :root {
        --header-height: 60px;
    }
}

/* ============================================
   OOCSS BASE - RESET & GLOBALS
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--charcoal);
    background: var(--snow-white);
}

/* ============================================
   TYPOGRAPHY - BOLD DISPLAY
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Raleway:wght@300;400;600;700&display=swap');

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

p {
    margin-bottom: var(--space-sm);
}

/* ============================================
   OOCSS STRUCTURE - LAYOUT OBJECTS
   ============================================ */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.section {
    padding: var(--space-lg) 0;
}

.grid {
    display: grid;
    gap: var(--space-md);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* ============================================
   OOCSS STRUCTURE - BOX OBJECTS
   ============================================ */
.box {
    padding: var(--space-md);
    border-radius: 16px;
}

.box-card {
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ============================================
   OOCSS SKIN - COLOR THEMES
   ============================================ */
.skin-maple {
    background: var(--maple-red);
    color: white;
}

.skin-pine {
    background: var(--pine-green);
    color: white;
}

.skin-mountain {
    background: var(--mountain-blue);
    color: white;
}

.skin-lights {
    background: var(--northern-lights);
    color: white;
}

.skin-gold {
    background: var(--autumn-gold);
    color: white;
}

/* GRADIENT MESH EFFECT (unique visual effect) */
.skin-mesh {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(27, 94, 32, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.1) 0%, transparent 70%),
        linear-gradient(135deg, #f5f5f5 0%, #e8eaf6 100%);
}

.skin-mesh-dark {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 143, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(25, 118, 210, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 0, 0.15) 0%, transparent 70%),
        linear-gradient(135deg, #2c2c2c 0%, #0a3d1b 100%);
    color: white;
}

/* ============================================
   OOCSS SKIN - TEXT COLORS
   ============================================ */
.text-maple { color: var(--maple-red); }
.text-pine { color: var(--pine-green); }
.text-mountain { color: var(--mountain-blue); }
.text-lights { color: var(--northern-lights); }
.text-gold { color: var(--autumn-gold); }
.text-white { color: white; }
.text-dark { color: var(--charcoal); }

.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.text-upper { text-transform: uppercase; }

/* ============================================
   BUTTONS - SPLIT COLOR EFFECT
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-split {
    background: linear-gradient(to right, var(--maple-red) 50%, var(--autumn-gold) 50%);
    background-size: 200% 100%;
    background-position: right;
    color: white;
    border: none;
}

.btn-split:hover {
    background-position: left;
}

.btn-split-alt {
    background: linear-gradient(to right, var(--mountain-blue) 50%, var(--northern-lights) 50%);
    background-size: 200% 100%;
    background-position: right;
    color: white;
}

.btn-split-alt:hover {
    background-position: left;
}

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

.btn-outline:hover {
    background: var(--maple-red);
    color: white;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.875rem;
}

/* ============================================
   HEADER - FIXED NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(44, 44, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--maple-red);
}

.nav-list {
    display: flex;
    gap: var(--space-md);
    list-style: none;
    align-items: center;
}

.nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--maple-red);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}

.burger-line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-list {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .nav-list.active {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        background: rgba(44, 44, 44, 0.98);
        padding: var(--space-md);
        gap: var(--space-sm);
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        animation: slideDown 0.3s ease;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: 140px;
    padding-bottom: var(--space-xl);
    background-attachment: scroll;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    color: white;
    margin-bottom: var(--space-lg);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 120px;
    }
}

/* ============================================
   BENEFIT CARDS
   ============================================ */
.benefits {
    background: var(--snow-white);
}

.benefit-card {
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.benefit-card h3 {
    color: var(--pine-green);
    margin-bottom: var(--space-sm);
}

/* ============================================
   GAME CARDS
   ============================================ */
.games-section {
    background: var(--ice-gray);
}

.games-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px);
    max-width: 350px;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.game-info {
    padding: var(--space-md);
}

.game-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--maple-red);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 12px;
    margin-bottom: var(--space-sm);
}

.game-title {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.game-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
    color: var(--autumn-gold);
}

@media (max-width: 768px) {
    .games-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    background: white;
}

.faq-item {
    margin-bottom: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--ice-gray);
    border: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #d0d3e0;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--maple-red);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--space-md);
    transition: all 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: var(--space-md);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
    background: var(--ice-gray);
}

.testimonial-card {
    background: white;
    padding: var(--space-md);
    border-left: 4px solid var(--maple-red);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 700;
    color: var(--charcoal);
}

.testimonial-location {
    color: #999;
    font-size: 0.9rem;
}

.testimonial-rating {
    color: var(--autumn-gold);
    margin-bottom: var(--space-xs);
}

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-section {
    background: white;
}

.leaderboard-grid {
    display: grid;
    gap: var(--space-sm);
    max-width: 800px;
    margin: 0 auto;
}

.leader-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--ice-gray);
    border-radius: 8px;
    border-left: 4px solid var(--autumn-gold);
}

.leader-rank {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--maple-red);
    min-width: 50px;
    text-align: center;
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-weight: 700;
    color: var(--charcoal);
}

.leader-game {
    font-size: 0.9rem;
    color: #666;
}

.leader-prize {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pine-green);
}

/* ============================================
   DISCLAIMER
   ============================================ */
.disclaimer {
    background: linear-gradient(135deg, var(--maple-red) 0%, #cc0000 100%);
    color: white;
    padding: var(--space-lg) 0;
    border-top: 4px solid var(--autumn-gold);
    border-bottom: 4px solid var(--autumn-gold);
}

.disclaimer h3 {
    margin-bottom: var(--space-sm);
}

.disclaimer p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.disclaimer a {
    color: var(--autumn-gold);
    text-decoration: underline;
    font-weight: 700;
}

.disclaimer a:hover {
    color: white;
}

.disclaimer-badges {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.badge {
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border: 2px solid white;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3, .footer-section h4 {
    color: var(--maple-red);
    margin-bottom: var(--space-sm);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--maple-red);
}

.compliance-logos {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--space-sm);
}

.compliance-logo {
    height: 35px !important;
    width: auto !important;
    background: rgba(255,255,255,0.95);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.compliance-logo:hover {
    opacity: 1;
    border-color: var(--maple-red);
    box-shadow: 0 0 10px rgba(255,0,0,0.5);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--maple-red);
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    border: 3px solid white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--maple-red);
    text-decoration: none;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: var(--space-sm);
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    padding: var(--space-lg);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-header h2 {
    color: var(--maple-red);
    margin-bottom: var(--space-sm);
}

.modal-body p {
    margin-bottom: var(--space-sm);
}

.age-buttons {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.age-buttons .btn {
    flex: 1;
}

.age-warning {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: white;
    border: 2px solid var(--maple-red);
    border-radius: 15px;
    padding: var(--space-md);
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.cookie-content p {
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    color: var(--charcoal);
}

.cookie-buttons {
    display: flex;
    gap: var(--space-xs);
}

@media (max-width: 600px) {
    .cookie-consent {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

.hidden {
    display: none !important;
}

