@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Orbitron:wght@400;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: #0a0a0a;
    --accent-violet: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #88888b;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
    --transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
    --space-xl: clamp(80px, 12vh, 140px);
    --space-lg: 60px;
    --space-md: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: initial;
    -moz-osx-font-smoothing: initial;
}

h1,
h2,
h3,
.accent-font {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-violet);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-pink);
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
    color: white;
    box-shadow: var(--neon-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-border);
    border-color: var(--text-secondary);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.neon-text {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(7, 7, 7, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 6px 14px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: var(--transition);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .nav-brand {
        font-size: 1rem !important;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        width: 80%;
        text-align: center;
        padding: 15px;
        background: rgba(255,255,255,0.03);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--accent-pink);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--accent-pink);
    }
}

/* Sections */
section {
    padding: var(--space-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    letter-spacing: 0.15em;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* Catalog Layout */
.catalog-layout {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 120px; /* Adjust based on navbar height */
    height: fit-content;
    padding: 20px;
}

.sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.filter-list {
    list-style: none;
    padding: 0;
}

.filter-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    font-size: 0.95rem;
}

.filter-list li:hover {
    color: var(--text-primary);
    padding-left: 5px;
}

.filter-list li.active {
    color: var(--accent-violet);
    font-weight: 700;
}

.game-card:hover .game-img {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

/* Responsive Catalog */
@media (max-width: 992px) {
    .catalog-layout {
        flex-direction: column;
    }
    .sidebar {
        flex: 1 1 auto;
        width: 100% !important;
        position: static !important;
        margin-bottom: 30px;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .sidebar > div {
        flex: 1 1 200px;
    }
    .filter-list {
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
    }
    .filter-list li {
        border-bottom: none;
        background: var(--glass-bg);
        padding: 5px 15px;
        border-radius: 20px;
    }
}

/* Tab Buttons */
.tab-btn, .tab-btn-sub {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.tab-btn:hover, .tab-btn-sub:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--accent-cyan) !important;
    transform: translateY(-2px);
}
.tab-btn:active, .tab-btn-sub:active {
    transform: translateY(0) scale(0.96);
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink)) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}
.tab-btn-sub.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet)) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

/* Button animations */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.btn:active {
    transform: translateY(0) scale(0.95) !important;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.5), 0 8px 25px rgba(0,0,0,0.3);
}
.btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Game card animations */
.game-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.game-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(139, 92, 246, 0.2);
}
.game-card:active {
    transform: translateY(-2px) scale(0.98) !important;
}
.game-card:hover .game-img {
    transform: scale(1.08);
}
.game-card .btn {
    transition: all 0.25s ease;
}
.game-card:hover .btn {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Glass panel hover */
.glass-panel {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cart icon animation */
.cart-icon {
    transition: all 0.3s ease;
}
.cart-icon:hover {
    transform: scale(1.1);
}
.cart-icon:hover svg {
    stroke: var(--accent-cyan);
}
.cart-icon svg {
    transition: stroke 0.3s ease;
}

/* WhatsApp floating button */
a[href*="wa.me"] {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
a[href*="wa.me"]:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3) !important;
}
a[href*="wa.me"]:active {
    transform: scale(0.95) !important;
}

/* Nav links */
.nav-links a {
    transition: all 0.3s ease;
}
.nav-links a:hover {
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

/* Filter list smooth */
.filter-list li {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-list li:hover {
    color: var(--text-primary);
    padding-left: 8px;
    background: rgba(255,255,255,0.05);
}
.filter-list li:active {
    transform: scale(0.97);
}
.filter-list li.active {
    color: var(--accent-violet);
    font-weight: 700;
    background: rgba(139, 92, 246, 0.1);
}

/* Search input focus */
#search-input {
    transition: all 0.3s ease;
}
#search-input:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Toast animation */
@keyframes toastIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    to { opacity: 0; transform: translateY(20px); }
}

/* Offers Carousel Styles */
.offers-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 25px;
    padding: 15px 0 30px 0;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.offers-carousel::-webkit-scrollbar {
    display: none;
}
.offers-carousel .game-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.carousel-control {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.8);
    color: white;
    border: 1px solid var(--accent-pink);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}
.carousel-control:hover {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-pink));
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.6);
}
.carousel-control.prev {
    left: 0;
}
.carousel-control.next {
    right: 0;
}

@media (max-width: 768px) {
    .carousel-control {
        display: none; /* Hide buttons on mobile, allow native swiping */
    }
    .carousel-wrapper {
        padding: 0 10px !important;
    }
}