/*
    Theme: Neon Edge (v2.0)
    Author: Gemini
    Date: September 3, 2025
*/

/* === Root Variables & Global Styles === */
:root {
    --color-background: #0D0D1A;
    --color-surface: #1A1A2E;
    --color-primary: #00E5FF; /* Cyan */
    --color-accent: #F000FF;  /* Magenta */
    --color-text-light: #F0F0F5;
    --color-text-base: #A0A0C0;
    --color-border: rgba(0, 229, 255, 0.2);
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Poppins', sans-serif;
    --border-radius: 12px;
    --transition-speed: 0.3s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-base);
    line-height: 1.7;
    overflow-x: hidden;
}
.wrapper { width: 90%; max-width: 1200px; margin: 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { color: var(--color-text-light); }

/* === Typography === */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
}
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

/* === Buttons === */
.btn-primary, .btn-secondary, .btn-card {
    display: inline-block; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700;
    border: 2px solid transparent; transition: all var(--transition-speed) ease; cursor: pointer; text-align: center;
}
.btn-primary {
    background-color: var(--color-primary); color: var(--color-background);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 229, 255, 0.5); }
.btn-primary:disabled { background: #555; color: #999; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary { background-color: transparent; color: var(--color-text-light); border-color: var(--color-border); }
.btn-secondary:hover { background-color: var(--color-surface); border-color: var(--color-primary); }

/* === Header === */
.header-main {
    position: sticky; top: 0; z-index: 1000; padding: 1rem 0;
    background: rgba(13, 13, 26, 0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}
.header-box { display: flex; justify-content: space-between; align-items: center; }
.header-logo { display: flex; align-items: center; gap: 0.75rem; color: var(--color-text-light); font-size: 1.5rem; font-family: var(--font-heading); }
.header-logo svg { color: var(--color-primary); }
.nav-items { list-style: none; display: flex; align-items: center; gap: 2.5rem; }
.nav-item a { color: var(--color-text-base); font-weight: 600; padding: 0.5rem; position: relative; }
.nav-item a:hover { color: var(--color-text-light); }
.menu-toggle { display: none; background: none; border: none; color: var(--color-text-light); font-size: 2rem; cursor: pointer; z-index: 1002; }
.header-cta .btn-secondary { padding: 0.6rem 1.5rem; font-size: 0.9rem; }


/* === Hero Section === */
.hero-section { position: relative; min-height: 80vh; display: flex; align-items: center; padding: 6rem 0; overflow: hidden; }
.hero-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://storage.googleapis.com/gemini-generative-ai-public/foleyc_1715859551/abstract-casino-bg-dark.jpg');
    background-size: cover; background-position: center;
    transform: scale(1.1);
}
.hero-particles {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(45deg, rgba(240, 0, 255, 0.3) 0%, rgba(0, 229, 255, 0) 50%, rgba(0, 229, 255, 0.3) 100%);
    background-size: 200% 200%;
    animation: gradient-pan 15s ease infinite;
    z-index: 1;
}
@keyframes gradient-pan { 0% {background-position: 0% 50%;} 50% {background-position: 100% 50%;} 100% {background-position: 0% 50%;} }
.hero-content { position: relative; z-index: 2; }
.hero-text { max-width: 600px; }
.hero-text p { margin: 1.5rem 0 2.5rem; font-size: 1.2rem; }

/* === Operator Cards Section === */
.operators-section { padding: 5rem 0; }
.operators-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.operator-card {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.4));
    backdrop-filter: blur(10px); border: 1px solid var(--color-border);
    border-radius: var(--border-radius); padding: 1.5rem; display: flex; flex-direction: column;
    text-align: center; transition: all var(--transition-speed) ease;
}
.operator-card:hover { transform: translateY(-10px); box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2); border-color: var(--color-primary); }
.card-header { height: 80px; display: grid; place-items: center; margin-bottom: 1rem; }
.card-header img { max-height: 50px; width: auto; }
.card-body { flex-grow: 1; }
.bonus-title { margin-bottom: 1rem; color: var(--color-primary); }
.bonus-features { list-style: none; padding: 0; margin-bottom: 1.5rem; font-size: 0.9rem; }
.btn-card { width: 100%; background: var(--color-surface); border: 2px solid var(--color-border); color: var(--color-text-light); }
.operator-card:hover .btn-card { background: var(--color-primary); color: var(--color-background); border-color: var(--color-primary); }
.bonus-details { font-size: 0.75rem; opacity: 0.7; margin-top: 0.75rem; }

