/* 
 * ============================================
 *  CASSIEPIA.COM - Cosmic Night Theme
 *  CSS: Atomic CSS + Pattern Backgrounds
 *  Typography: Elegant Serif (Playfair Display + Lato)
 *  Effect: Starfield Pattern Backgrounds
 *  Country: DE (Germany)
 *  Date: January 30, 2026
 * ============================================
 */

/* ========================================
   CSS VARIABLES - Cosmic Night Theme
   ======================================== */
:root {
    /* Cosmic Night Palette */
    --cosmos-purple: #6a0dad;
    --nebula-blue: #4169e1;
    --meteor-gold: #ffd700;
    --stardust-silver: #c0c0c0;
    --rocket-red: #dc143c;
    --void-black: #0a0a0a;
    --starlight-white: #f8f8ff;
    --space-dark: #1a1a2e;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1200px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
}

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

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--starlight-white);
    overflow-x: hidden !important;
    
    /* Cosmic Starfield Background */
    background: var(--void-black);
    background-image: 
        /* Stars layer 1 - small */
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent),
        radial-gradient(2px 2px at 15% 90%, white, transparent),
        /* Stars layer 2 - medium */
        radial-gradient(3px 3px at 40% 40%, rgba(255, 215, 0, 0.8), transparent),
        radial-gradient(3px 3px at 75% 25%, rgba(255, 215, 0, 0.8), transparent),
        /* Nebula effects */
        radial-gradient(circle at 30% 20%, rgba(106, 13, 173, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(65, 105, 225, 0.15) 0%, transparent 50%),
        /* Geometric pattern overlay */
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(106, 13, 173, 0.03) 35px, rgba(106, 13, 173, 0.03) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(65, 105, 225, 0.03) 35px, rgba(65, 105, 225, 0.03) 70px),
        /* Base gradient */
        linear-gradient(180deg, #0a0a1e 0%, #1a1a2e 50%, #0f0f1f 100%);
    background-size: 
        200% 200%,
        200% 200%,
        200% 200%,
        200% 200%,
        200% 200%,
        200% 200%,
        200% 200%,
        300% 300%,
        300% 300%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%,
        100% 100%;
    background-position: 
        0% 0%,
        50% 50%,
        100% 100%,
        80% 20%,
        20% 80%,
        60% 40%,
        40% 90%,
        0% 0%,
        0% 0%,
        0% 0%,
        0% 0%,
        0% 0%,
        0% 0%,
        0% 0%;
    background-attachment: fixed;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   UTILITY CLASSES - Atomic CSS
   ======================================== */

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }
.gap-2xl { gap: var(--space-2xl); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Spacing Utilities */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

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

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }
.p-3xl { padding: var(--space-3xl); }

