/* Gaming Theme - Dark & Vibrant */
:root {
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: #14141f;
    --primary: #f12711;
    --primary-glow: #f5af19;
    --secondary: #f5af19;
    --accent: #f5af19;
    --border-glow: rgba(241, 39, 17, 0.3);

    --gradient-primary: linear-gradient(135deg,#f12711,#f5af19);
    --gradient-hover: linear-gradient(135deg,#d41a08,#e89e0f);
    --gradient-dark: linear-gradient(135deg,#1a1a2e,#16213e);
    --gradient-accent: linear-gradient(135deg,#f12711,#ff6b6b);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --success: #10b981;
    --warning: #f59e0b;
    
    /* New colors for better visual variety */
    --purple-accent: #a78bfa;
    --cyan-accent: #06b6d4;
    --pink-accent: #ec4899;
}

* {
    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.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid rgba(241, 39, 17, 0.2);
    padding: 0.75rem 1rem;
    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    animation: slideDownNav 0.5s ease-out;
}

@keyframes slideDownNav {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.25rem;
}
.nav-item {
    white-space: nowrap;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #f12711, #f5af19);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.02);
    color:transparent !important;
}

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

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link.active {
    color: #f12711 !important;
    background: rgba(241, 39, 17, 0.15);
    border-radius: 50px;
}

.nav-link:hover {
    color: #f12711;
    background: rgba(241, 39, 17, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 80%;
}


.nav-link.active::before {
    width: 80%;
}

.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: 100px 0;
    text-align: center;
    border-bottom: 2px solid var(--border-glow);
    position: relative;
    overflow: hidden;
    animation: heroEnter 0.8s ease-out;
}

@keyframes heroEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            circle at 20% 50%,
            rgba(241,39,17,.2),
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(165,123,250,.1),
            transparent 50%
        );
    pointer-events:none;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideDown 0.8s ease-out;
    font-weight: 900;
    letter-spacing: -1px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: slideUp 0.8s ease-out 0.2s both;
    line-height: 1.8;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    animation: slideUp 0.8s ease-out 0.4s both;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Buttons */
.btn-glow {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 20px rgba(241, 39, 17, 0.3), 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-glow:hover {
    background: var(--gradient-hover);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 0 40px rgba(245,175,25,.6), 0 10px 25px rgba(0,0,0,0.4);
    color: white;
}

.btn-glow:active {
    transform: translateY(-2px) scale(0.98);
}

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

.btn-outline-glow {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 0 0 0 var(--primary);
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.btn-outline-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-outline-glow:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(241, 39, 17, 0.4);
}

.game-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(241, 39, 17, 0.12);
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card:nth-child(2) {
    animation-delay: 0.1s;
}

.game-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(241, 39, 17, 0.12);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(241,39,17,0.1), rgba(165,123,250,0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.game-card:hover::before {
    opacity: 1;
}

.game-img {
    position: relative;
    overflow: hidden;
    height: 60%;
    flex-shrink: 0;
    background: var(--darker-bg);
}

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

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

.game-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #f12711, #f5af19);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.55rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.game-badge.new {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.game-info {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.game-info p {
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 6px;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-info .btn {
    font-size: 0.85rem;
    border-radius: 50px;
    width: 100%;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(135deg, var(--card-bg), rgba(20, 20, 31, 0.8));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(241, 39, 17, 0.15);
    position: sticky;
    top: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.sidebar:hover {
    border-color: rgba(241, 39, 17, 0.3);
    box-shadow: 0 12px 40px rgba(241, 39, 17, 0.1);
}

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

.sidebar-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--primary);
    padding-left: 12px;
    font-weight: 700;
    position: relative;
}

.sidebar-widget h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-primary);
}

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

.category-list li {
    margin-bottom: 12px;
    animation: fadeInLeft 0.5s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.category-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
}

.category-list a:hover {
    color: var(--primary);
    transform: translateX(8px);
    background: rgba(241, 39, 17, 0.1);
}

.category-count {
    color: var(--primary);
    font-size: 0.8rem;
    background: rgba(241, 39, 17, 0.2);
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 600;
}
/* Leaderboard */
.leaderboard-item {
    background: linear-gradient(135deg, rgba(241, 39, 17, 0.1), rgba(241, 39, 17, 0.05));
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(241, 39, 17, 0.1);
    position: relative;
    overflow: hidden;
}

.leaderboard-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--gradient-primary);
    transition: width 0.4s ease;
}

