/* ====== ZONTAL GAMING PLATFORM - PROFESSIONAL REDESIGN ====== */
/* Modern CSS Variables for Dark Gaming Theme */
:root {
    /* Primary Gaming Colors */
    --gaming-primary: #6366f1;
    --gaming-primary-dark: #4f46e5;
    --gaming-accent: #f59e0b;
    --gaming-accent-dark: #d97706;

    /* Dark Theme Base Colors */
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e3a;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a9c0;
    --text-muted: #64748b;

    /* Gaming Accents */
    --neon-cyan: #00f5ff;
    --neon-pink: #ff0080;
    --neon-green: #00ff88;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--gaming-primary) 0%, var(--gaming-accent) 100%);
    --gradient-neon: linear-gradient(45deg, var(--neon-cyan) 0%, var(--neon-pink) 100%);
    --gradient-dark: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

    /* Shadows & Effects */
    --shadow-small: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 245, 255, 0.2);

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Gaming Typography */
    --font-gaming: 'Orbitron', 'Exo 2', 'Rajdhani', system-ui, sans-serif;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Import Gaming Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Import Advanced Header Styles */
@import url('header-advanced.css');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Modern Gaming Body Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Professional Container System */
.zon-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.zon-game-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Enhanced Gaming Header */
.head__action__button {
    position: relative;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
    overflow: hidden;
}

.head__action__button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.head__action__button:hover::before {
    left: 0;
}

.head__action__button svg {
    height: 24px;
    width: 24px;
    position: relative;
    z-index: 2;
}

.head__action__button svg path {
    stroke: var(--text-primary);
    transition: var(--transition-fast);
    stroke-width: 2px;
}

.head__action__button:hover svg path {
    stroke: #ffffff;
    stroke-width: 2.5px;
}

/* Professional Game Grid System */
.game__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
    animation: fadeInUp 0.6s ease-out;
}

@media (max-width: 768px) {
    .game__grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .game__grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* Ultra-Modern Game Cards */
.game {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-normal);
    cursor: pointer;
    isolation: isolate;
}

.game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.game:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large), var(--shadow-neon);
    border-color: rgba(99, 102, 241, 0.3);
}

.game:hover::before {
    opacity: 0.1;
}

/* Game Badge System */
.new__badge::before {
    content: 'NEW';
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-gaming);
    background: var(--gradient-primary);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.game__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    grid-gap: 20px;
    grid-auto-rows: minmax(180px, auto);
    grid-auto-flow: dense;
}


.game.large {
    grid-column-end: span 2;
    grid-row-end: span 2;
}

.game .game__thumb {
    display: block;
    height: 100%;
    width: 100%;
}

.game .game__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    z-index: 1;
}

/* .game::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(to top, #000, transparent);
    left: 0;
    top: 0;
    border-radius: 0px;
    z-index: -1;
} */

.game .game_name {
    display: block;
    width: 100%;
    position: absolute;
    bottom: -100%;
    font-weight: bold;
    left: 0;
    padding: 5px;
    background: white;
    z-index: 9;
    font-size: 10px;
    text-align: center;
    transition: .4s;
    text-transform: uppercase;
}

.game:hover .game_name {
    bottom: 0;
}

.game__categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-gap: 20px;
    grid-auto-rows: minmax(90px, auto);
    grid-auto-flow: dense;
}

.game__categories .category {
    padding: 10px;
    border-radius: 1.20rem;
    display: flex;
    align-items: center;
}

.game__categories .category img {
    height: 100%;
    width: 100px;
    object-fit: cover;
    border-radius: 1rem;
    margin-right: 20px;
}

.game__categories .category .category__name {
    font-size: 17px;
    font-weight: bold;
    color: #000;
    transition: .4s;
}

.game__categories .category .category__name:hover {
    color: var(--zon-theme-color);
}

.game__categories .category p {
    /* color: #777; */
    text-transform: capitalize;
    font-size: 14px;
}

.more_games_button {
    display: block;
    width: fit-content;
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 20px;
    /* background: rgb(22, 164, 252); */
    padding: 10px 26px;
    border-radius: 99px;
    color: #fff;
}

