/* ============================================
   GAMING PORTAL CSS - Cyber/Neon Style
   ============================================ */

/* CSS Variables */
:root {
    --gaming-primary: #00ff88;
    --gaming-secondary: #ff00ff;
    --gaming-accent: #00d4ff;
    --gaming-dark: #0a0e27;
    --gaming-darker: #050816;
    --gaming-card: #1a1f3a;
    --gaming-glow: rgba(0, 255, 136, 0.5);
}

/* ============================================
   BASE STYLES
   ============================================ */

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

body.gaming-body {
    background: linear-gradient(135deg, var(--gaming-darker) 0%, var(--gaming-dark) 100%);
    background-attachment: fixed;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* Animated background effect */
body.gaming-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.gaming-main {
    position: relative;
    z-index: 1;
}

/* ============================================
   NAVIGATION
   ============================================ */

.gaming-navbar {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gaming-primary);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.gaming-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--gaming-primary) !important;
    text-shadow: 0 0 20px var(--gaming-glow);
    transition: all 0.3s;
}

.gaming-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 30px var(--gaming-glow);
}

.gaming-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.gaming-navbar .nav-link {
    color: #b0b0b0 !important;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 1rem !important;
}

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

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

.gaming-navbar .nav-link:hover::after,
.gaming-navbar .nav-link.active::after {
    width: 80%;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-gaming-accent {
    background: var(--gaming-primary) !important;
    border: 2px solid var(--gaming-primary) !important;
    color: #000000 !important;
    font-weight: 900 !important;
    padding: 0.6rem 1.8rem !important;
    border-radius: 25px;
    transition: all 0.3s;
    text-shadow: none !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
    font-size: 1rem !important;
}

.btn-gaming-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 255, 136, 0.6) !important;
    background: #00ff88 !important;
}

/* Force text color (override Bootstrap) */
.navbar .btn-gaming-accent,
a.btn-gaming-accent,
.btn-gaming-accent * {
    color: var(--gaming-dark) !important;
    -webkit-text-fill-color: var(--gaming-dark) !important;
}

.navbar .btn-gaming-accent:hover,
a.btn-gaming-accent:hover {
    color: var(--gaming-darker) !important;
    -webkit-text-fill-color: var(--gaming-darker) !important;
}

.btn-gaming-primary {
    background: var(--gaming-primary);
    border: none;
    color: var(--gaming-dark);
    font-weight: 700;
    padding: 0.75rem 2.5rem;
    border-radius: 30px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.btn-gaming-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 255, 136, 0.6);
    color: var(--gaming-dark);
}

.btn-gaming-play {
    background: linear-gradient(45deg, var(--gaming-primary), var(--gaming-accent));
    border: none;
    color: var(--gaming-dark);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-gaming-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 25px var(--gaming-glow);
    color: var(--gaming-dark);
}

.btn-gaming-locked {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #888;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-gaming-locked:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #aaa;
}

/* ============================================
   HERO SECTION
   ============================================ */

.gaming-hero {
    padding: 3rem 0;
}

.gaming-title {
    color: #fff;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.gaming-glow {
    color: var(--gaming-primary);
    text-shadow: 
        0 0 10px var(--gaming-glow),
        0 0 20px var(--gaming-glow),
        0 0 40px var(--gaming-glow);
    animation: pulse-glow 2s ease-in-out infinite;
}

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

/* ============================================
   GAME CARDS
   ============================================ */

.gaming-card {
    background: var(--gaming-card);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.gaming-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gaming-primary), var(--gaming-secondary), var(--gaming-accent));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.gaming-card:hover {
    transform: translateY(-10px);
    border-color: var(--gaming-primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.3);
}

.gaming-card:hover::before {
    opacity: 0.2;
}

.gaming-card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--gaming-glow));
}

