/* ============================================
   CHECKERS MASTER - WHITE SITE #2
   
   CSS ARCHITECTURE: SMACSS (Scalable & Modular)
   PALETTE: Classic Board Game (Black, White, Gold)
   EFFECT: Glassmorphism
   TYPOGRAPHY: Elegant (Playfair Display + Lato)
   BUTTONS: Flat Style
   ============================================ */

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

/* ============================================
   CSS VARIABLES - CLASSIC BOARD GAME
   ============================================ */
:root {
    /* Board Game Colors */
    --chess-black: #1a1a1a;
    --chess-white: #f5f5f5;
    --king-gold: #d4af37;
    --board-brown: #8b4513;
    --marble-gray: #e0e0e0;
    --crown-silver: #c0c0c0;
    
    /* Backgrounds */
    --bg-dark: #0f0f0f;
    --bg-light: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.1);
    
    /* Text */
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Layout */
    --header-height: 70px;
}

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

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ============================================
   LAYOUT - Header
   ============================================ */
.layout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.layout-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   MODULE - Logo
   ============================================ */
.module-logo {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--king-gold);
    text-decoration: none;
    letter-spacing: 2px;
}

/* ============================================
   MODULE - Navigation
   ============================================ */
.module-nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.module-nav__link {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.module-nav__link:hover,
.module-nav__link--active {
    color: var(--king-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Mobile Toggle */
.module-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
    margin-left: auto;
}

.module-mobile-toggle__bar {
    width: 25px;
    height: 3px;
    background: var(--king-gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

@media (max-width: 768px) {
    .module-mobile-toggle {
        display: flex;
    }
    
    .module-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(15, 15, 15, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .module-nav.is-active {
        transform: translateX(0);
    }
    
    .module-nav__link {
        display: block;
        padding: 1rem;
        text-align: center;
    }
}

/* ============================================
   LAYOUT - Hero
   ============================================ */
.layout-hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 3rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    background-attachment: scroll;
    display: flex;
    align-items: center;
    position: relative;
}

.layout-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(212, 175, 55, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.05) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.05) 75%);
    background-size: 50px 50px;
    background-position: 0 0, 0 25px, 25px -25px, -25px 0px;
    opacity: 0.3;
}

.layout-hero__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* ============================================
   MODULE - Typography
   ============================================ */
.module-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--king-gold);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    line-height: 1.2;
}

.module-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.module-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    color: var(--king-gold);
    margin-bottom: 3rem;
    letter-spacing: 2px;
}

/* ============================================
   MODULE - Glass Card (Glassmorphism)
   ============================================ */
.module-glass-card {
    max-width: 500px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.module-glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.3);
}

.module-glass-card__image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

.module-glass-card__title {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--king-gold);
    margin-bottom: 1rem;
}

.module-glass-card__text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================
   MODULE - Buttons (Flat Style)
   ============================================ */
.module-btn {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.module-btn--primary {
    background: var(--king-gold);
    color: var(--chess-black);
}

.module-btn--primary:hover {
    background: #e5bf47;
    transform: scale(1.05);
}

.module-btn--secondary {
    background: transparent;
    color: var(--king-gold);
    border: 2px solid var(--king-gold);
}

.module-btn--secondary:hover {
    background: var(--king-gold);
    color: var(--chess-black);
}

/* ============================================
   LAYOUT - Section
   ============================================ */
.layout-section {
    padding: 5rem 2rem;
}

.layout-section--dark {
    background: var(--bg-dark);
}

.layout-section--light {
    background: #1a1a1a;
}

/* ============================================
   MODULE - Grid
   ============================================ */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Feature Card */
.module-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.module-feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.module-feature-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.module-feature-card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--king-gold);
    margin-bottom: 1rem;
}

.module-feature-card__text {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   MODULE - FAQ
   ============================================ */
.module-faq {
    max-width: 900px;
    margin: 0 auto;
}

.module-faq__item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.module-faq__question {
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-align: left;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-faq__icon {
    font-size: 1.5rem;
    color: var(--king-gold);
    transition: transform 0.3s ease;
}

.module-faq__item.is-active .module-faq__icon {
    transform: rotate(180deg);
}

.module-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.module-faq__item.is-active .module-faq__answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem;
}

.module-faq__answer p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   LAYOUT - Footer
   ============================================ */
.layout-footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 2rem;
}

.layout-footer__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.layout-footer__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--king-gold);
    margin-bottom: 1rem;
}

.layout-footer__links {
    list-style: none;
}

.layout-footer__link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.layout-footer__link:hover {
    color: var(--king-gold);
    padding-left: 0.5rem;
}

.layout-footer__copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* ============================================
   MODULE - Cookie Banner
   ============================================ */
.module-cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.module-cookie-banner.is-visible {
    display: block;
    animation: slideIn 0.5s ease;
}

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

.module-cookie-banner__text {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .module-cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .layout-hero {
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .module-grid {
        grid-template-columns: 1fr;
    }
    
    .layout-footer__grid {
        grid-template-columns: 1fr;
    }
}