/* Gaming Articles Section */
.gaming-articles {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.25rem;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.article-date {
    color: #64748b;
    font-size: 0.8rem;
}

.ai-badge {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .gaming-articles {
        margin: 2rem 0;
        padding: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

.search-container,
.menu-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    background: #ffffffa9;
    z-index: 9999;
    transition: .4s;
    opacity: 0;
    visibility: hidden;
}

.search-container.active,
.menu-container.active {
    opacity: 1;
    visibility: visible;
}

.search-container.active .search-drawer,
.menu-container.active .menu-drawer {
    right: 0;
}

.search-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: calc(100% - 40%);
    height: 100%;
    background: #fff;
    box-shadow: 0 0 50px #00000093;
    padding: 20px;
    overflow-y: scroll;
    transition: .3s;
    transition-delay: .2s;
}

.menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 50px #00000093;
    padding: 20px;
    overflow-y: scroll;
    transition: .3s;
    transition-delay: .2s;
}

.search-drawer form {
    width: 100%;
    display: flex;
    border: 1px solid #dcdcdc;
    overflow: hidden;
    border-radius: 4px;
}

.search-drawer form input {
    height: 40px;
    width: 100%;
    padding: 0 20px;
}

.search-drawer form button {
    padding: 0 20px;
}

.close-drawer {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    background: #fff;
    border: 1px solid #dcdcdc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    border-radius: 999px;
    height: 40px;
    width: 40px;
    cursor: pointer;
    user-select: none;
}

.close-drawer i {
    margin-top: -6px;
}

.close-drawer:active {
    background: #999999c6;
}

.scroll-none::-webkit-scrollbar {
    display: none;
}

.menu-drawer a {
    padding: 10px;
    border: 1px solid #dcdcdc;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: .3s;
}

.menu-drawer a:hover {
    color: var(--zon-theme-color);
    border-color: var(--zon-theme-color);
}

.menu-drawer a:hover svg path {
    stroke: var(--zon-theme-color);
}



.menu-drawer a svg path {
    stroke: #000;
}

@media screen and (max-width: 500px) {
    .search-drawer {
        width: calc(100% - 56px);
    }

    .menu-drawer {
        width: calc(100% - 56px);
    }
}


.share-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #ffffff6a;
}

.share-modal .modal-dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 500px;
    background: #fff;
    transform: translate(-50%, -50%);
    height: auto;
    min-height: 300px;
    border-radius: 20px;
    box-shadow: 0 0 20px #dcdcdc;
    padding: 60px;
}

.liked svg {
    fill: red;
}

.liked svg path {
    stroke: red;
}

@media screen and (max-width: 578px) {
    .game-meta-container {
        flex-direction: column;
    }
}

.ads {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.ads img {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

.ads img:hover {
    transform: scale(1.02);
    border-color: var(--gaming-primary);
}

/* ====== ADVANCED GAMING COMPONENTS ====== */

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
    }
}

/* Enhanced Game Thumbnail */
.game__thumb {
    display: block;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: var(--bg-secondary);
}

.game__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(0.9);
}

.game:hover .game__thumb img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
}

/* Gaming Loading Effect */
.game__thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: var(--transition-slow);
}

.game:hover .game__thumb::after {
    left: 100%;
}

/* Professional Game Title */
.game_name {
    display: block;
    padding: 16px 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    text-decoration: none;
    background: var(--bg-card);
    transition: var(--transition-fast);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.game:hover .game_name {
    color: var(--gaming-accent);
    background: rgba(99, 102, 241, 0.1);
}

/* Enhanced More Games Button */
.more_games_button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    font-family: var(--font-gaming);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
}

.more_games_button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: var(--transition-slow);
}

.more_games_button:hover::before {
    left: 100%;
}

.more_games_button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large), var(--shadow-glow);
    border-color: var(--neon-cyan);
}

.more_games_button::after {
    content: '🎮';
    font-size: 18px;
}

/* Professional Game Categories */
.game__categories {
    margin-top: 64px;
    margin-bottom: 64px;
}

.category {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.category:hover::before {
    left: 0;
    opacity: 0.1;
}

.category:hover {
    transform: translateX(8px);
    border-color: var(--gaming-primary);
    box-shadow: var(--shadow-medium);
}

.category img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    position: relative;
    z-index: 1;
}

.category:hover img {
    border-color: var(--gaming-accent);
    transform: scale(1.05);
}

.category .text {
    position: relative;
    z-index: 1;
}

.category__name {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 4px;
    text-decoration: none;
    transition: var(--transition-fast);
}

.category:hover .category__name {
    color: var(--gaming-accent);
}

/* Professional Gaming Articles Section */
.gaming-articles {
    margin: 64px 0;
    position: relative;
}

