/*
 * boekenworm.de - Social Casino Platform
 * CSS Architecture: BEM (Block Element Modifier)
 * Visual Effect: Neumorphism (soft shadows, embossed cards)
 * Typography: Geometric (Montserrat + Poppins)
 * Color Palette: German Esports Theme
 * Button Style: Gradient Fill
 * Project: #43 - boekenworm.de 43-de
 */

/* ===========================
   COLOR PALETTE: GERMAN ESPORTS
   =========================== */
:root {
    /* German Esports Colors */
    --esport-black: #0a0a0a;
    --cyber-purple: #9d00ff;
    --neon-green: #00ff88;
    --gaming-blue: #1e90ff;
    --digital-gray: #2a2a2a;
    --tech-silver: #c0c0c0;
    --esport-white: #f5f5f5;
    --tournament-gold: #ffd700;
    --team-red: #ff1744;
    --energy-cyan: #00e5ff;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Borders & Shadows */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    
    /* Neumorphism Shadows */
    --shadow-neumorphic-light: 8px 8px 16px rgba(0, 0, 0, 0.3), -8px -8px 16px rgba(255, 255, 255, 0.05);
    --shadow-neumorphic-dark: inset 6px 6px 12px rgba(0, 0, 0, 0.5), inset -6px -6px 12px rgba(255, 255, 255, 0.03);
    --shadow-hover: 12px 12px 24px rgba(157, 0, 255, 0.3), -12px -12px 24px rgba(0, 229, 255, 0.1);
    
    /* Layout */
    --header-height: 70px;
    --max-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-fast: all 0.2s ease;
}

/* ===========================
   MOBILE RESPONSIVE SPACING
   =========================== */
@media (max-width: 600px) {
    :root {
        --header-height: 60px;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-xxl: 2.5rem;
    }
}

/* ===========================
   RESET & 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: linear-gradient(135deg, var(--esport-black) 0%, var(--digital-gray) 100%);
    color: var(--esport-white);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(157, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(30, 144, 255, 0.08) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

main, section, header, footer {
    position: relative;
    z-index: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    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.25rem, 3vw, 1.75rem); }

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

a {
    color: var(--neon-green);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--energy-cyan);
}

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

/* ===========================
   BUTTONS (Gradient Fill Style)
   =========================== */
.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--energy-cyan), var(--gaming-blue));
    z-index: -1;
    transition: left 0.4s ease;
}

.button:hover::before {
    left: 100%;
}

.button--primary {
    background: linear-gradient(135deg, var(--cyber-purple), var(--gaming-blue));
    color: var(--esport-white);
    box-shadow: var(--shadow-neumorphic-light);
}

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

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

.button--secondary:hover {
    background: var(--neon-green);
    color: var(--esport-black);
}

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

.button--small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .button--large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* ===========================
   HEADER (BEM Structure)
   =========================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--digital-gray);
    box-shadow: var(--shadow-neumorphic-light);
    z-index: 1000;
}

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

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--esport-white);
    text-decoration: none;
}

.header__logo-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 8px var(--neon-green));
}

.header__logo-text {
    background: linear-gradient(135deg, var(--neon-green), var(--energy-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header__logo-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--team-red), var(--cyber-purple));
    color: var(--esport-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header__nav {
    display: flex;
    align-items: center;
}

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

.header__nav-item {
    margin: 0;
}

.header__nav-link {
    color: var(--tech-silver);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.header__nav-link:hover,
.header__nav-link--active {
    color: var(--neon-green);
    background: rgba(0, 255, 136, 0.1);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.header__burger-line {
    width: 28px;
    height: 3px;
    background: var(--neon-green);
    border-radius: 2px;
    transition: var(--transition-fast);
}

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

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

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

/* Mobile Menu */
@media (max-width: 768px) {
    .header__burger {
        display: flex;
    }
    
    .header__nav {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        margin: 0 auto;
        width: 90%;
        max-width: 400px;
        background: var(--digital-gray);
        box-shadow: var(--shadow-neumorphic-light);
        border-radius: var(--border-radius);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .header__nav.active {
        max-height: 500px;
    }
    
    .header__nav-list {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-md);
    }
    
    .header__nav-link {
        display: block;
        padding: var(--spacing-sm);
        text-align: center;
    }
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--spacing-xxl)) var(--spacing-md) var(--spacing-xxl);
    background: linear-gradient(135deg, var(--esport-black) 0%, var(--digital-gray) 100%);
    position: relative;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, 
        rgba(157, 0, 255, 0.03) 40px, rgba(157, 0, 255, 0.03) 80px);
    pointer-events: none;
}

.hero__container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero__title {
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--neon-green), var(--energy-cyan), var(--cyber-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--neon-green);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.hero__description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--tech-silver);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.hero__disclaimer {
    font-size: 0.9rem;
    color: var(--tournament-gold);
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 215, 0, 0.1);
    border-radius: var(--border-radius-sm);
    display: inline-block;
}

@media (max-width: 768px) {
    .hero__buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero__buttons .button {
        min-width: 200px;
    }
}

/* ===========================
   BENEFITS SECTION (Neumorphism Cards)
   =========================== */
.benefits {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--esport-black);
}

