:root {
    /* Color Palette - Cyber/Premium Theme */
    --bg-dark: #0a0b1e;
    --bg-surface: #161833;
    --accent-primary: #7000ff;
    --accent-secondary: #00d4ff;
    --text-main: #ffffff;
    --text-dim: #b0b3c1;
    --glass-bg: rgba(22, 24, 51, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 20px rgba(112, 0, 255, 0.3);
    --gradient-hero: linear-gradient(135deg, #7000ff 0%, #00d4ff 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

/* Header & Navigation */
header.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--accent-secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.search-bar {
    display: flex;
    background: var(--bg-surface);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.2rem 0.5rem;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 80vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding: 2rem;
}

.hero-badge {
    background: rgba(112, 0, 255, 0.2);
    color: var(--accent-secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--accent-primary);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #b0b3c1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.5);
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    width: 65%;
    height: 120%;
    background-size: cover;
    background-position: center;
    border-radius: 60px;
    opacity: 0.6;
    filter: brightness(0.8) contrast(1.2);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    transition: all 1s ease;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 50%);
}

/* Game Grid */
.game-section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    background: var(--bg-surface);
    padding: 0.5rem;
    border-radius: 15px;
}

.tab {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab.active {
    background: var(--accent-primary);
    color: white;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-secondary);
    color: var(--bg-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Ad Containers */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.ad-placeholder {
    width: 100%;
    max-width: 970px;
    height: 90px;
    background: var(--bg-surface);
    border: 1px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-radius: 10px;
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

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

.footer-brand p {
    color: var(--text-dim);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-secondary);
}

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

/* Modal for Game Player */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.9);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-dark);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 30px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.game-player-container {
    flex: 1;
    background: #000;
}

#gameIframe {
    width: 100%;
    height: 100%;
}

.game-info {
    padding: 2rem;
    background: var(--bg-surface);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.modal-ad-placeholder {
    background: var(--bg-dark);
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border-radius: 15px;
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    nav ul { display: none; }
}

@media (max-width: 768px) {
    .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
