@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #070914; /* Deep space dark */
    --bg-glass: rgba(18, 22, 45, 0.6); /* Glass effect */
    --primary: #00ff88; /* Cyberpunk Neon Green for money/Brazil */
    --primary-glow: rgba(0, 255, 136, 0.4);
    --secondary: #ff007f; /* Neon Pink for contrast */
    --accent: #ffd700; /* Gold for premium feel */
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --card-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.05), transparent 25%);
}

/* Scrollbar Style */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Dynamic Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px var(--primary-glow); }
    50% { box-shadow: 0 0 30px var(--primary-glow); }
    100% { box-shadow: 0 0 10px var(--primary-glow); }
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Header & Glassmorphism Nav */
header {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
}

.logo span {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: textGradient 3s linear infinite;
}

.nav-links {
    display: flex;
    gap: 25px;
    background: rgba(0,0,0,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid var(--card-border);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Cyberpunk Login Button */
.login-btn {
    background: transparent;
    color: var(--primary);
    padding: 12px 30px;
    border: 1px solid var(--primary);
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary);
    border-radius: 50%;
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.login-btn:hover {
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.6);
    transform: translateY(-2px);
}

.login-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Main Hero Section */
.hero {
    margin-top: 80px;
    padding: 100px 20px 80px;
    text-align: center;
    position: relative;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1) 0%, transparent 60%);
    z-index: -1;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
    animation: fadeInUp 1.2s ease-out;
}

.hero .login-btn {
    font-size: 1.2rem;
    padding: 18px 50px;
    border-radius: 40px;
    animation: fadeInUp 1.4s ease-out, pulseGlow 2s infinite;
}

/* Category Grid (for Home Page) */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.cat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--text-main);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.cat-card:nth-child(1) { animation-delay: 0.2s; }
.cat-card:nth-child(2) { animation-delay: 0.4s; }
.cat-card:nth-child(3) { animation-delay: 0.6s; }

.cat-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    transform: rotate(45deg);
    transition: transform 0.8s ease;
}

.cat-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(0,255,136,0.1);
}

.cat-card:hover::before {
    transform: rotate(0deg);
}

.cat-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.cat-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--accent);
}

.cat-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.cat-btn {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}

.cat-card:hover .cat-btn {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* Detailed SEO Page Content */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.seo-block {
    background: var(--bg-glass);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    padding: 40px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.seo-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.seo-block h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.seo-block h2 span {
    color: var(--primary);
}

.seo-block h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 25px 0 15px;
}

.seo-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    line-height: 1.8;
}

.seo-block ul {
    list-style: none;
    margin: 20px 0;
}

.seo-block ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.seo-block ul li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 1.2rem;
}

/* Featured Games Grid inside Category Pages */
.featured-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.game-item {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
}

.game-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 10px 20px rgba(255, 0, 127, 0.15);
    transform: translateY(-5px);
}

.game-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #1a1f35; /* Fallback if no img */
}

.game-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(0,255,136,0.1), rgba(255,0,127,0.1));
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    margin: 60px auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.cta-banner::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 150px; height: 150px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(20px);
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Mobile Responsiveness & Drawer Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 28px;
    cursor: pointer;
    z-index: 2001; /* Above drawer */
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Mobile Drawer Menu */
.mobile-drawer {
    position: fixed;
    top: 0; right: -300px; width: 280px; height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--primary);
    z-index: 2000;
    padding: 80px 20px 20px;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.mobile-drawer a.active, .mobile-drawer a:hover {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-sticky-login {
    display: none;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.8rem; }
    header .login-btn.desktop-btn { display: none; }
    
    .mobile-sticky-login {
        display: block;
        position: fixed;
        bottom: 0; left: 0; width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(15px);
        padding: 15px 20px;
        z-index: 1000;
        border-top: 1px solid rgba(0, 255, 136, 0.3);
        box-shadow: 0 -10px 20px rgba(0,0,0,0.5);
    }

    .mobile-sticky-login .login-btn {
        width: 100%;
        display: block;
        text-align: center;
        padding: 15px;
        font-size: 1.1rem;
        background: var(--primary);
        color: #000;
        animation: pulseGlow 2s infinite;
    }

    body { padding-bottom: 80px; }
    
    .seo-block { padding: 25px; border-radius: 12px; }
    .seo-block h2 { font-size: 1.8rem; }
}

/* Footer */
footer {
    background: #030409;
    padding: 60px 20px 30px;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

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

.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.5;
}
