/* Gaming Theme - Dark & Vibrant */
:root {
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #14141f;
    --primary: #7c3aed;
    --primary-glow: #8b5cf6;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --success: #10b981;
    --warning: #f59e0b;
    --border-glow: rgba(124, 58, 237, 0.3);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-glow);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-glow));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.navbar {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.navbar-nav .nav-link {
    padding: 6px 12px;
    font-size: 0.95rem;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dropdown-menu-dark {
    background-color: var(--card-bg);
    border: 1px solid var(--border-glow);
    font-size: 0.85rem;
}

.dropdown-item {
    padding: 6px 20px;
}

.navbar-toggler {
    background: var(--primary);
    border: none;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    padding: 8px 16px;
    border-radius: 50px;
}


.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--primary) !important;
}

.nav-item .btn-glow.active,
.nav-item .btn-outline-glow.active {
    background: inherit;
    color: white !important;
}

.nav-item .btn-outline-glow {
    padding: 8px 20px;
    margin-left: 5px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-glow);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero .highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

/* Buttons */
.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    color: white;
}
.nav-item .btn-glow {
    padding: 8px 20px;
    margin-left: 10px;
}

.btn-outline-glow {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-glow:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Game Cards */
.game-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(124, 58, 237, 0.2);
    margin-bottom: 30px;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.game-img {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.game-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.game-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.game-info {
    padding: 20px;
}

.game-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary);
    padding-left: 10px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.category-count {
    color: var(--primary);
    font-size: 0.8rem;
}

.trending-game {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.trending-game img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.trending-game h6 {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.trending-game small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 50px 0 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-glow);
}

.footer h5 {
    color: var(--primary);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .sidebar {
        margin-top: 30px;
        position: static;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Leaderboard */
.leaderboard-item {
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateX(5px);
}

.rank {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 50px;
}

.rank.gold { color: #ffd700; }
.rank.silver { color: #c0c0c0; }
.rank.bronze { color: #cd7f32; }

.user-info {
    flex: 1;
}

.user-name {
    font-weight: 600;
}

.user-score {
    color: var(--accent);
    font-weight: 700;
}

/* Game Container */
.game-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-glow);
    min-height: 500px;
}
.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 8px;
}

.btn-register {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-left: 5px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-register:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Make trending games clickable with hover effect */
.trending-game {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px;
}

.trending-game:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateX(5px);
}

.trending-game img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-game:hover img {
    transform: scale(1.05);
}

.trending-game h6 {
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.trending-game small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}