/* ============================================
   Royal Casino - Main Stylesheet
   ============================================ */

:root {
    --casino-dark: #0f0c29;
    --casino-darker: #090717;
    --casino-purple: #302b63;
    --casino-light: #24243e;
    --gold: #ffd700;
    --gold-dark: #b8860b;
    --win-green: #00ff88;
    --loss-red: #ff4757;
    --accent-purple: #9b59b6;
}

* { box-sizing: border-box; }

body {
    background: linear-gradient(180deg, var(--casino-dark) 0%, var(--casino-purple) 50%, var(--casino-light) 100%);
    min-height: 100vh;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
}

#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.balance-display {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    position: relative;
    z-index: 10;
    text-align: center;
}

.login-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.login-header {
    margin-bottom: 40px;
}

.casino-logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 3rem;
    color: #000;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.login-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gold) 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-box .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 15px;
    border-radius: 15px;
    font-size: 1rem;
}

.login-box .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    color: #fff;
}

.login-box .input-group-text {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gold);
    border-radius: 15px 0 0 15px;
}

.btn-casino {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-casino:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    color: #000;
}

.login-footer {
    margin-top: 30px;
    color: #888;
}

.game-icons {
    margin-top: 30px;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    gap: 20px;
    opacity: 0.5;
}

/* Dashboard */
.game-card-link {
    text-decoration: none;
    display: block;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px 25px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

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

.game-card-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    display: block;
}

.game-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.game-card p {
    color: #888;
    margin-bottom: 15px;
}

.slots-card { border-color: rgba(255, 215, 0, 0.3); }
.blackjack-card { border-color: rgba(0, 255, 136, 0.3); }
.roulette-card { border-color: rgba(255, 71, 87, 0.3); }
.dice-card { border-color: rgba(0, 191, 255, 0.3); }

/* Stats Panel */
.stats-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    padding: 15px;
}

.stat-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    color: #888;
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    border-radius: 15px;
    border: none;
}

.alert-danger {
    background: rgba(255, 71, 87, 0.2);
    color: var(--loss-red);
}

.alert-success {
    background: rgba(0, 255, 136, 0.2);
    color: var(--win-green);
}

/* Dropdown */
.dropdown-menu-dark {
    background: rgba(15, 12, 41, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
}

/* Paytable */
.paytable {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.paytable h5 {
    color: var(--gold);
    text-align: center;
    margin-bottom: 20px;
}

.pay-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 15px;
    font-weight: bold;
}

.pay-item span {
    color: var(--win-green);
    font-size: 1.3rem;
    display: block;
}

.pay-item.jackpot {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border: 1px solid var(--gold);
}

/* Common Controls */
.control-group {
    text-align: center;
}

.control-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 8px;
}

.bet-controls, .bet-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-bet {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-bet:hover {
    transform: scale(1.1);
}

input[type="number"] {
    width: 80px;
    height: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 10px;
    color: var(--gold);
}

input[type="number"]:focus {
    outline: none;
    border-color: var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 25px;
    }
    
    .game-card-icon {
        font-size: 3.5rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
}

/* Coin Animation */
@keyframes coinFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

.coin {
    position: fixed;
    font-size: 2rem;
    animation: coinFall 3s linear forwards;
    pointer-events: none;
    z-index: 9999;
}
