/* ===========================================
   GameZone - Dark Gaming Theme CSS
   =========================================== */

/* Root Variables */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --accent: #00cec9;
    --accent-glow: rgba(0, 206, 201, 0.3);
    --danger: #ff6b6b;
    --success: #00b894;
    --warning: #fdcb6e;
    --info: #74b9ff;
    
    --bg-dark: #0a0a1a;
    --bg-card: #12122a;
    --bg-card-hover: #1a1a3e;
    --bg-input: #1a1a3e;
    --bg-nav: rgba(10, 10, 26, 0.95);
    
    --text-primary: #ffffff;
    --text-secondary: #b2b2d0;
    --text-muted: #6e6e8a;
    
    --border: #2a2a4a;
    --border-light: #3a3a5a;
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
    
    --transition: all 0.3s ease;
    --font-main: 'Rajdhani', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(108, 92, 231, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===========================================
   NAVBAR
   =========================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.logo i {
    font-size: 1.8rem;
    color: var(--primary);
    animation: pulse-glow 2s ease-in-out infinite;
}

.logo-accent {
    color: var(--accent);
}

@keyframes pulse-glow {
    0%, 100% { text-shadow: 0 0 5px rgba(108, 92, 231, 0.5); }
    50% { text-shadow: 0 0 20px rgba(108, 92, 231, 0.8), 0 0 40px rgba(108, 92, 231, 0.3); }
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
}

.search-bar form {
    display: flex;
    background: var(--bg-input);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: var(--transition);
}

.search-bar form:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 20px;
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-bar button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--primary-dark);
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.15);
}

.nav-link.btn-login {
    background: var(--primary);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
}

.nav-link.btn-login:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: rgba(108, 92, 231, 0.15);
    color: var(--text-primary);
}

.dropdown-menu .badge {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    transition: var(--transition);
    overflow-y: auto;
    border-right: 1px solid var(--border);
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-search {
    padding: 15px;
}

.mobile-search form {
    display: flex;
    background: var(--bg-input);
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.mobile-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
}

.mobile-search button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
    transition: var(--transition);
}

.mobile-link:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--text-primary);
}

.mobile-divider {
    height: 1px;
    background: var(--border-light);
    margin: 10px 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===========================================
   FLASH MESSAGES
   =========================================== */
.flash-message {
    padding: 15px 0;
    position: relative;
    z-index: 50;
}

.flash-message .container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 500;
}

.flash-success .container { background: rgba(0, 184, 148, 0.15); border: 1px solid var(--success); color: var(--success); }
.flash-error .container { background: rgba(255, 107, 107, 0.15); border: 1px solid var(--danger); color: var(--danger); }
.flash-info .container { background: rgba(116, 185, 255, 0.15); border: 1px solid var(--info); color: var(--info); }

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover { opacity: 1; }

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.hero-stat .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===========================================
   SECTION TITLES
   =========================================== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title h2 i {
    color: var(--primary);
}

