/* 
========================================
   Spark Picnic Avro - Global Styles
========================================
*/

:root {
    /* Color System */
    --bg-primary: #0B0F1A;
    --bg-secondary: #141A2E;
    --surface: #1C2440;
    --gold: #F6C453;
    --sand: #D8B06A;
    --mystic-purple: #7C4DFF;
    --starlight: #F8F5FF;
    --text-primary: #F9FAFF;
    --text-secondary: #B7C0D8;
    --muted: #7D86A6;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;

    /* Spacing */
    --space-desktop: 100px;
    --space-tablet: 70px;
    --space-mobile: 50px;
    --max-width: 1280px;

    /* Transitions */
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Background Starry Magic */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--starlight), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, var(--starlight), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, var(--starlight), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, var(--starlight), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, var(--starlight), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, var(--starlight), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--sand);
    transition: var(--transition);
}

a:hover {
    color: var(--gold);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(246, 196, 83, 0.2);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    outline: none;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    text-align: center;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--sand));
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(246, 196, 83, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FAD67B, var(--gold));
    box-shadow: 0 6px 20px rgba(246, 196, 83, 0.5);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(246, 196, 83, 0.05);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-secondary:hover {
    background: rgba(246, 196, 83, 0.15);
    color: var(--gold);
    box-shadow: 0 0 15px rgba(246, 196, 83, 0.2);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Security Banner */
.security-banner {
    background-color: var(--bg-primary);
    color: var(--muted);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(246, 196, 83, 0.2);
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.5;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(246, 196, 83, 0.2);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo Overrides */
.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(246, 196, 83, 0.3));
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px rgba(246, 196, 83, 0.5);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px 0;
    border-bottom: 1px solid var(--gold);
    text-align: center;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu nav a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
}

/* Sections */
section {
    padding: var(--space-desktop) 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(11, 15, 26, 0.3), var(--bg-primary)), 
                url('images/arabian-nights-desert-starry-sky-bg.png') center/cover no-repeat;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 0 30px rgba(246, 196, 83, 0.3);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--starlight);
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CSS Lanterns */
.lantern {
    position: absolute;
    width: 15px;
    height: 20px;
    background: var(--gold);
    border-radius: 5px;
    box-shadow: 0 0 20px var(--gold), 0 0 40px var(--sand);
    opacity: 0.8;
    z-index: 5;
    animation: float 6s infinite ease-in-out, pulse 3s infinite ease-in-out;
}

.lantern::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 4px;
    width: 7px;
    height: 5px;
    background: #FFD700;
    border-radius: 2px;
}

.lantern-1 { top: 20%; left: 15%; animation-delay: 0s; }
.lantern-2 { top: 50%; right: 10%; animation-delay: 1.5s; width: 10px; height: 15px; }
.lantern-3 { bottom: 30%; left: 25%; animation-delay: 3s; width: 20px; height: 25px; }
.lantern-4 { top: 30%; right: 25%; animation-delay: 4.5s; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px var(--gold); opacity: 0.7; }
    50% { box-shadow: 0 0 35px var(--gold), 0 0 50px var(--sand); opacity: 1; }
    100% { box-shadow: 0 0 15px var(--gold); opacity: 0.7; }
}

/* Game Section */
.game-section {
    background-color: var(--bg-secondary);
    background-image: radial-gradient(circle at center, var(--surface) 0%, var(--bg-secondary) 100%);
}

.game-wrapper {
    width: 80%;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    background-color: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(124, 77, 255, 0.1);
    position: relative;
    z-index: 10;
}

.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    display: block;
}

/* Rewards Section */
.rewards-section {
    background: var(--bg-primary);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.reward-card {
    background: var(--surface);
    border: 1px solid rgba(246, 196, 83, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.reward-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: var(--transition);
}

.reward-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 20px rgba(124, 77, 255, 0.2);
    border-color: rgba(246, 196, 83, 0.3);
}

.reward-card:hover::before {
    opacity: 1;
}

.reward-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 2px solid var(--gold);
    padding: 5px;
}

