/*
 * LAUGTUNHITRA.COM - Social Casino (Canada)
 * Project: site24-ca
 * Date: January 2025
 * Company: FH Gaming AB
 * 
 * DESIGN SYSTEM:
 * CSS Architecture: BEM (Block Element Modifier)
 * Color Palette: Canadian Maple
 * Visual Effect: Animated Gradients
 * Typography: Elegant Serif (Playfair Display + Lato)
 * Buttons: Ripple Effect
 * HTML Structure: BEM naming (.block, .block__element, .block--modifier)
 * JS Naming: Descriptive (ageVerificationModal, mobileMenuToggle, etc.)
 */

/* ========================================
   GOOGLE FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* ========================================
   CSS VARIABLES - Canadian Maple Theme
   ======================================== */
:root {
    /* Canadian Maple Palette */
    --maple-red: #d32f2f;
    --forest-green: #2e7d32;
    --golden-harvest: #f9a825;
    --mountain-blue: #1565c0;
    --snow-white: #fafafa;
    --northern-sky: #e3f2fd;
    --autumn-orange: #ff6f00;
    --deep-forest: #1b5e20;
    
    /* Text Colors */
    --text-primary: #212121;
    --text-secondary: #616161;
    --text-light: #ffffff;
    
    /* UI Elements */
    --border-color: rgba(0, 0, 0, 0.12);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    /* Layout */
    --header-height: 70px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--snow-white);
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

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(--spacing-sm);
}

a {
    color: var(--maple-red);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--autumn-orange);
}

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

/* ========================================
   ANIMATED GRADIENTS EFFECT
   ======================================== */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(135deg, var(--maple-red), var(--golden-harvest), var(--mountain-blue));
    background-size: 300% 300%;
    animation: gradientShift 10s ease infinite;
}

.animated-gradient--fast {
    animation: gradientShift 6s ease infinite;
}

.animated-gradient--subtle {
    background: linear-gradient(135deg, 
        rgba(211, 47, 47, 0.1), 
        rgba(249, 168, 37, 0.1), 
        rgba(21, 101, 192, 0.1));
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
}

/* ========================================
   LAYOUT BLOCKS
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

.container--narrow {
    max-width: 900px;
}

.container--wide {
    max-width: 1400px;
}

/* ========================================
   HEADER - BEM Block
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--maple-red);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__logo-icon {
    font-size: 2rem;
}

/* Navigation - BEM Block */
.navigation {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.navigation__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
}

.navigation__item {
    position: relative;
}

.navigation__link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-fast);
    display: block;
}

.navigation__link:hover {
    background: var(--northern-sky);
    color: var(--maple-red);
}

.navigation__link--active {
    background: var(--maple-red);
    color: var(--text-light);
}

/* Mobile Toggle - BEM Block */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

.mobile-toggle__line {
    width: 28px;
    height: 3px;
    background: var(--maple-red);
    border-radius: 3px;
    transition: var(--transition-normal);
}

.mobile-toggle--active .mobile-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle--active .mobile-toggle__line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle--active .mobile-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION - BEM Block
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(211, 47, 47, 0.05) 0%, 
        rgba(249, 168, 37, 0.05) 50%, 
        rgba(21, 101, 192, 0.05) 100%);
    background-size: 300% 300%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

.hero__content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--maple-red);
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.hero__disclaimer {
    display: inline-block;
    background: rgba(211, 47, 47, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--maple-red);
    margin-bottom: var(--spacing-lg);
    border: 2px solid var(--maple-red);
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   BUTTONS - BEM Block with Ripple Effect
   ======================================== */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.button:active::after {
    width: 300px;
    height: 300px;
}

.button--primary {
    background: var(--maple-red);
    color: var(--text-light);
    box-shadow: var(--shadow-medium);
}

.button--primary:hover {
    background: var(--autumn-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

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

.button--secondary:hover {
    background: var(--maple-red);
    color: var(--text-light);
}

.button--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.button--small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* ========================================
   SECTION - BEM Block
   ======================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section--dark {
    background: var(--text-primary);
    color: var(--text-light);
}

.section--gradient {
    background: linear-gradient(135deg, var(--maple-red), var(--autumn-orange));
    color: var(--text-light);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-sm);
}

.section__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.section--dark .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   GAME CARDS - BEM Block
   ======================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.game-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.game-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--northern-sky), var(--snow-white));
}

.game-card__content {
    padding: var(--spacing-md);
}

.game-card__title {
    font-size: 1.5rem;
    color: var(--maple-red);
    margin-bottom: var(--spacing-xs);
}

.game-card__category {
    display: inline-block;
    background: var(--northern-sky);
    color: var(--mountain-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.game-card__description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.game-card__footer {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   BENEFITS - BEM Block
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.benefit-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.benefit-card__title {
    font-size: 1.25rem;
    color: var(--maple-red);
    margin-bottom: var(--spacing-sm);
}

.benefit-card__description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   FOOTER - BEM Block
   ======================================== */
.footer {
    background: var(--text-primary);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer__section {
}

.footer__title {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer__list {
    list-style: none;
    padding: 0;
}

.footer__list-item {
    margin-bottom: var(--spacing-xs);
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--golden-harvest);
}

.footer__compliance {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.footer__compliance-logo {
    height: 40px;
    width: auto;
    background: white;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.footer__compliance-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(249, 168, 37, 0.5);
}

.footer__age-badge {
    display: inline-block;
    background: var(--maple-red);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.25rem;
    font-weight: 900;
    border: 3px solid white;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

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

.modal--active {
    display: flex;
}

.modal__content {
    background: white;
    border-radius: 16px;
    padding: var(--spacing-xl);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-heavy);
    animation: modalSlideIn 0.3s ease;
}

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

.modal__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.modal__title {
    font-size: 1.75rem;
    color: var(--maple-red);
}

.modal__body {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.modal__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.modal__warning {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    max-width: 400px;
    z-index: 9999;
    display: none;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cookie-consent--active {
    display: block;
}

.cookie-consent__text {
    margin-bottom: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.cookie-consent__buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .navigation__list {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-heavy);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-normal);
        pointer-events: none;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .navigation__list--active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .mobile-toggle {
        display: flex;
        margin-left: auto;
    }
    
    .hero {
        min-height: 80vh;
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-consent {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .game-card__footer {
        flex-direction: column;
    }
    
    .game-card__footer .button {
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

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

.hidden { display: none; }
.visible { display: block; }