.section-header {
    margin-bottom: 32px;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-gaming);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.section-header a {
    color: var(--gaming-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.section-header a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* Advanced Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
}

/* Ultra-Modern Article Cards */
.article-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    cursor: pointer;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.article-card:hover::before {
    opacity: 0.05;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
    border-color: rgba(99, 102, 241, 0.3);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.article-content {
    padding: 24px;
    position: relative;
    z-index: 1;
}

.article-title {
    margin-bottom: 12px;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
    transition: var(--transition-fast);
}

.article-title a:hover {
    color: var(--gaming-accent);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.article-date {
    font-weight: 500;
}

.ai-badge {
    background: rgba(139, 92, 246, 0.2);
    color: var(--gaming-accent);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Utility Classes */
.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.p-2 {
    padding: 0.5rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.capitalize {
    text-transform: capitalize;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .zon-container {
        padding: 0 16px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .zon-container {
        padding: 0 12px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .game__categories {
        margin-top: 32px;
        margin-bottom: 32px;
    }

    .gaming-articles {
        margin: 32px 0;
    }
}

/* Gaming Performance Optimizations */
.game,
.article-card,
.category {
    will-change: transform;
}

img {
    loading: lazy;
    decoding: async;
}

/* Dark Theme Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gaming-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gaming-primary-dark);
}

/* ====== ADVANCED HOMEPAGE COMPONENTS ====== */

/* Professional Gaming Hero Section */
.gaming-hero {
    background: var(--gradient-dark);
    position: relative;
    padding: 100px 0 80px;
    margin-bottom: 60px;
    overflow: hidden;
}

.gaming-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 60%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title-main {
    display: block;
    font-family: var(--font-gaming);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.1;
    animation: glow 3s ease-in-out infinite alternate;
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 8px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-gaming);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gaming-accent);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.hero-stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Advanced Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title {
    font-family: var(--font-gaming);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gaming-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
    font-size: 1.1rem;
}

.section-view-all:hover {
    color: var(--neon-cyan);
    transform: translateX(4px);
}

/* Professional Featured Games */
.featured-section {
    margin-bottom: 100px;
}

.featured-grid {
    margin-bottom: 48px;
}

.featured-game {
    position: relative;
}

.featured-game::after {
    content: '✨ FEATURED';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gradient-neon);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 20px;
    z-index: 5;
    text-shadow: none;
    box-shadow: var(--shadow-small);
}

/* Enhanced Game Cards */
.game__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    border-radius: 12px 12px 0 0;
}

.game:hover .game__overlay {
    opacity: 1;
}

.game__play-btn {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.8);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-large);
}

.game:hover .game__play-btn {
    transform: scale(1);
}

.game__info {
    padding: 20px;
    background: var(--bg-card);
}

.game__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.game__category,
.game__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Professional Load More Button */
.load-more-section {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: transparent;
    border: 2px solid var(--gaming-primary);
    color: var(--gaming-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
    z-index: -1;
}

.load-more-btn:hover::before {
    left: 0;
}

.load-more-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

/* Advanced Categories Grid */
.categories-section {
    margin: 100px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 0;
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-large);
    border-color: var(--gaming-primary);
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    z-index: 1;
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.category-info {
    padding: 24px;
    text-align: center;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: var(--transition-fast);
}

.category-card:hover .category-name {
    color: var(--gaming-accent);
}

.category-count {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* Professional CTA Section */
.cta-section {
    margin: 100px 0;
    padding: 80px 0;
    background: var(--bg-secondary);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-neon);
    opacity: 0.05;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-gaming);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    justify-content: center;
}

.cta-btn.primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 2px solid transparent;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--gaming-accent);
    border: 2px solid var(--gaming-accent);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-neon);
    transition: var(--transition-slow);
    z-index: -1;
}

.cta-btn:hover::before {
    left: 0;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
}

.cta-btn.secondary:hover {
    color: #ffffff;
    border-color: var(--neon-cyan);
}

/* Advanced Advertisement Styling */
.ads-section {
    margin: 60px 0;
    text-align: center;
}

.bottom-ads {
    margin-top: 100px;
    margin-bottom: 60px;
}

/* Professional Loading States */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gaming-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid var(--gaming-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.game-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loader-content {
    text-align: center;
    color: var(--text-primary);
}

.loader-content p {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Animation Classes */
.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gaming-hero {
        padding: 60px 0 40px;
        margin-bottom: 40px;
    }

    .hero-stats {
        gap: 30px;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .featured-section,
    .categories-section {
        margin: 60px 0;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .cta-section {
        margin: 60px 0;
        padding: 60px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 20px;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .load-more-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
}