:root {
    --light-bg: #581c87;
    --light-surface: #6b21a8;
    --light-card: #7e22ce;
    --light-hover: #9333ea;
    --text-dark: #ffffff;
    --text-medium: #f3e8ff;
    --text-light: #e9d5ff;
    --accent-blue: #c084fc;
    --accent-purple: #d8b4fe;
    --accent-cyan: #e9d5ff;
    --accent-glow: rgba(192, 132, 252, 0.4);
    --border-light: #7e22ce;
    --shadow-light: 0 3px 10px rgba(192, 132, 252, 0.35);
    --shadow-medium: 0 6px 20px rgba(192, 132, 252, 0.45);
    --shadow-glow: 0 0 24px rgba(192, 132, 252, 0.5);
    --gradient-primary: linear-gradient(135deg, #c084fc, #d8b4fe);
    --gradient-secondary: linear-gradient(135deg, #d8b4fe, #e9d5ff);
    --gradient-accent: linear-gradient(135deg, #c084fc, #e9d5ff);
}

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

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.8;
    min-height: 100vh;
}

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

.nav-bar {
    background: rgba(88, 28, 135, 0.95);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.brand-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.nav-link:hover {
    background: var(--light-hover);
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--gradient-primary);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(192, 132, 252, 0.4);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-wrapper {
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--light-surface);
}

.search-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.main-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.hero-section {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--light-surface);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--light-surface);
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-banner {
    background: var(--light-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.featured-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transition: left 0.5s ease;
}

.featured-banner:hover::before {
    left: 100%;
}

.featured-banner:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    transform: translateY(-2px);
}

.featured-banner-image {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-hover);
}

.featured-banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-banner-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.featured-banner-content p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.banner-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--gradient-primary);
    color: var(--light-surface);
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

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

.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1rem;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.view-all-link:hover {
    color: var(--accent-purple);
    gap: 0.75rem;
    transform: translateX(2px);
}

.home-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.home-stat-card {
    background: var(--light-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.home-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.home-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.home-stat-content {
    flex: 1;
}

.home-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.home-stat-label {
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 500;
}

.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.popular-category-card {
    background: var(--light-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: var(--shadow-light);
    display: block;
}

.popular-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-blue);
}

.popular-category-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--light-hover);
    position: relative;
}

.popular-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-category-card:hover .popular-category-image img {
    transform: scale(1.1);
}

.popular-category-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-size: 2.5rem;
}

.popular-category-content {
    padding: 1.25rem;
}

.popular-category-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.popular-category-count {
    color: var(--text-medium);
    font-size: 0.875rem;
}

.top-games-section {
    background: var(--light-card);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.top-games-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.top-game-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    text-decoration: none !important;
    position: relative;
}

.top-game-item:hover {
    background: var(--light-hover);
    border-color: var(--accent-blue);
    transform: translateX(4px);
    box-shadow: var(--shadow-light);
}

.top-game-rank {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.top-game-item:nth-child(1) .top-game-rank {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.top-game-item:nth-child(2) .top-game-rank {
    background: linear-gradient(135deg, #94a3b8, #64748b);
}

.top-game-item:nth-child(3) .top-game-rank {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.top-game-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--light-hover);
    flex-shrink: 0;
}

.top-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.top-game-info {
    flex: 1;
    min-width: 0;
}

.top-game-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-game-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-game-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 600;
}

.top-game-rating i {
    color: #fbbf24;
}

.top-game-plays {
    color: var(--text-light);
    font-size: 0.875rem;
}

.top-game-badge {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .home-stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .top-game-item {
        padding: 0.75rem;
    }

    .top-game-image {
        width: 60px;
        height: 60px;
    }

    .top-game-title {
        font-size: 0.95rem;
    }
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    position: relative;
    box-shadow: var(--shadow-light);
}

.category-pills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 16px 16px 0 0;
}

