@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0b0c10;
    --panel-bg: rgba(31, 40, 51, 0.6);
    --border-color: rgba(69, 162, 158, 0.2);
    --accent-gold: #d4af37;
    --accent-neon: #66fcf1;
    --text-main: #c5c6c7;
    --text-light: #ffffff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-weight: 700;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.text-neon {
    color: var(--accent-neon) !important;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #aa8529 100%);
    color: #111;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    color: #000;
}

/* Login specific */
.login-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 100%);
}

.login-card {
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-logo {
    max-width: 200px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.form-control.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.form-control.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
    color: var(--text-light);
}

/* Dashboard specific */
.topbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.balance-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Game Grid */
.game-card {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(102, 252, 241, 0.3);
}

.game-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(11, 12, 16, 0.9) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.game-card:hover .game-info {
    transform: translateY(0);
    opacity: 1;
}

.play-icon {
    font-size: 2rem;
    color: var(--accent-neon);
}

/* Play View */
.game-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Mobile Optimizations --- */
.logo-img {
    height: 40px;
}

.promo-banner-container img {
    object-fit: cover;
    max-height: 200px;
}

.section-title {
    font-size: 1.2rem;
}

/* Grid on mobile */
@media (max-width: 768px) {
    .logo-img {
        height: 30px;
    }
    
    .btn-sm-mobile {
        font-size: 0.85rem;
        padding: 0.3rem 1rem;
    }
    
    .game-card {
        border-radius: 12px;
    }
    
    .game-card img {
        height: 150px; /* Shorter cards for grid view */
    }
    
    .game-info {
        padding: 0.5rem;
        opacity: 1; /* Always show info on mobile */
        transform: translateY(0);
        background: linear-gradient(to top, rgba(11, 12, 16, 0.95) 0%, rgba(11,12,16,0.6) 60%, transparent 100%);
    }
    
    .game-info h4 {
        font-size: 1rem;
    }
    
    .game-info small {
        font-size: 0.7rem;
    }
    
    .play-icon {
        font-size: 1.5rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .promo-banner-container img {
        height: auto;
    }
    
    .topbar {
        padding: 0.8rem 1rem !important;
        background: rgba(11, 12, 16, 0.95);
        backdrop-filter: blur(15px);
        border-bottom: 1px solid var(--accent-gold);
    }
}
