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

:root {
    --primary: #00ff9d; /* Neon Green */
    --primary-dim: rgba(0, 255, 157, 0.1);
    --bg-dark: #050505;
    --bg-card: #0f0f11;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ================= NAVIGATION ================= */
/* Desktop Nav (Hidden on Mobile) */
.desktop-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.logo, .logo-small {
    font-size: 1.5rem;
    font-weight: 800;
}
.highlight { color: var(--primary); }

.nav-links a {
    margin-left: 25px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.btn-login {
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--primary) !important;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--border);
}
.mobile-login-btn {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

/* Mobile Bottom Nav (App Style) */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f0f11;
    border-top: 1px solid var(--border);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    color: #666;
    transition: 0.3s;
}

.nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.nav-item span { font-size: 0.7rem; }

.nav-item.active { color: var(--primary); }

/* ================= HERO SECTION ================= */
.hero {
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 0 15px;
}

.gradient-text {
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta-btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.primary-btn {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* ================= STATS ================= */
.stats-strip {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

.stat-item { text-align: center; }
.stat-val { display: block; font-size: 1.2rem; font-weight: 800; color: #fff; }
.stat-lbl { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.stat-line { width: 1px; background: var(--border); }

/* ================= GRID SECTIONS ================= */
.section-container {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.section-header h2 i { color: var(--primary); }
.view-all { font-size: 0.8rem; color: var(--primary); }

/* Provider Grid - Horizontal Scroll on small mobile or Grid */
.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cols on mobile */
    gap: 10px;
}

.provider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 5px;
    text-align: center;
    transition: 0.2s;
}

.provider-card:active { transform: scale(0.95); background: var(--primary-dim); }

.prov-img-wrap {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prov-img-wrap img { width: 80%; height: 80%; object-fit: contain; }
.fallback-icon { color: var(--primary); font-weight: bold; }
.prov-name { font-size: 0.75rem; color: #ccc; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Games Grid - 2 Column Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.game-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.game-img {
    position: relative;
    padding-top: 70%; /* Aspect Ratio */
    background: #111;
}

.game-img img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}

.game-badge {
    position: absolute;
    top: 5px; right: 5px;
    background: rgba(0,0,0,0.8);
    color: var(--primary);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.game-info {
    padding: 10px;
    text-align: center;
}

.game-info h4 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-btn {
    display: block;
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 5px;
    border-radius: 6px;
}

/* ================= FOOTER ================= */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #08080a;
    border-top: 1px solid var(--border);
}
.small-text { color: var(--text-muted); font-size: 0.8rem; }

/* ================= RESPONSIVE QUERY ================= */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-header { display: flex; }
    .mobile-nav { display: flex; }
    
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.9rem; }
    
    .provider-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 769px) {
    .mobile-header { display: none; }
    .mobile-nav { display: none; }
    
    .provider-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}