/* ===========================
   CSS Variables & Root Styles
   =========================== */
:root {
    /* Color Palette - Technologic Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b8b8c0;
    --accent-pink: #ff0099;
    --accent-cyan: #00ffff;
    --accent-purple: #7d00ff;
    --gradient-primary: linear-gradient(135deg, #ff0099, #00ffff, #7d00ff);
    --gradient-hover: linear-gradient(135deg, #7d00ff, #ff0099, #00ffff);
    --border-color: rgba(255, 0, 153, 0.3);
    --shadow-neon: 0 0 20px rgba(0, 255, 255, 0.5);
    --shadow-pink: 0 0 30px rgba(255, 0, 153, 0.5);
}

/* ===========================
   General Styles
   =========================== */
body {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden !important;
}

/* Neon Background Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 0, 153, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(125, 0, 255, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* ===========================
   Header & Navigation
   =========================== */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

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

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--gradient-primary);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pink);
}

.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    transition: left 0.3s ease;
}

.hero-button:hover::before {
    left: 0;
}

.hero-button span {
    position: relative;
    z-index: 1;
}

/* Hero Visual Elements */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.neon-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

.neon-circle:nth-child(1) {
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.neon-circle:nth-child(2) {
    width: 200px;
    height: 200px;
    background: var(--accent-cyan);
    top: 60%;
    right: 10%;
    animation-delay: 1.5s;
}

.neon-circle:nth-child(3) {
    width: 250px;
    height: 250px;
    background: var(--accent-purple);
    bottom: 10%;
    left: 50%;
    animation-delay: 3s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

/* ===========================
   Advantages Section
   =========================== */
.advantages {
    background: var(--bg-secondary);
    position: relative;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

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

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

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.advantage-card:nth-child(2) .advantage-icon {
    animation-delay: 0.2s;
}

.advantage-card:nth-child(3) .advantage-icon {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.advantage-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   Leaderboard Section
   =========================== */
.leaderboard {
    padding: 5rem 1rem;
}

.bookmaker-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
}

.bookmaker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    display: grid;
    grid-template-areas: 
        "logo logo"
        "bonus rating"
        "button button";
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bookmaker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.bookmaker-card:hover::before {
    left: 100%;
}

.bookmaker-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-neon);
}

.bookmaker-logo {
    grid-area: logo;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    position: relative;
}

.bookmaker-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
}

.bookmaker-logo::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--gradient-primary);
    border-radius: 15px;
    opacity: 0.3;
    z-index: -1;
    filter: blur(10px);
}

.bookmaker-bonus {
    grid-area: bonus;
}

.bookmaker-bonus h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.bonus-amount {
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

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

.bookmaker-rating {
    grid-area: rating;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.bookmaker-button {
    grid-area: button;
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--gradient-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bookmaker-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pink);
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
    background: var(--bg-secondary);
    padding: 5rem 1rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    box-shadow: var(--shadow-neon);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-card);
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

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

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent-cyan);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--bg-card);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   Disclaimer Section
   =========================== */
.disclaimer {
    background: rgba(255, 0, 153, 0.1);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1rem;
}

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

.disclaimer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-pink);
}

.disclaimer-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.disclaimer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.disclaimer-links a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.disclaimer-links a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

/* ===========================
   Footer
   =========================== */
footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1rem 2rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logos img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logos a:hover img {
    opacity: 1;
    transform: scale(1.1);
}

.age-restriction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-pink);
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--accent-pink);
    position: relative;
}

.age-restriction::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--accent-pink);
    border-radius: 50%;
    opacity: 0.3;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===========================
   Popups
   =========================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
}

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

.popup-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-neon);
}

.popup-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0.5;
    z-index: -1;
    filter: blur(20px);
}

.popup-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.popup-content button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-buttons button:first-child {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.popup-buttons button:last-child {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.popup-content button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pink);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-neon);
    z-index: 1000;
    animation: slideIn 0.5s ease;
}

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

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.cookie-consent a {
    color: var(--accent-cyan);
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

.cookie-consent button {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ===========================
   Media Queries
   =========================== */
@media (min-width: 768px) {
    .bookmaker-card {
        grid-template-areas: 
            "logo bonus rating button";
        grid-template-columns: 150px 1fr auto auto;
    }
    
    .footer-logos {
        gap: 3rem;
    }
    
    .footer-logos img {
        height: 50px;
    }
}

@media (min-width: 900px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        min-height: calc(100vh - 80px);
    }
}

/* ===========================
   Accessibility & Performance
   =========================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --text-primary: #ffffff;
        --border-color: #ffffff;
    }
}

/* ===========================
   Horizontal Scroll Prevention
   =========================== */
* {
    max-width: 100% !important;
    word-wrap: break-word !important;
}

.container {
    overflow-x: hidden !important;
}