/* ============================================
   SUPER SOLDIER CASINO - MAIN STYLES
   Theme: Gold + Purple + Black (Casino)
   Architecture: CSS Grid + Flexbox
   Max Width: 1250px
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary-gold: #ffd700;
    --secondary-gold: #ffed4a;
    --accent-gold: #f7931e;
    --primary-purple: #6b46c1;
    --secondary-purple: #8b5cf6;
    --dark-purple: #4c1d95;
    --primary-black: #1a1a2e;
    --secondary-black: #16213e;
    --tertiary-black: #0f3460;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;

    /* Gradients */
    --gradient-gold: linear-gradient(45deg, var(--primary-gold), var(--secondary-gold));
    --gradient-purple: linear-gradient(45deg, var(--primary-purple), var(--secondary-purple));
    --gradient-dark: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 50%, var(--tertiary-black) 100%);

    /* Layout */
    --max-width: 1250px;
    --container-padding: clamp(1rem, 5vw, 2rem);
    --section-spacing: clamp(3rem, 8vw, 6rem);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Georgia', serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Shadows */
    --shadow-small: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 25px 45px rgba(0, 0, 0, 0.2);
    --shadow-gold: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1.5vw, 16px);
}

body {
    font-family: var(--font-primary);
    background: var(--gradient-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container & Layout System */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

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

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* Flexbox Utilities */
.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-column {
    flex-direction: column;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: bold;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-primary);
}

h4 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--text-dark);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: var(--gradient-purple);
    color: var(--text-primary);
    box-shadow: var(--shadow-medium);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(107, 70, 193, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary-gold);
    color: var(--text-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link.active {
    color: var(--primary-gold);
}

/* Mobile Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    transition: var(--transition-smooth);
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-large);
    transition: transform var(--transition-smooth);
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-secondary);
}

/* Games Section */
.game-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.game-image {
    width: 256px;
    height: 256px;
    border-radius: 15px;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.game-rating {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
}

.star {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 215, 0, 0.1);
}

.faq-question h4 {
    margin: 0;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--primary-gold);
    font-weight: bold;
    transition: transform var(--transition-smooth);
}

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

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: var(--text-secondary);
    margin: 0;
}

/* Testimonials */
.testimonial-rating {
    margin-bottom: 1rem;
    text-align: center;
}

.testimonial-author {
    margin-top: 1rem;
    text-align: center;
}

.testimonial-author strong {
    color: var(--primary-gold);
    display: block;
    margin-bottom: 0.25rem;
}

.testimonial-author small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Leaderboard */
.leaderboard {
    max-width: 600px;
    margin: 0 auto;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-smooth);
}

.leaderboard-item:hover {
    transform: translateX(10px);
}

.leaderboard-item.rank-1 {
    border: 2px solid var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
}

.leaderboard-item.rank-2 {
    border: 2px solid #c0c0c0;
    background: rgba(192, 192, 192, 0.1);
}

.leaderboard-item.rank-3 {
    border: 2px solid #cd7f32;
    background: rgba(205, 127, 50, 0.1);
}

.rank-badge {
    font-size: 2rem;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
    color: var(--primary-gold);
}

.player-info {
    flex: 1;
}

.player-name {
    display: block;
    font-weight: bold;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.player-score {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.player-level {
    background: var(--gradient-gold);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Disclaimer Section */
.disclaimer-section {
    background: rgba(255, 215, 0, 0.1);
    border-top: 2px solid var(--primary-gold);
    border-bottom: 2px solid var(--primary-gold);
    padding: 3rem 0;
}

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

.disclaimer-content h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.disclaimer-content p {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

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

.age-icon {
    background: var(--gradient-gold);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.support-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.support-info a {
    color: var(--primary-gold);
    text-decoration: none;
}

.support-info a:hover {
    text-decoration: underline;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.popup-overlay.hidden {
    display: none;
}

.popup-content {
    background: var(--gradient-dark);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 2rem;
    border: 2px solid var(--primary-gold);
    box-shadow: var(--shadow-large);
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup-content h3 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.popup-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 400px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-large);
    z-index: 1500;
}

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

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.cookie-link {
    color: var(--primary-gold);
    text-decoration: none;
    font-size: 0.8rem;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-black);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

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

.footer-section h4 {
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-gold);
}

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

/* Compliance Logos */
.compliance-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.compliance-logo {
    height: 60px;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.compliance-logo:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-black);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-large);
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .game-image {
        width: 200px;
        height: 200px;
    }

    .leaderboard-item {
        padding: 1rem;
    }

    .popup-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .cookie-popup {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --section-spacing: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .game-card {
        padding: 1rem;
    }

    .compliance-logos {
        gap: 1rem;
    }

    .compliance-logo {
        height: 40px;
    }

    .leaderboard-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem;
    }
}