/* === About Section === */
.about-section { padding: 5rem 0; background: var(--color-surface); }
.about-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; align-items: center; }
.about-image img { border-radius: var(--border-radius); }
.about-text h2 { text-align: left; margin-bottom: 1.5rem; }
.about-text strong { color: var(--color-primary); }

/* === FAQ Section === */
.faq-section { padding: 5rem 0; }
.faq-content { max-width: 800px; margin: 0 auto; }
.faq-accordion { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
    width: 100%; background: none; border: none; display: flex;
    justify-content: space-between; align-items: center;
    padding: 1.5rem 0; font-size: 1.1rem; font-weight: 600;
    color: var(--color-text-light); cursor: pointer; transition: color var(--transition-speed) ease;
}
.faq-question:hover { color: var(--color-primary); }
.faq-icon { font-size: 1.5rem; transition: transform var(--transition-speed) ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 0 1.5rem; }
.faq-item.open .faq-question { color: var(--color-primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* === Responsible Gaming Section === */
.responsible-gaming-section { background: #080810; padding: 4rem 0; text-align: center; }
.responsible-gaming-container h2 { margin-bottom: 1.5rem; }
.responsible-gaming-container p { max-width: 700px; margin: 0 auto 3rem; }
.responsible-gaming-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem; }
.responsible-gaming-logos a { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--color-text-base); opacity: 0.7; }
.responsible-gaming-logos a:hover { opacity: 1; color: var(--color-primary); }
.responsible-gaming-logos img { max-height: 40px; }
.responsible-gaming-logos span { font-size: 0.8rem; font-weight: 600; }

/* === Footer === */
.page-footer { background: var(--color-surface); padding-top: 4rem; border-top: 1px solid var(--color-border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-col h4 { color: var(--color-text-light); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-logo { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 1rem; display: block; }
.footer-bottom { text-align: center; padding: 2rem 0; margin-top: 3rem; border-top: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.9rem; opacity: 0.6; }
.footer-bottom-logos { display: flex; gap: 1rem; align-items: center; }
.footer-bottom-logos img { max-height: 25px; opacity: 0.6; }

/* === Popups === */
.cookie-popup {
    position: fixed; bottom: -100%; left: 0; right: 0; z-index: 1500;
    margin: 1rem; max-width: 500px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7));
    backdrop-filter: blur(10px); border: 1px solid var(--color-border);
    padding: 1.5rem; border-radius: var(--border-radius);
    display: flex; align-items: center; gap: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: bottom 0.5s ease-in-out;
}
.cookie-popup.show { bottom: 0; }
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13, 13, 26, 0.9);
    backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center;
    z-index: 2000; visibility: hidden; opacity: 0; transition: all 0.4s ease;
}
.popup-overlay.show { visibility: visible; opacity: 1; }
.popup-content {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-radius: var(--border-radius); width: 90%; max-width: 450px;
    padding: 2.5rem; text-align: center;
    animation: popup-scale 0.4s ease forwards; opacity: 0;
}
.popup-overlay.show .popup-content { opacity: 1; }
@keyframes popup-scale { from { transform: scale(0.8); } to { transform: scale(1); } }
.popup-content h2 { margin-bottom: 1rem; }
.terms-label { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9rem; margin: 1.5rem 0; cursor: pointer; }
.popup-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* === Animations & Responsive Design === */
.fade-in { animation: fadeIn 1s ease-out forwards; opacity: 0; }
.fade-in-delay { animation: fadeIn 1s 0.3s ease-out forwards; opacity: 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal-on-scroll.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .header-nav, .header-cta { display: none; }
    .menu-toggle { display: block; }
    .nav-items {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--color-background); flex-direction: column; display: flex;
        justify-content: center; transition: right var(--transition-speed) ease-in-out;
        z-index: 1001;
    }
    .nav-items.show { right: 0; }
    .nav-item a { font-size: 1.5rem; }
    .about-container { grid-template-columns: 1fr; text-align: center; }
    .about-text h2 { text-align: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
}
/* Contrast improvement suggestion: darker text for body copy */
:root {
  --color-text-base: #C8CCD6; /* lighter for improved contrast */
}

/* Focus styles for keyboard users */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Make interactive elements clearly keyboard-focusable */
a, button, .btn-card {
  -webkit-tap-highlight-color: transparent;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-particles,
  .operator-card:hover,
  .fade-in,
  .fade-in-delay,
  .reveal-on-scroll {
    animation: none !important;
    transition: none !important;
  }
}

/* Cookie & popup accessibility (ensure high z-index for dialogs) */
.popup-overlay, .cookie-popup { z-index: 99999; }

/* Improve small-screen spacing for header */
@media (max-width: 480px) {
  .wrapper { width: 94%; }
}


