/* Casino Chile - Global Styles */

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

:root {
    --casino-gold: #C9A961;
    --casino-gold-light: #E5D4A3;
    --casino-red: #8B1538;
    --casino-green: #0F4229;
    --casino-dark: #0D0D0D;
    --casino-bg: #1A1A1A;
    --casino-accent: #2C2C2C;
    --text-light: #FFFFFF;
    --text-muted: #8A8A8A;
    --border-color: rgba(201, 169, 97, 0.15);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.8);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #0D0D0D 0%, #1A1A1A 50%, #0D0D0D 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* ===== LOGIN PAGE ===== */
.landing-page {
    background: linear-gradient(135deg, #0a6c2f 0%, #0a3d1c 50%, #000000 100%);
}

.casino-header {
    text-align: center;
    padding: 60px 20px 40px;
}

.casino-logo {
    font-size: 3.5rem;
    font-weight: 400;
    color: var(--casino-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    letter-spacing: 8px;
    font-variant: small-caps;
}

.casino-tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.login-box {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.login-box h2 {
    text-align: center;
    color: var(--casino-gold);
    font-size: 2rem;
    margin-bottom: 15px;
}

.bonus-amount {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--casino-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    margin: 20px 0;
}

.bonus-text {
    text-align: center;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.login-form {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--casino-gold);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--casino-gold);
    color: #000;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.3);
    background: var(--casino-gold-light);
}

.btn-large {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-play {
    width: 100%;
    background: linear-gradient(135deg, #DC143C 0%, #8B0000 100%);
    color: white;
}

.btn-play:hover {
    background: linear-gradient(135deg, #FF1744 0%, #DC143C 100%);
}

.btn-action {
    background: rgba(44, 44, 44, 0.8);
    color: var(--casino-gold);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.btn-action:hover {
    background: rgba(44, 44, 44, 1);
    border-color: var(--casino-gold);
}

.login-features {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-icon {
    font-size: 2rem;
}

.games-preview {
    margin-top: 30px;
    text-align: center;
}

.games-preview h3 {
    color: var(--casino-gold);
    margin-bottom: 15px;
}

.games-icons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.game-icon {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
}

.legal-info {
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.legal-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--casino-gold);
    text-decoration: none;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* ===== LOBBY ===== */
.casino-nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-size: 1.8rem;
    color: var(--casino-gold);
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.wallet-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    border-radius: 10px;
}

.wallet-amount {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--casino-gold);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lobby-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.welcome-banner {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.welcome-banner h2 {
    font-size: 2.5rem;
    color: var(--casino-gold);
    margin-bottom: 10px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.game-card {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.6) 0%, rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--casino-gold);
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.15);
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(26, 26, 26, 0.95) 100%);
}

.game-card-header {
    margin-bottom: 20px;
}

.game-icon-large {
    font-size: 5rem;
    margin-bottom: 15px;
}

.game-card h3 {
    font-size: 1.8rem;
    color: var(--casino-gold);
    margin-bottom: 15px;
}

.game-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    line-height: 1.6;
}

.game-limits {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Stats */
.stats-section h3 {
    font-size: 2rem;
    color: var(--casino-gold);
    text-align: center;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--casino-gold);
    margin-bottom: 10px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid var(--casino-gold);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--casino-gold);
    font-size: 2rem;
}

.modal-close {
    font-size: 2.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    color: var(--casino-gold);
}

.modal-body {
    padding: 30px;
}

.wallet-balance-big {
    text-align: center;
    margin-bottom: 30px;
}

.balance-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.balance-amount {
    font-size: 4rem;
    font-weight: 900;
    color: var(--casino-gold);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

/* Tabs */
.wallet-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1.1rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--casino-gold);
    border-bottom-color: var(--casino-gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: var(--casino-gold);
    margin-bottom: 15px;
}

.tab-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.tab-content form {
    margin-bottom: 20px;
}

.tab-content input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.tab-content input:focus {
    outline: none;
    border-color: var(--casino-gold);
}

.quick-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    padding: 12px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--casino-gold);
    color: var(--casino-gold);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-btn:hover {
    background: var(--casino-gold);
    color: #000;
}

/* Transactions */
.transactions-list {
    max-height: 400px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid transparent;
}

.transaction-item.deposit {
    border-left-color: #4CAF50;
}

.transaction-item.withdrawal {
    border-left-color: #F44336;
}

.transaction-item.bonus {
    border-left-color: var(--casino-gold);
}

.transaction-type {
    font-weight: 600;
    margin-bottom: 5px;
}

.transaction-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.transaction-date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 5px;
}

.transaction-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.transaction-amount.deposit,
.transaction-amount.bonus {
    color: #4CAF50;
}

.transaction-amount.withdrawal {
    color: #F44336;
}

/* Loading */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 215, 0, 0.2);
    border-top-color: var(--casino-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
}

.toast {
    background: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #4CAF50;
}

.toast-error {
    border-left: 4px solid #F44336;
}

.toast-info {
    border-left: 4px solid #2196F3;
}

/* Status Message */
.status-message {
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.status-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #F44336;
    color: #FF5252;
}

/* Responsive */
@media (max-width: 768px) {
    .casino-logo {
        font-size: 2.5rem;
    }

    .casino-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-right {
        flex-direction: column;
        width: 100%;
    }

    .wallet-display {
        width: 100%;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .bonus-amount {
        font-size: 2.5rem;
    }

    .balance-amount {
        font-size: 3rem;
    }
}