.section-title .view-all {
    color: var(--primary-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.section-title .view-all:hover {
    color: var(--accent);
}

/* ===========================================
   CATEGORY PILLS
   =========================================== */
.category-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    justify-content: center;
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.category-pill:hover, .category-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.category-pill i {
    font-size: 1rem;
}

/* ===========================================
   GAME CARDS
   =========================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.game-card-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-card-hover);
}

.game-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-card-thumb img {
    transform: scale(1.1);
}

.game-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.game-card:hover .game-card-play {
    transform: translate(-50%, -50%) scale(1);
}

.game-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-card-info {
    padding: 15px;
}

.game-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.game-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.game-card-category {
    color: var(--primary-light);
    font-weight: 600;
}

/* ===========================================
   FEATURED SLIDER
   =========================================== */
.featured-section {
    margin-bottom: 40px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.featured-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(108, 92, 231, 0.3);
    transform: translateY(-3px);
}

.featured-card-bg {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}

.featured-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.featured-card-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.featured-card-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-play:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

/* ===========================================
   GAME PLAY PAGE
   =========================================== */
.game-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(108, 92, 231, 0.1);
    border-bottom: 1px solid var(--border);
}

.game-header h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.game-controls {
    display: flex;
    gap: 10px;
}

.game-controls button {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.game-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.game-frame {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    position: relative;
    overflow: hidden;
}

.game-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.game-details {
    padding: 20px;
}

.game-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.game-description h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.game-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.game-info-sidebar {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 20px;
}

.game-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-info-item:last-child { border: none; }

.game-info-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.game-info-item strong {
    color: var(--text-primary);
    margin-left: auto;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.game-tag {
    padding: 4px 12px;
    background: rgba(108, 92, 231, 0.15);
    border-radius: 50px;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===========================================
   LEADERBOARD
   =========================================== */
.leaderboard {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.leaderboard-header {
    padding: 15px 20px;
    background: rgba(108, 92, 231, 0.1);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-header i { color: var(--warning); }

.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.leaderboard-item:last-child { border: none; }
.leaderboard-item:hover { background: rgba(108, 92, 231, 0.05); }

.leaderboard-rank {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--bg-input);
    color: var(--text-muted);
}

.leaderboard-item:nth-child(1) .leaderboard-rank { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; }
.leaderboard-item:nth-child(2) .leaderboard-rank { background: linear-gradient(135deg, #c0c0c0, #a0a0a0); color: #000; }
.leaderboard-item:nth-child(3) .leaderboard-rank { background: linear-gradient(135deg, #cd7f32, #a0522d); color: #fff; }

.leaderboard-name { flex: 1; font-weight: 500; }
.leaderboard-score { 
    font-family: var(--font-heading); 
    color: var(--accent); 
    font-weight: 700; 
}

/* ===========================================
   AUTH PAGES
   =========================================== */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.auth-box h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 10px;
    color: var(--primary-light);
}

.auth-box .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group .input-icon {
    position: relative;
}

.form-group .input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.form-group .input-icon input {
    padding-left: 45px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
}

.auth-links {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--primary-light);
    font-weight: 600;
}

.auth-links a:hover {
    color: var(--accent);
}

/* ===========================================
   PROFILE PAGE
   =========================================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 30px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.profile-info p {
    color: var(--text-muted);
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 15px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.profile-stat .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ===========================================
   ADMIN PANEL
   =========================================== */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 20px 0;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar-link:hover, .admin-sidebar-link.active {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.1);
    border-left-color: var(--primary);
}

.admin-sidebar-link i {
    width: 20px;
    text-align: center;
}

.admin-content {
    padding: 30px;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dash-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 25px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.dash-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.dash-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.dash-card-icon.purple { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.dash-card-icon.teal { background: linear-gradient(135deg, var(--accent), #00a99d); }
.dash-card-icon.red { background: linear-gradient(135deg, var(--danger), #ee5a24); }
.dash-card-icon.yellow { background: linear-gradient(135deg, var(--warning), #f39c12); }

.dash-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.dash-card-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 3px;
}

/* Admin Table */
.admin-table-container {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: rgba(108, 92, 231, 0.1);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.admin-table tr:hover td {
    background: rgba(108, 92, 231, 0.05);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions a, .admin-table .actions button {
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.status-badge {
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.active { background: rgba(0, 184, 148, 0.2); color: var(--success); }
.status-badge.inactive { background: rgba(255, 107, 107, 0.2); color: var(--danger); }

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 50px 0 20px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.newsletter-form {
    display: flex;
    margin-top: 10px;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-input);
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 10px 15px;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form button {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===========================================
   AD CONTAINERS
   =========================================== */
.ad-container {
    text-align: center;
    margin: 15px auto;
    max-width: 100%;
    overflow: hidden;
}

/* ===========================================
   SEARCH PAGE
   =========================================== */
.search-results-header {
    margin-bottom: 30px;
}

.search-results-header h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.search-results-header p {
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-results h2 {
    font-family: var(--font-heading);
    color: var(--text-muted);
    margin-bottom: 10px;
}

.no-results p {
    color: var(--text-muted);
}

/* ===========================================
   LOADING & ANIMATIONS
   =========================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card {
    animation: fadeIn 0.5s ease forwards;
}

.game-card:nth-child(1) { animation-delay: 0.05s; }
.game-card:nth-child(2) { animation-delay: 0.1s; }
.game-card:nth-child(3) { animation-delay: 0.15s; }
.game-card:nth-child(4) { animation-delay: 0.2s; }
.game-card:nth-child(5) { animation-delay: 0.25s; }
.game-card:nth-child(6) { animation-delay: 0.3s; }
.game-card:nth-child(7) { animation-delay: 0.35s; }
.game-card:nth-child(8) { animation-delay: 0.4s; }

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fullscreen button */
.btn-fullscreen {
    background: var(--accent);
    color: var(--bg-dark);
    font-weight: 700;
}

.btn-like {
    color: var(--danger);
}

.btn-like.liked {
    background: rgba(255, 107, 107, 0.2);
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        display: none;
    }
    
    .game-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        height: 60px;
    }
    
    .search-bar {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .auth-box {
        padding: 25px;
    }
    
    .game-card-info {
        padding: 10px;
    }
    
    .game-card-title {
        font-size: 0.9rem;
    }
    
    .game-card-meta {
        font-size: 0.75rem;
    }

    .section-title h2 {
        font-size: 1.2rem;
    }

    .game-frame {
        aspect-ratio: 3/4;
    }

    .game-header {
        padding: 10px 14px;
    }

    .game-header h1 {
        font-size: 1rem;
    }

    .game-details-grid {
        grid-template-columns: 1fr;
    }

    .game-controls button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-pills {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-pill {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

/* ===========================================
   SCROLLBAR
   =========================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===========================================
   GAME PLACEHOLDER THUMBNAILS
   =========================================== */
.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.3);
}

.thumb-snake { background: linear-gradient(135deg, #00b894, #00cec9); }
.thumb-flappy { background: linear-gradient(135deg, #0984e3, #6c5ce7); }
.thumb-2048 { background: linear-gradient(135deg, #fdcb6e, #e17055); }
.thumb-tetris { background: linear-gradient(135deg, #e74c3c, #6c5ce7); }
.thumb-default { background: linear-gradient(135deg, #636e72, #2d3436); }