.leaderboard-item:hover {
    background: linear-gradient(135deg, rgba(241, 39, 17, 0.15), rgba(241, 39, 17, 0.1));
    transform: translateX(8px);
    border-color: rgba(241, 39, 17, 0.3);
    box-shadow: 0 5px 15px rgba(241, 39, 17, 0.1);
}

.leaderboard-item:hover::before {
    width: 4px;
}

.rank {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    min-width: 60px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.rank.gold { 
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.rank.silver { 
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.rank.bronze { 
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.user-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.user-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.user-score {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
    margin-left: 10px;
    white-space: nowrap;
}

.auth-login-btn,
.auth-register-btn {
    padding: 8px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-login-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(241, 39, 17, 0.3);
    position: relative;
    overflow: hidden;
}

.auth-login-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-login-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-3px);
    color: white;
    box-shadow: 0 8px 25px rgba(245,175,25, 0.4);
}

.auth-login-btn:hover::after {
    width: 300px;
    height: 300px;
}

.auth-register-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.auth-register-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 39, 17, 0.3);
}
.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: linear-gradient(135deg, var(--darker-bg), rgba(10,10,15,0.95));
    padding: 60px 0 20px;
    margin-top: 80px;
    border-top: 2px solid var(--border-glow);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer h5 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
}

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

.footer-links li {
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

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

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(241, 39, 17, 0.1);
    border: 2px solid rgba(241, 39, 17, 0.2);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icons a:hover {
    color: var(--primary);
    background: rgba(241, 39, 17, 0.2);
    border-color: var(--primary);
    transform: translateY(-5px) scale(1.1);
}

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

/* 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:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(241, 39, 17, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(241, 39, 17, 0.6);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-glow, .btn-outline-glow {
        width: 100%;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .sidebar {
        margin-top: 30px;
        position: static;
    }
    
    
    .nav-link {
        margin: 0.3rem 0.25rem;
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .auth-buttons {
        margin-top: 15px;
        margin-left: 0;
        gap: 6px;
    }
    
    .auth-login-btn, 
    .auth-register-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    
    .hero p {
        font-size: 0.95rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
}
@media (max-width: 768px) {
    .game-img {
        height: 55%;
    }
    .game-info h4 {
        font-size: 0.75rem;
    }
    .game-info p {
        font-size: 0.6rem;
    }
    .game-info .btn {
        font-size: 0.6rem;
        padding: 2px 10px;
    }
}

@media (max-width: 480px) {
    .game-img {
        height: 50%;
    }
    .game-info {
        padding: 6px 8px;
    }
    .game-info h4 {
        font-size: 0.65rem;
    }
    .game-info p {
        display: none;
    }
    .game-info .btn {
        font-size: 0.55rem;
        padding: 2px 8px;
    }
}

/* Leaderboard */
.leaderboard-item {
    background: rgba(241, 39, 17, 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(241, 39, 17, 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: linear-gradient(135deg, var(--card-bg), rgba(20, 20, 31, 0.8));
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(241, 39, 17, 0.15);
    min-height: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.game-container:hover {
    border-color: rgba(241, 39, 17, 0.3);
    box-shadow: 0 15px 50px rgba(241, 39, 17, 0.1);
}

/* Section Styling */
section {
    position: relative;
}

section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Container styling */
.container {
    max-width: 1200px;
}

/* Row enhancements */
.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Trending Games */
.trending-game {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.trending-game::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(241,39,17,0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trending-game:hover {
    background: rgba(241, 39, 17, 0.1);
    transform: translateX(8px);
    border-radius: 15px;
}

.trending-game:hover::before {
    opacity: 1;
}

.trending-game img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.trending-game:hover img {
    transform: scale(1.1) rotate(-2deg);
    box-shadow: 0 8px 20px rgba(241, 39, 17, 0.3);
}

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

.trending-game small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}
.btn-login {
    background: var(--gradient-primary);
    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(241, 39, 17, 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(241, 39, 17, 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 small {
    color: var(--text-secondary);
    font-size: 0.7rem;
}

/* Ripple effect for buttons */
.btn-glow, .btn-outline-glow {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Utility classes */
.text-secondary {
    color: var(--text-secondary) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.w-100 {
    width: 100% !important;
}

/* Dropdown styling enhancement */
.dropdown-menu-dark {
    background: linear-gradient(135deg, rgba(20, 20, 31, 0.95), rgba(20, 20, 31, 0.9));
    border: 1px solid rgba(241, 39, 17, 0.2);
    font-size: 0.85rem;
    border-radius: 12px;
    animation: dropdownSlide 0.3s ease-out;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(241, 39, 17, 0.1);
    color: var(--primary);
    padding-left: 25px;
}

.dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    transition: all 0.3s ease;
}

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