.py-sm { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-md { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-lg { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-xl { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.py-3xl { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
.py-4xl { padding-top: var(--space-4xl); padding-bottom: var(--space-4xl); }

.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-lg { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-xl { padding-left: var(--space-xl); padding-right: var(--space-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-heading { font-family: var(--font-heading); }
.text-body { font-family: var(--font-body); }

.text-bold { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-medium { font-weight: 500; }
.text-normal { font-weight: 400; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-4xl { font-size: 2.5rem; }
.text-5xl { font-size: 3rem; }

/* Color Utilities */
.text-purple { color: var(--cosmos-purple); }
.text-blue { color: var(--nebula-blue); }
.text-gold { color: var(--meteor-gold); }
.text-silver { color: var(--stardust-silver); }
.text-white { color: var(--starlight-white); }

.bg-purple { background-color: var(--cosmos-purple); }
.bg-blue { background-color: var(--nebula-blue); }
.bg-gold { background-color: var(--meteor-gold); }
.bg-dark { background-color: var(--space-dark); }
.bg-white { background-color: white; }

/* Border & Shadow */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); }
.shadow-md { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.shadow-lg { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.shadow-glow { box-shadow: 0 0 20px rgba(106, 13, 173, 0.4); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none !important; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* ========================================
   MODALS & POPUPS
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 30, 0.97);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,248,255,0.98) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    max-width: 500px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(106, 13, 173, 0.5),
        0 0 100px rgba(65, 105, 225, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--cosmos-purple);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* ========================================
   BUTTONS - Flat Style
   ======================================== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--nebula-blue) 0%, #2952cc 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2952cc 0%, var(--nebula-blue) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--cosmos-purple) 0%, #5a0bad 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a0bad 0%, var(--cosmos-purple) 100%);
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--meteor-gold) 0%, #e6c200 100%);
    color: var(--void-black);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #ffed4e 0%, var(--meteor-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.btn-large {
    padding: 18px 48px;
    font-size: 1.125rem;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(135deg, rgba(10, 10, 30, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--meteor-gold);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.free-badge {
    background: linear-gradient(135deg, var(--rocket-red) 0%, #b01030 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.4);
}

/* Navigation */
.navigation-list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.navigation-link {
    color: var(--stardust-silver);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.navigation-link:hover,
.navigation-link.active {
    color: var(--meteor-gold);
    border-bottom-color: var(--meteor-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-sm);
}

.burger-line {
    width: 28px;
    height: 3px;
    background: var(--meteor-gold);
    transition: transform var(--transition-medium);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(106, 13, 173, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(65, 105, 225, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
    color: var(--meteor-gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
    color: var(--stardust-silver);
    position: relative;
    z-index: 1;
}

/* ========================================
   GAME CARDS
   ======================================== */
.game-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,248,255,0.95) 100%);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(106, 13, 173, 0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(106, 13, 173, 0.4);
    border-color: var(--meteor-gold);
}

.game-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

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

.game-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--cosmos-purple);
}

.game-description {
    color: #555;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

/* ========================================
   FEATURE CARDS
   ======================================== */
.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,248,255,0.95) 100%);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-medium);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(106, 13, 173, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(106, 13, 173, 0.3);
    border-color: var(--meteor-gold);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--cosmos-purple);
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(106, 13, 173, 0.1);
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--meteor-gold);
}

.faq-question {
    padding: var(--space-lg);
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--cosmos-purple);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(248, 248, 255, 0.5);
}

.faq-answer {
    padding: 0 var(--space-lg) var(--space-lg);
    color: #555;
    line-height: 1.8;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform var(--transition-medium);
    color: var(--meteor-gold);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: linear-gradient(135deg, var(--void-black) 0%, var(--space-dark) 100%);
    color: var(--stardust-silver);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
}

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

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--meteor-gold);
    margin-bottom: var(--space-lg);
}

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

.footer-link {
    display: block;
    color: var(--stardust-silver);
    padding: var(--space-sm) 0;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--meteor-gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-bottom {
    border-top: 2px solid rgba(106, 13, 173, 0.3);
    padding-top: var(--space-lg);
    text-align: center;
}

/* Compliance Logos */
.compliance-logos {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--space-md);
}

.compliance-logo {
    max-width: 100px;
    height: auto;
    background: white;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: transform var(--transition-fast);
    border: 1px solid #e0e0e0;
}

.compliance-logo:hover {
    transform: scale(1.05);
}

/* ========================================
   DISCLAIMER SECTION
   ======================================== */
.disclaimer-section {
    background: linear-gradient(135deg, var(--rocket-red) 0%, #b01030 100%);
    color: white;
    padding: var(--space-4xl) 0;
    margin-top: var(--space-4xl);
    position: relative;
    border-top: 3px solid var(--meteor-gold);
    border-bottom: 3px solid var(--meteor-gold);
}

.disclaimer-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
}

.disclaimer-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.badge-item {
    background: var(--void-black);
    color: white;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }
    
    .navigation-list {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: linear-gradient(135deg, rgba(10, 10, 30, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
        backdrop-filter: blur(10px);
        padding: var(--space-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-medium);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }
    
    .navigation-list.active {
        transform: translateX(0);
    }
    
    .navigation-link {
        padding: var(--space-md) 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .grid-cols-3,
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        min-height: 70vh;
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .modal-content {
        padding: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }
}