.reward-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.reward-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(246, 196, 83, 0.1);
    border-bottom: 1px solid rgba(246, 196, 83, 0.1);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.decorative-img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(246, 196, 83, 0.3);
}

/* FAQ Section */
.faq-section {
    background: var(--bg-primary);
}

.faq-accordion {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

details {
    background: var(--surface);
    border: 1px solid rgba(246, 196, 83, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

summary {
    padding: 20px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--sand);
    transition: var(--transition);
}

details[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(246, 196, 83, 0.1);
    margin-top: 10px;
    padding-top: 20px;
}

/* Footer */
.site-footer {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    border-top: 2px solid var(--gold);
    padding: 60px 0 20px;
    position: relative;
}

/* Arabic-inspired geometric overlay via CSS */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(30deg, rgba(246, 196, 83, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(246, 196, 83, 0.03) 87.5%, rgba(246, 196, 83, 0.03)),
        linear-gradient(150deg, rgba(246, 196, 83, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(246, 196, 83, 0.03) 87.5%, rgba(246, 196, 83, 0.03)),
        linear-gradient(30deg, rgba(246, 196, 83, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(246, 196, 83, 0.03) 87.5%, rgba(246, 196, 83, 0.03)),
        linear-gradient(150deg, rgba(246, 196, 83, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(246, 196, 83, 0.03) 87.5%, rgba(246, 196, 83, 0.03)),
        linear-gradient(60deg, rgba(246, 196, 83, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(246, 196, 83, 0.03) 75%, rgba(246, 196, 83, 0.03)),
        linear-gradient(60deg, rgba(246, 196, 83, 0.03) 25%, transparent 25.5%, transparent 75%, rgba(246, 196, 83, 0.03) 75%, rgba(246, 196, 83, 0.03));
    background-size: 40px 70px;
    background-position: 0 0, 0 0, 20px 35px, 20px 35px, 0 0, 20px 35px;
    opacity: 0.5;
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.footer-logo {
    height: 55px;
    width: auto;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(246, 196, 83, 0.2));
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 400px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--starlight);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--gold);
}

.email-link {
    color: var(--sand);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
    padding-top: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 20px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

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

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Page Headers for Legal Pages (Kept for fallback/consistency if needed) */
.page-header {
    background: linear-gradient(to bottom, rgba(11, 15, 26, 0.8), var(--bg-primary)),
                url('images/arabian-nights-desert-starry-sky-bg.png') center/cover no-repeat;
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.content-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(246, 196, 83, 0.1);
}

.content-wrapper h2 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
    color: var(--gold);
}

.content-wrapper h3 {
    margin: 20px 0 10px;
    font-size: 1.2rem;
    color: var(--starlight);
}

.content-wrapper p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.content-wrapper ul {
    margin-bottom: 15px;
    padding-left: 20px;
    list-style: disc;
    color: var(--text-secondary);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--surface);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid rgba(246, 196, 83, 0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-info h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.info-card {
    background: rgba(11, 15, 26, 0.5);
    padding: 20px;
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--gold);
}

.info-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--starlight);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-primary);
    border: 1px solid rgba(246, 196, 83, 0.2);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(246, 196, 83, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    section { padding: var(--space-tablet) 0; }
    .game-wrapper { width: 90%; }
    .about-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: var(--space-mobile) 0; }
    
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    
    .brand-logo { height: 36px; }
    
    .game-wrapper { 
        width: 100%; 
        border-radius: 0;
    }
    
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn, .contact-form .btn { width: 100%; }
    
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .footer-container { grid-template-columns: 1fr; text-align: center; }
    .footer-logo { margin: 0 auto 15px; }
    
    .cookie-banner { bottom: 0; left: 0; right: 0; border-radius: 0; }
}