:root {
    --primary-color: #00f2ff; /* Neon Cyan */
    --secondary-color: #7000ff; /* Neon Purple */
    --accent-color: #ff007a; /* Neon Pink */
    --bg-dark: #0a0b10;
    --bg-card: #161b22;
    --text-main: #e6edf3;
    --text-dim: #8b949e;
    --white: #ffffff;
    --glass-bg: rgba(22, 27, 34, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
    100% { box-shadow: 0 0 5px var(--primary-color); }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
a{
    text-decoration: none;
}
ul{
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar Upgrade */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dim);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Search Bar Module */
.search-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--neon-shadow);
}

/* Hero/Banner Module (Modernized) */
.trending-banner {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    height: 350px;
    border-radius: 20px;
    background: linear-gradient(45deg, #1a1c2c, #4a1942);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.banner-content {
    max-width: 500px;
    z-index: 2;
}

.banner-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.banner-desc {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

/* Sections */
.category-section {
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out;
}

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

.category-title {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title::before {
    content: '';
    width: 8px;
    height: 32px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

/* Grid & Cards */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.6s;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.2);
}

.game-card:hover::before {
    transform: translateX(100%);
}

.game-thumb-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.game-info {
    padding: 1.2rem;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8));
}

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

.btn-play {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    backdrop-filter: blur(4px);
}

.game-card:hover .btn-play {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Footer Upgrade */
.footer {
    background: #0d1117;
    padding: 5rem 2rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand .logo {
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links-group h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links-group ul li {
    margin-bottom: 0.8rem;
    list-style: none;
}

.footer-links-group ul li a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.footer-links-group ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Detail Page Neon Upgrade */
.detail-container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.back-home {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2.5rem;
}

.game-detail-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.detail-thumb {
    width: 100%;
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: sticky;
    top: 73px;
}

.detail-info h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--text-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.play-now-large {
    padding: 1.2rem 4rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.play-now-large:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .game-detail-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .detail-thumb {
        max-width: 400px;
        margin: 0 auto;
        position: static;
    }
    .trending-banner {
        padding: 2rem;
        height: auto;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .navbar {
        padding: 1rem;
    }
    .detail-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    .detail-info h1 {
        font-size: 2rem;
        word-break: break-all;
    }
}

/* Original Content Section */
.original-content-section {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.content-block h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-body {
    color: var(--text-dim);
    line-height: 1.8;
    font-size: 1rem;
}

.content-body p {
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.feature-list li {
    padding: 0.75rem 1rem;
    background: rgba(0, 242, 255, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-weight: bold;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.meta-item {
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

@media (max-width: 768px) {
    .content-block {
        padding: 1.5rem;
    }
    
    .content-block h2 {
        font-size: 1.25rem;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }
    
    .game-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .meta-item {
        text-align: center;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    flex: 1;
    min-width: 280px;
}

.cookie-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
}

.cookie-btn.accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.4);
}

.cookie-btn.reject {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--glass-border);
}

.cookie-btn.reject:hover {
    background: var(--glass-bg);
    color: var(--text-main);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
}
