/* 🌌 COSMIC GUARDIAN CASINO - Cyberpunk Neon Theme */

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

:root {
    --neon-blue: #00ffff;
    --neon-purple: #bf00ff;
    --neon-pink: #ff0080;
    --neon-green: #00ff41;
    --dark-bg: #0a0a0f;
    --dark-secondary: #1a1a2e;
    --dark-accent: #16213e;
    --text-light: #ffffff;
    --text-secondary: #b8b8b8;
    --warning: #ff6b35;
}

html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    font-family: 'Arial', sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-weight: bold;
    text-shadow: 0 0 10px currentColor;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--neon-blue);
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--neon-purple);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--neon-pink);
}

/* Container System */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
    width: 100%;
}

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

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: bold;
    color: var(--neon-blue);
    text-shadow: 0 0 15px var(--neon-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-menu a:hover {
    color: var(--neon-blue);
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

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

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--neon-blue);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px var(--neon-blue);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--dark-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.5rem;
    margin: 1rem 0;
    padding: 1rem 2rem;
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    width: 80%;
    text-align: center;
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: var(--neon-purple);
    color: var(--dark-bg);
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1.5rem, 4vw, 2.5rem);
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-green));
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg), var(--dark-secondary));
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="1" fill="%2300ffff" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="2s" repeatCount="indefinite"/></circle><circle cx="75" cy="75" r="1" fill="%23bf00ff" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="3s" repeatCount="indefinite"/></circle><circle cx="75" cy="25" r="1" fill="%23ff0080" opacity="0.3"><animate attributeName="opacity" values="0.3;1;0.3" dur="2.5s" repeatCount="indefinite"/></circle></svg>') repeat;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero h1 {
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--neon-blue); }
    to { text-shadow: 0 0 20px var(--neon-blue), 0 0 30px var(--neon-blue); }
}

.hero h2 {
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

/* Section Styles */
section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    max-width: 100% !important;
}

.section-title {
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

/* Cards Layout */
.cards-grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    margin: 0 auto;
    max-width: 1200px;
}

/* Features Cards */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
    background: var(--dark-secondary);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 15px;
    border: 2px solid var(--neon-purple);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(191, 0, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.feature-card:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(191, 0, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    color: var(--neon-green);
    margin-bottom: 1rem;
    display: block;
}

/* Games Grid */
.games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 900px;
}

.game-card {
    background: var(--dark-accent);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--neon-blue);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 255, 255, 0.4);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 15px 15px 0 0;
}

.game-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.game-info .btn {
    margin-top: auto;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    color: var(--neon-green);
}

.stars {
    color: var(--neon-green);
}

/* FAQ Accordion */
.faq-item {
    background: var(--dark-secondary);
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid var(--neon-purple);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

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

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    color: var(--neon-blue);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
}

/* Reviews */
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1000px;
}

.review-card {
    background: var(--dark-secondary);
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid var(--neon-pink);
    position: relative;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.review-author {
    color: var(--neon-pink);
    font-weight: bold;
}

/* Leaderboard */
.leaderboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    max-width: 800px;
}

.leader-card {
    background: var(--dark-accent);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--neon-green);
    position: relative;
}

.leader-position {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-green);
    margin-bottom: 0.5rem;
}

.leader-name {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.leader-score {
    color: var(--neon-blue);
    font-weight: bold;
}

/* Disclaimer */
.disclaimer {
    background: var(--dark-secondary);
    padding: clamp(2rem, 5vw, 3rem);
    border-top: 3px solid var(--warning);
    text-align: center;
}

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

.disclaimer h3 {
    color: var(--warning);
    margin-bottom: 1rem;
}

.disclaimer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.disclaimer-logo {
    height: 40px;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--neon-blue)) drop-shadow(0 0 12px var(--neon-blue));
    transition: all 0.3s ease;
}

.disclaimer-logo:hover {
    filter: drop-shadow(0 0 12px var(--neon-blue)) drop-shadow(0 0 20px var(--neon-blue)) brightness(1.2);
    transform: scale(1.08);
}

.support-phone {
    color: var(--neon-blue);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 2rem 0 1.5rem 0;
    border-top: 2px solid var(--neon-blue);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
}

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

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

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

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.age-badge {
    background: var(--warning);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup {
    background: var(--dark-secondary);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: 15px;
    border: 3px solid var(--neon-purple);
    text-align: center;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.popup h3 {
    margin-bottom: 1.5rem;
}

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

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--dark-secondary);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--neon-green);
    max-width: 350px;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.cookie-consent.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.cookie-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

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

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: var(--dark-accent);
    border: 2px solid var(--neon-blue);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
    }
    
    .burger-menu {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .disclaimer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .popup {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .cookie-consent {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.neon-text { color: var(--neon-blue); text-shadow: 0 0 10px currentColor; }

/* Anti Horizontal Scroll Protection */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

* {
    max-width: 100% !important;
    word-wrap: break-word !important;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
} 