.benefits__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.benefits__title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--esport-white);
}

.benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background: var(--digital-gray);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-neumorphic-light);
}

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

.benefit-card__title {
    color: var(--neon-green);
    margin-bottom: var(--spacing-sm);
}

.benefit-card__text {
    color: var(--tech-silver);
    line-height: 1.7;
}

/* ===========================
   GAMES SECTION (Neumorphism Cards)
   =========================== */
.games {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--digital-gray);
}

.games__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.games__title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.games__subtitle {
    text-align: center;
    color: var(--tech-silver);
    margin-bottom: var(--spacing-xl);
    font-size: 1.1rem;
}

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

.game-card {
    background: var(--esport-black);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-neumorphic-light);
}

.game-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.game-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

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

.game-card__title {
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.game-card__description {
    color: var(--tech-silver);
    opacity: 0.85;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

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

.game-card__tag {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-card__tag--free {
    background: linear-gradient(135deg, var(--neon-green), var(--energy-cyan));
    border: none;
    color: var(--esport-black);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

@media (max-width: 480px) {
    .game-card__buttons {
        flex-direction: column;
    }
    
    .game-card__buttons .button {
        width: 100%;
    }
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--esport-black);
}

.testimonials__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--digital-gray);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-neumorphic-light);
}

.testimonial-card__rating {
    color: var(--tournament-gold);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-card__text {
    color: var(--tech-silver);
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.testimonial-card__author {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-sm);
}

.testimonial-card__name {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-card__location {
    color: var(--tech-silver);
    font-size: 0.9rem;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq {
    padding: var(--spacing-xxl) var(--spacing-md);
    background: var(--digital-gray);
}

.faq__container {
    max-width: 900px;
    margin: 0 auto;
}

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

.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--esport-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-neumorphic-light);
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    color: var(--esport-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--neon-green);
}

.faq-item__icon {
    font-size: 1.5rem;
    color: var(--neon-green);
    transition: var(--transition-fast);
}

.faq-item.active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer p {
    padding: 0 var(--spacing-lg) var(--spacing-md);
    color: var(--tech-silver);
    line-height: 1.7;
}

/* ===========================
   DISCLAIMER SECTION
   =========================== */
.disclaimer {
    padding: var(--spacing-lg) var(--spacing-md);
    background: linear-gradient(135deg, var(--team-red), var(--cyber-purple));
    border-top: 3px solid var(--neon-green);
    border-bottom: 3px solid var(--neon-green);
}

.disclaimer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.disclaimer__content {
    text-align: center;
}

.disclaimer__text {
    color: var(--esport-white);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

.disclaimer__text a {
    color: var(--tournament-gold);
    text-decoration: underline;
    font-weight: 600;
}

.disclaimer__text a:hover {
    color: var(--esport-white);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: var(--esport-black);
    color: var(--tech-silver);
    padding: var(--spacing-xxl) var(--spacing-md) var(--spacing-lg);
}

.footer__container {
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.footer__section-title {
    color: var(--neon-green);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.footer__section-heading {
    color: var(--energy-cyan);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.footer__section-text {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.footer__section-text--small {
    font-size: 0.9rem;
    color: var(--tech-silver);
}

.footer__links {
    list-style: none;
}

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

.footer__link {
    color: var(--tech-silver);
    transition: var(--transition-fast);
}

.footer__link:hover {
    color: var(--neon-green);
    padding-left: 5px;
}

.footer__section--compliance {
    text-align: center;
}

.footer__age-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--team-red), var(--cyber-purple));
    color: var(--esport-white);
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-md);
}

.footer__compliance-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer__compliance-link {
    display: inline-block;
}

.footer__compliance-logo {
    height: 40px;
    width: auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.footer__compliance-logo:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

.footer__help-text {
    font-size: 0.9rem;
    color: var(--tech-silver);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer__copyright {
    font-size: 0.9rem;
    color: var(--tech-silver);
}

.footer__copyright .footer__link {
    color: var(--neon-green);
    font-weight: 600;
}

/* ===========================
   MODALS
   =========================== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-md);
}

.modal.hidden {
    display: none;
}

.modal__content {
    background: var(--digital-gray);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-neumorphic-light);
}

.modal__header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal__title {
    color: var(--esport-white);
    margin: 0;
}

.modal__body {
    padding: var(--spacing-lg);
}

.modal__text {
    color: var(--tech-silver);
    margin-bottom: var(--spacing-md);
}

.modal__question {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.modal__buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

@media (max-width: 480px) {
    .modal__buttons {
        flex-direction: column;
    }
}

.modal__warning {
    font-size: 0.9rem;
    color: var(--tournament-gold);
    font-style: italic;
}

/* Cookie Consent */
.cookie {
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--digital-gray);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-neumorphic-light);
    max-width: 400px;
    z-index: 9998;
}

.cookie.hidden {
    display: none;
}

.cookie__text {
    color: var(--tech-silver);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

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

@media (max-width: 600px) {
    .cookie {
        left: var(--spacing-md);
        right: var(--spacing-md);
        bottom: var(--spacing-sm);
        max-width: none;
    }
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.hidden {
    display: none !important;
}

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

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