.gaming-card-title {
    color: var(--gaming-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.gaming-card-description {
    color: #d0d0d0;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.gaming-stats-section {
    background: rgba(26, 31, 58, 0.5);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
}

.gaming-section-title {
    color: var(--gaming-primary);
    font-weight: 700;
    margin-bottom: 2rem;
}

.gaming-stat-card {
    background: var(--gaming-card);
    border: 2px solid rgba(0, 255, 136, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.gaming-stat-card:hover {
    border-color: var(--gaming-primary);
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.3);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gaming-primary);
    text-shadow: 0 0 20px var(--gaming-glow);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0b0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ============================================
   FOOTER
   ============================================ */

.gaming-footer {
    background: rgba(10, 14, 39, 0.95);
    border-top: 2px solid var(--gaming-primary);
    color: #b0b0b0;
    margin-top: auto;
}

.gaming-footer a {
    color: var(--gaming-primary);
    transition: all 0.3s;
}

.gaming-footer a:hover {
    color: var(--gaming-accent);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .gaming-title {
        font-size: 2rem;
    }
    
    .gaming-card-icon {
        font-size: 3rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .btn-gaming-accent {
        font-size: 0.95rem !important;
        padding: 0.55rem 1.5rem !important;
    }
    
    .gaming-hero {
        padding: 2rem 0;
    }
}

@media (max-width: 576px) {
    .gaming-logo {
        font-size: 1.2rem;
    }
    
    .gaming-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .gaming-card {
        padding: 1.5rem;
    }
}
/* ============================================
   MOBILE IMPROVEMENTS
   ============================================ */

/* Hero buttons spacing on mobile */
@media (max-width: 768px) {
    .gaming-hero .btn {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .gaming-hero .me-3 {
        margin-right: 0 !important;
    }
    
    /* Make buttons stack vertically */
    .gaming-hero > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    /* Better padding on small screens */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Navbar improvements */
    .gaming-navbar .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Card spacing */
    .gaming-card {
        margin-bottom: 1rem;
    }
    
    /* Stats section padding */
    .gaming-stats-section {
        padding: 2rem 1rem;
    }
    
    /* Better button sizing */
    .btn-gaming-primary,
    .btn-gaming-play {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}

/* ============================================
   FORMS
   ============================================ */

.gaming-form .form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gaming-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 2px solid rgba(0, 255, 136, 0.2) !important;
    color: #fff !important;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: all 0.3s;
}

.gaming-input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--gaming-primary) !important;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3) !important;
    color: #fff !important;
}

.gaming-input::placeholder {
    color: #888 !important;
}

.gaming-form .alert {
    border-radius: 10px;
    border: none;
}

.gaming-form .alert-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 2px solid rgba(220, 53, 69, 0.5);
}

.gaming-form .alert-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--gaming-primary);
    border: 2px solid rgba(0, 255, 136, 0.5);
}

.gaming-form small.text-muted {
    color: #b0b0b0 !important;
    font-size: 0.85rem;
}

.gaming-form .text-muted {
    color: #a0a0a0 !important;
}

.gaming-card .text-muted {
    color: #b0b0b0 !important;
}

/* ============================================
   PROFILE & LEADERBOARD
   ============================================ */

/* Profile Stats */
.profile-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s;
}

.profile-stat:hover {
    border-color: var(--gaming-primary);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.game-stat-row {
    padding: 1rem 0;
}

.game-stat-row:last-child hr {
    display: none;
}

/* Leaderboard Table */
.leaderboard-table {
    color: #fff;
}

.leaderboard-table thead th {
    background: rgba(0, 255, 136, 0.1);
    border: none;
    color: var(--gaming-primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 1rem;
    border-bottom: 2px solid var(--gaming-primary);
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.leaderboard-table tbody tr:hover {
    background: rgba(0, 255, 136, 0.05);
}

.leaderboard-table tbody tr.user-row {
    background: rgba(0, 255, 136, 0.15) !important;
    border: 2px solid var(--gaming-primary);
}

.leaderboard-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border: none;
}

/* Podium Cards */
.podium-card {
    transition: all 0.3s;
}

.podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Achievement Badges */
.achievement-badge {
    transition: all 0.3s;
}

.achievement-badge:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

/* Rank Circle */
.rank-circle {
    animation: pulse-rank 2s ease-in-out infinite;
}

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

/* Stat Items */
.stat-item {
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateX(5px);
}

/* List Group Items */
.list-group-item {
    transition: all 0.3s;
}

.list-group-item:hover {
    transform: translateX(5px);
    background: rgba(0, 255, 136, 0.05) !important;
}

/* Progress Bar */
.progress {
    overflow: hidden;
    border-radius: 10px;
}

.progress-bar {
    transition: width 1s ease-in-out;
}

/* Badge Animations */
.badge {
    animation: badge-pop 0.3s ease-out;
}

@keyframes badge-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Button Outline Light (for leaderboard) */
.btn-outline-light {
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
}
/* Game Selector Buttons */
.game-selector-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 1rem 0.5rem !important;
    border-radius: 15px !important;
    transition: all 0.3s;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.game-selector-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-3px);
}

.game-selector-btn.active {
    background: var(--gaming-primary) !important;
    border-color: var(--gaming-primary) !important;
    color: var(--gaming-dark) !important;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.5);
}

.game-selector-btn div {
    font-size: 1.5rem;
}

.game-selector-btn small {
    font-size: 0.85rem;
    font-weight: 600;
}
