/* --- Variables & Reset --- */
:root {
    --bg-color: #050505; /* Deepest Black */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --accent: #00ffcc; /* Cyan ghost accent */
    --gold: #FFD700; /* Money Rush Gold */
    --glass-bg: rgba(20, 20, 20, 0.4); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* --- ADVANCED BACKGROUND --- */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Faint Grid Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Creates a very subtle grid like a blueprint or retro UI */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient Moving Fog/Glow */
body::after {
    content: "";
    position: fixed;
    top: -50%; left: -50%; width: 200%; height: 200%;
    /* Two subtle light sources moving slowly */
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 204, 0.03), transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(100, 100, 255, 0.03), transparent 30%);
    z-index: -1;
    animation: backgroundMove 20s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* --- Animations --- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-down { animation: fadeInDown 1s ease-out forwards; }
.fade-in-up { animation: fadeInUp 1s ease-out 0.3s forwards; opacity: 0; }

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: rgba(5, 5, 5, 0.7); /* Slightly darker for contrast against grid */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.highlight { color: var(--accent); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Dropdowns --- */
.dropdown-trigger { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent);
    padding-left: 1.8rem;
}

/* --- Buttons --- */
.auth-buttons { display: flex; gap: 1rem; }

.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.1s, box-shadow 0.3s;
    border: none;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:active { transform: scale(0.95); }

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover { border-color: var(--text-main); }

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.btn-gold {
    background: var(--gold);
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
}
.btn-gold:hover {
    background: #fff;
    box-shadow: 0 0 20px var(--gold);
}

/* --- Main Layout & About Section --- */
.container {
    max-width: 1200px;
    margin: 6rem auto 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.about-section h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    /* Gradient Text */
    background: linear-gradient(to bottom right, #ffffff 30%, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.about-section p {
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 300;
}

.divider {
    border: 0;
    height: 1px;
    background: radial-gradient(circle, var(--glass-border) 0%, transparent 100%);
    margin: 5rem 0;
}

/* --- Game Showcase (Homepage) --- */
.section-header {
    display: flex;
    justify-content: flex-start;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.count { color: var(--accent); margin-left: 0.5rem; }

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    display: block;
    text-decoration: none;
    color: white;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27), border-color 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(0, 255, 204, 0.1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.game-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .game-poster { transform: scale(1.1); }

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .overlay { opacity: 1; }

.coming-soon {
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    transform: rotate(-5deg);
}

.card-info { padding: 1.5rem; text-align: left; }
.card-info h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-info .genre { color: var(--text-muted); font-size: 0.9rem; }


/* --- INDIVIDUAL GAME & EVENT PAGE STYLES --- */

/* Game Header */
.game-header {
    text-align: center;
    margin-bottom: 4rem;
}

.game-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

.highlight-gold { color: var(--gold); }
.gold-text { text-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }

.game-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.game-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.badge {
    border: 1px solid var(--glass-border);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.05);
    color: var(--accent);
}

/* Two Column Layout */
.game-section {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 2rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    text-align: left;
}

.text-content { flex: 1; min-width: 300px; }
.visual-content { flex: 1; min-width: 300px; }

.feature-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

/* Responsive Video Container */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Screenshot Grid */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.screenshot {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
}

.screenshot:hover {
    transform: scale(1.02);
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
}

/* Money Rush Info Box */
.info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.info-item h4 {
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.info-value {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Registration Card */
.registration-card {
    background: var(--glass-bg);
    border: 1px solid var(--gold);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.05);
}

.registration-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.registration-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.or-divider {
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

.or-divider::before, .or-divider::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--glass-border);
    vertical-align: middle;
    margin: 0 10px;
}

.qr-container {
    background: white;
    padding: 10px;
    display: inline-block;
    border-radius: 8px;
}

.qr-code {
    width: 150px;
    height: 150px;
    display: block;
}


/* --- AUTHENTICATION PAGE STYLES --- */

.auth-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 16px;
    max-width: 450px;
    margin: 2rem auto;
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.auth-title { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s;
}

.social-btn:active { transform: scale(0.98); }

.social-btn.google { background: #ffffff; color: #1a1a1a; }
.social-btn.steam { background: #171a21; color: #c5c3c0; border: 1px solid #2a475e; }

.auth-divider {
    position: relative;
    margin: 2rem 0;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; width: 100%; height: 1px;
    background: var(--glass-border);
    z-index: 0;
}

.auth-divider span {
    background: #0d0d0d;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; color: var(--text-muted); margin-bottom: 0.5rem; font-size: 0.9rem; }
.form-group input {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus { border-color: var(--accent); }
.full-width { width: 100%; }

.form-footer { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; font-size: 0.9rem; }
.forgot-pass { color: var(--text-muted); text-decoration: none; }
.forgot-pass:hover { color: var(--text-main); }
.switch-auth { margin-top: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.switch-auth a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* --- CONTACT PAGE STYLES (NEW) --- */

.contact-section {
    margin-bottom: 5rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.icon-wrapper {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.contact-card:hover .icon-wrapper {
    color: var(--accent);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* --- MOBILE QUERIES --- */
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-links { gap: 1rem; }
    .screenshot-grid { grid-template-columns: 1fr; }
    .info-box { flex-direction: column; gap: 1rem; }
    .two-column { flex-direction: column; }
}

/* =========================================
   USER PROFILE & DROPDOWN (NEW ADDITIONS)
   ========================================= */

.user-profile-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent); /* Matches your Cyan accent */
    cursor: pointer;
    transition: transform 0.2s;
    object-fit: cover;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.profile-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 60px; /* Right below the navbar */
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px;
    width: 180px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 1000;
    flex-direction: column;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.profile-dropdown.active {
    display: flex; /* Show when active */
}

/* Dropdown arrow to point at avatar */
.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: rgba(26, 26, 26, 0.95);
    border-left: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-border);
    transform: rotate(45deg);
}

.dropdown-item {
    background: none;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.delete-btn {
    color: #ff4444; /* Red text for delete */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 5px;
    padding-top: 12px;
}

.dropdown-item.delete-btn:hover {
    background-color: rgba(255, 68, 68, 0.15);
}