.category-pill {
    padding: 0.625rem 1.25rem;
    background: var(--light-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-medium);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

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

.category-pill:hover::before {
    width: 300%;
    height: 300%;
}

.category-pill:hover {
    border-color: transparent;
    color: var(--light-surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.category-pill,
.category-pill * {
    position: relative;
    z-index: 1;
}

.games-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.game-card-large {
    background: var(--light-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-light);
}

.game-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.game-card-large:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    border-color: var(--accent-blue);
}

.game-card-large:hover::before {
    opacity: 0.03;
}

.game-card-large > * {
    position: relative;
    z-index: 1;
}

.game-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--light-hover);
}

.game-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card-large:hover .game-image-wrapper::after {
    opacity: 1;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card-large:hover .game-image {
    transform: scale(1.15);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card-large:hover .play-overlay {
    opacity: 1;
}

.play-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--light-surface);
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.game-card-large:hover .play-icon-circle {
    transform: scale(1);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.6);
}

.play-icon-circle i {
    margin-left: 3px;
}

.game-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--gradient-primary);
    color: var(--light-surface);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.game-info {
    padding: 1.25rem;
}

.game-title-large {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.game-card-large:hover .game-title-large {
    color: var(--accent-blue);
}

.game-meta-large {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.game-rating-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars-large {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-value {
    color: var(--text-medium);
    font-size: 0.875rem;
    font-weight: 600;
}

.game-stats {
    color: var(--text-light);
    font-size: 0.8rem;
}

.empty-state-dark {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--light-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-light);
}

.empty-icon-dark {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-title-dark {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.empty-text-dark {
    color: var(--text-light);
    font-size: 1rem;
}

.footer-dark {
    background: var(--light-surface);
    border-top: 1px solid var(--border-light);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content-dark {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section-title {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-link-dark {
    display: block;
    color: var(--text-light);
    margin-bottom: 0.625rem;
    transition: color 0.2s ease;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.footer-link-dark:hover {
    color: var(--accent-blue);
}

.footer-bottom-dark {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-light);
    font-size: 0.875rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--light-surface);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

@media (max-width: 1024px) {
    .nav-content {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem 0;
    }

    .games-grid-large {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }
}

.trending-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--gradient-accent);
    color: var(--light-surface);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.trending-badge i {
    font-size: 0.65rem;
}

.quick-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-button {
    padding: 0.75rem 1.5rem;
    background: var(--light-card);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-light);
}

.filter-button:hover {
    background: var(--light-hover);
    border-color: var(--accent-blue);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

.filter-button.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--light-surface);
    box-shadow: var(--shadow-medium);
}

.stats-card {
    background: var(--light-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-light);
}

.stats-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stats-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--light-surface);
}

.stats-content {
    flex: 1;
}

.stats-label {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.stats-value {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .nav-bar {
        padding: 0.75rem 1rem !important;
        flex-wrap: nowrap !important;
    }
    
    .nav-content {
        flex-wrap: nowrap !important;
        gap: 1rem !important;
    }
    
    .brand-logo {
        font-size: 1.125rem !important;
        flex: 0 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 50px);
    }
    
    .brand-icon {
        width: 32px !important;
        height: 32px !important;
        font-size: 1rem !important;
    }
    
    .search-wrapper {
        display: none !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 1001;
        gap: 0 !important;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background: var(--text-dark) !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: all 0.3s;
        flex-shrink: 0;
    }
    
    .mobile-menu-btn span:not(:last-child) {
        margin-bottom: 4px !important;
    }

    .main-wrapper {
        padding: 1.5rem 1rem;
    }

    .hero-section {
        padding: 2.5rem 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-value {
        font-size: 1.75rem;
    }

    .featured-banner {
        grid-template-columns: 1fr !important;
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
        gap: 1.5rem !important;
    }
    
    .featured-banner-content h2 {
        font-size: 1.5rem !important;
    }
    
    .featured-banner-content p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .category-pills {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
        gap: 0.5rem !important;
    }
    
    .category-pill {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .section-header {
        margin-bottom: 1.5rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .view-all-link {
        font-size: 0.875rem !important;
    }

    .games-grid-large {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.9rem !important;
    }
    
    .top-games-section {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .top-game-item {
        padding: 0.75rem !important;
        gap: 0.75rem !important;
    }
    
    .top-game-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .top-game-title {
        font-size: 0.95rem !important;
    }
    
    .home-stat-card {
        padding: 1.25rem !important;
    }
    
    .home-stat-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
    
    .home-stat-value {
        font-size: 1.75rem !important;
    }
    
    .popular-category-content {
        padding: 1rem !important;
    }
    
    .popular-category-name {
        font-size: 1rem !important;
    }
    
    .quick-filters {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-button {
        padding: 0.625rem 1rem !important;
        font-size: 0.85rem !important;
    }
    
    .home-stats-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .game-meta-large {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
    
    .game-rating-large {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
}

@media (max-width: 480px) {
    .nav-bar {
        padding: 0.5rem 0.75rem !important;
    }
    
    .brand-logo {
        font-size: 0.875rem !important;
    }
    
    .brand-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.875rem !important;
    }
    
    .main-wrapper {
        padding: 1rem 0.75rem !important;
    }
    
    .games-grid-large {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.625rem !important;
    }
    
    .game-card-large {
        border-radius: 10px !important;
    }
    
    .game-title-large {
        font-size: 0.875rem !important;
    }
    
    .game-meta-large {
        font-size: 0.75rem !important;
    }
    
    .game-rating-large {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.25rem !important;
    }
    
    .stars-large {
        font-size: 0.7rem !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
    }
    
    .section-subtitle {
        font-size: 0.875rem !important;
    }
    
    .quick-filters {
        gap: 0.375rem !important;
        margin-bottom: 1rem !important;
    }
    
    .filter-button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
    
    .home-stats-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.625rem !important;
    }
    
    .popular-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.625rem !important;
    }
    
    .stats-card {
        padding: 1rem 0.75rem !important;
    }
    
    .stats-value {
        font-size: 1.25rem !important;
    }
    
    .featured-banner {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
        gap: 1rem !important;
    }
    
    .featured-banner-content h2 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .featured-banner-content p {
        font-size: 0.875rem !important;
        line-height: 1.6 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .banner-button {
        padding: 0.625rem 1.25rem !important;
        font-size: 0.875rem !important;
    }
    
    .category-pills {
        padding: 0.75rem !important;
        margin-bottom: 1rem !important;
        gap: 0.375rem !important;
    }
    
    .category-pill {
        padding: 0.5rem 0.875rem !important;
        font-size: 0.8rem !important;
    }
    
    .section-header {
        margin-bottom: 1rem !important;
        gap: 0.5rem !important;
    }
    
    .section-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .section-subtitle {
        font-size: 0.875rem !important;
    }
    
    .view-all-link {
        font-size: 0.8rem !important;
    }
    
    .top-games-section {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .top-game-item {
        padding: 0.625rem !important;
        gap: 0.625rem !important;
    }
    
    .top-game-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .top-game-title {
        font-size: 0.875rem !important;
    }
    
    .top-game-info {
        gap: 0.25rem !important;
    }
    
    .top-game-rating {
        font-size: 0.75rem !important;
    }
    
    .top-game-plays {
        font-size: 0.75rem !important;
    }
    
    .home-stat-card {
        padding: 1rem 0.75rem !important;
        gap: 1rem !important;
    }
    
    .home-stat-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.125rem !important;
    }
    
    .home-stat-value {
        font-size: 1.5rem !important;
    }
    
    .home-stat-label {
        font-size: 0.8rem !important;
    }
    
    .popular-category-content {
        padding: 0.875rem !important;
    }
    
    .popular-category-name {
        font-size: 0.9rem !important;
    }
    
    .popular-category-count {
        font-size: 0.8rem !important;
    }
}



    
    .section,
    .games-section {
        margin-bottom: 2rem !important;
    }
    
    .games-grid,
    .featured-grid {
        gap: 0.75rem !important;
    }
    
    .item-info,
    .game-card-content {
        padding: 0.875rem 0.75rem !important;
    }
    
    .section-title {
        margin-bottom: 0.75rem !important;
    }
}



@media (max-width: 480px) {
    
    .top-nav,
    .nav-bar,
    .header,
    .site-header {
        padding: 0.5rem 0.75rem !important;
        min-height: 56px;
    }
    
    
    .nav-wrapper,
    .header-container,
    .nav-content,
    .header-inner {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
        flex-wrap: nowrap !important;
    }
    
    
    .brand,
    .site-logo,
    .logo-wrapper,
    .brand-logo,
    .logo {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        font-size: 0.875rem !important;
        font-weight: 600;
        flex: 0 1 auto !important;
        min-width: 0;
        max-width: calc(100% - 50px);
        overflow: hidden;
    }
    
    .brand span,
    .site-logo span,
    .logo-wrapper span,
    .brand-logo span,
    .logo span {
        font-size: 0.875rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand img,
    .site-logo img,
    .logo-wrapper img,
    .brand-logo img,
    .logo img {
        height: 28px !important;
        width: auto !important;
        flex-shrink: 0;
    }
    
    
    .search-wrapper,
    .search-container,
    .search-box {
        display: none !important;
    }
    
    
    .nav-menu,
    .nav-links,
    .site-nav,
    .nav-actions,
    nav > ul {
        display: none !important;
    }
    
    
    .mobile-menu-btn,
    .mobile-menu-toggle,
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 1001;
        order: 999;
    }
    
    .mobile-menu-btn span,
    .menu-toggle span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background: var(--text-dark) !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: all 0.3s;
        flex-shrink: 0;
    }
    
    .mobile-menu-btn span:not(:last-child),
    .menu-toggle span:not(:last-child) {
        margin-bottom: 4px !important;
    }
    
    
    .mobile-nav .search-wrapper,
    .mobile-nav .search-container,
    .mobile-menu .search-wrapper {
        display: flex !important;
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
        gap: 0.5rem !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav .search-input,
    .mobile-menu .search-input {
        flex: 1 !important;
        padding: 0.625rem 0.75rem !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        border: 1px solid var(--border, rgba(255, 255, 255, 0.2)) !important;
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-main, #ffffff) !important;
        min-height: 44px !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav .search-btn,
    .mobile-menu .search-btn {
        padding: 0.625rem 1rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        flex-shrink: 0 !important;
    }
}


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
    flex-shrink: 0;
}

.mobile-menu-btn span:not(:last-child) {
    margin-bottom: 4px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: var(--light-surface);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transition: right 0.3s ease-out;
    overflow-y: auto;
}

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

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-nav-header .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-medium);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav-list li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.mobile-nav-list li a:hover,
.mobile-nav-list li a.active {
    background: var(--light-hover);
    color: var(--accent-blue);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex !important;
    }
}


@media (max-width: 768px) {
    .top-nav,
    .nav-bar,
    .header,
    .site-header {
        padding: 0.75rem 1rem;
    }
    
    .nav-wrapper,
    .header-container,
    .nav-content,
    .header-inner {
        padding: 0;
        gap: 1rem;
    }
    
    .brand,
    .site-logo,
    .logo-wrapper,
    .brand-logo,
    .logo {
        font-size: 1rem !important;
    }
    
    .brand img,
    .site-logo img,
    .logo-wrapper img,
    .brand-logo img,
    .logo img {
        height: 32px !important;
    }
    
    .search-wrapper,
    .search-container {
        display: none !important;
    }
    
    .nav-menu,
    .nav-links,
    .site-nav {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer;
        z-index: 1001;
        gap: 0 !important;
    }
    
    .mobile-menu-btn span {
        display: block !important;
        width: 22px !important;
        height: 2px !important;
        background: var(--text-dark) !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: all 0.3s;
        flex-shrink: 0;
    }
    
    .mobile-menu-btn span:not(:last-child) {
        margin-bottom: 4px !important;
    }
}
