/* GameZone - Gaming Portal Theme */
:root {
    --primary: #6c5ce7;
    --primary-light: #a29bfe;
    --secondary: #00cec9;
    --accent: #fd79a8;
    --success: #00b894;
    --warning: #fdcb6e;
    --danger: #d63031;
    --dark: #0a0a0f;
    --dark-100: #12121a;
    --dark-200: #1a1a25;
    --dark-300: #252532;
    --dark-400: #32324a;
    --gray: #636e72;
    --light: #dfe6e9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-accent: linear-gradient(135deg, #fd79a8 0%, #fab1a0 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(108, 92, 231, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', 'Rajdhani', sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--dark-300);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 16px;
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: var(--dark-300);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--dark-200);
    border-radius: 8px;
    padding: 0 12px;
    border: 1px solid var(--dark-300);
}

.search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--white);
    padding: 10px;
    width: 200px;
    font-size: 0.9rem;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cart-btn {
    position: relative;
    color: var(--light);
    text-decoration: none;
    font-size: 1.25rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.user-btn {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.user-btn:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    box-shadow: var(--glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--dark-400);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(108, 92, 231, 0.1);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Hero Carousel */
.hero-carousel {
    padding-top: 70px;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    display: none;
}

.carousel-slide.active {
    display: block;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.slide-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 500px;
}

.slide-info {
    flex: 1;
}

.game-tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 16px;
}

.slide-info h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.1;
}

.slide-info p {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 20px;
    max-width: 500px;
}

.slide-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.rating {
    color: var(--warning);
    font-weight: 600;
}

.tags {
    color: var(--gray);
}

.slide-actions {
    display: flex;
    gap: 16px;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.game-cover {
    width: 300px;
    height: 400px;
    background: var(--dark-300);
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.cover-glow {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    opacity: 0.3;
    filter: blur(40px);
    border-radius: 50%;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    box-shadow: var(--glow);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.see-all {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.see-all:hover {
    color: var(--white);
}

/* Special Offers */
.special-offers {
    padding: 60px 0;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray);
}

.time-box {
    background: var(--dark-200);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--accent);
}

.offers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}

.offer-card {
    background: var(--dark-200);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.offer-card.large {
    grid-row: span 2;
}

.offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--success);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 1;
}

.offer-image {
    height: 150px;
    position: relative;
    overflow: hidden;
}

.offer-image::before {
    content: attr(data-title);
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    z-index: 1;
}

.offer-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
}

.offer-card.large .offer-image {
    height: 280px;
}

.offer-info {
    padding: 16px;
}

.offer-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.offer-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.offer-price .original {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
}

.offer-price .current {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Games Grid */
.new-releases {
    padding: 60px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.game-card {
    background: var(--dark-200);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.game-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Game cover title overlay for realistic look */
.game-image::before {
    content: attr(data-title);
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
}

.game-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 60%);
    pointer-events: none;
}

.game-info {
    padding: 16px;
}

.game-info h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.game-rating {
    color: var(--warning);
}

.game-platform {
    color: var(--gray);
}

.game-price {
    font-weight: 700;
    color: var(--primary-light);
}

/* Categories */
.categories {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--bg);
    padding: 24px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
}

.category-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Top Sellers */
.top-sellers {
    padding: 60px 0;
}

.tab-buttons {
    display: flex;
    gap: 8px;
}

.tab-btn {
    padding: 8px 16px;
    background: var(--dark-200);
    border: none;
    color: var(--gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.sellers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.seller-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--dark-200);
    padding: 16px;
    border-radius: 12px;
    transition: background 0.3s;
    cursor: pointer;
}

.seller-item:hover {
    background: var(--dark-300);
}

.rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-300);
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.rank-1 { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.rank-2 { background: linear-gradient(135deg, #bdc3c7, #95a5a6); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); }

.seller-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.seller-info {
    flex: 1;
}

.seller-info h4 {
    margin-bottom: 4px;
}

.seller-tags {
    font-size: 0.85rem;
    color: var(--gray);
}

.seller-price {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 1.1rem;
}

/* Free Games */
.free-games {
    padding: 60px 0;
}

.free-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.free-game-card {
    background: var(--dark-200);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.free-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--success);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 1;
}

.free-game-image {
    height: 200px;
}

.free-game-info {
    padding: 20px;
}

.free-game-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.free-game-info p {
    color: var(--gray);
    margin-bottom: 16px;
}

.free-game-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.old-price {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--dark-100);
    padding: 60px 0 30px;
    border-top: 1px solid var(--dark-300);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--gray);
    margin: 16px 0 20px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--dark-300);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 16px;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }

    .slide-content {
        flex-direction: column;
        text-align: center;
    }

    .slide-image {
        display: none;
    }

    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .search-box {
        display: none;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .free-games-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
    }
}
