:root {
    --bg-dark: #111827;
    --bg-darker: #0b0f19;
    --neon-green: #4ade80;
    --neon-green-glow: rgba(74, 222, 128, 0.5);
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background: var(--bg-darker);
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--neon-green);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn-all-games {
    background: rgba(255, 0, 255, 0.1);
    border: 2px solid var(--neon-magenta, #ff00ff);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}

.nav-links a.btn-all-games:hover {
    background: #ff00ff;
    color: var(--bg-dark) !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.6);
}

.btn-gold-extra {
    background: rgba(204, 51, 51, 0.1);
    border: 2px solid #cc3333;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(204, 51, 51, 0.2);
}

.nav-links a.btn-gold-extra:hover {
    background: #cc3333;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(204, 51, 51, 0.6);
}

.btn-upload {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green) !important;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.upload-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.upload-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a.btn-upload:hover {
    background: var(--neon-green);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 15px var(--neon-green-glow);
    padding: 8px 16px;
}

.nav-links a.btn-upload:hover .upload-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 8px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--neon-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Game Grid */
.games-section {
    padding: 60px 0;
    flex: 1;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::before {
    content: '';
    display: block;
    width: 30px;
    height: 4px;
    background: var(--neon-green);
    border-radius: 2px;
}

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

.game-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: var(--neon-green);
}

.game-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #000;
}

.game-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.game-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: rgba(74, 222, 128, 0.1);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    margin-top: auto;
    align-self: flex-start;
}

/* Forms & Buttons */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-green);
}

select.form-control {
    appearance: none;
}

select.form-control option {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    background: var(--neon-green);
    color: var(--bg-dark);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.btn-primary:hover {
    background: #34d399;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
    color: var(--text-muted);
}

/* --- TROPHY CASE (KILL COUNTER) --- */
#trophy-case {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    max-height: 60vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    align-items: flex-end;
    align-content: flex-end;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
}

#trophy-case img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
    animation: trophyPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: scale(0);
}

@keyframes trophyPop {
    0% { transform: scale(0) rotate(-45deg); opacity: 0; }
    50% { transform: scale(1.2) rotate(10deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Quill Editor Fixes */
.ql-editor {
    min-height: inherit;
}

/* Hamburger Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0px;
    background-color: var(--bg-dark);
    min-width: 180px;
    box-shadow: 0px 8px 25px rgba(0,0,0,0.5);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    z-index: 1000;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-light) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
    font-weight: 600;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--neon-green);
    color: var(--bg-dark) !important;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Gold Extra Theme Overrides for Dropdown */
.dropdown.gold-extra .dropdown-content {
    border-color: #cc3333;
}
.dropdown.gold-extra .dropdown-content a:hover {
    background-color: #cc3333;
}
