/**
 * CASINO-PRO - Estilos Principais
 * Design moderno e responsivo
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --success: #38ef7d;
    --success-dark: #28c76f;
    --danger: #ef3856;
    --warning: #f39c12;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-dark);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================
   LANDING PAGE
   ======================== */
.landing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.landing-content {
    max-width: 800px;
}

.landing-logo {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.landing-container h1 {
    font-size: 48px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.landing-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.landing-games {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.landing-game {
    background: var(--light);
    padding: 15px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: transform 0.3s;
}

.landing-game:hover {
    transform: scale(1.05);
}

.landing-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.landing-feature {
    text-align: center;
}

.landing-feature .feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.landing-feature .feature-text {
    color: var(--text-muted);
    font-size: 14px;
}

.landing-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.landing-footer {
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================
   AUTH PAGES
   ======================== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
}

.auth-logo {
    font-size: 60px;
    margin-bottom: 15px;
}

.auth-card h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.auth-form {
    text-align: left;
}

.auth-links {
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-links a {
    color: var(--primary);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ========================
   HEADER
   ======================== */
.header {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.balance {
    background: var(--gradient-success);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
}

.user-name {
    color: var(--text-muted);
    font-size: 14px;
}

/* ========================
   CONTAINER
   ======================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
}

.page-title {
    font-size: 28px;
    margin-bottom: 30px;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-secondary {
    background: var(--light);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ========================
   FORMS
   ======================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* ========================
   GAMES GRID
   ======================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.game-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.game-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.game-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.game-rtp {
    display: inline-block;
    background: var(--gradient-success);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

/* ========================
   RECENT BETS
   ======================== */
.recent-bets {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.recent-bets h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.bet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.bet-item:last-child {
    border-bottom: none;
}

.bet-user {
    color: var(--text-muted);
}

.bet-game {
    flex: 1;
    text-align: center;
}

.bet-result {
    font-weight: bold;
}

/* ========================
   ALERTS
   ======================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(56, 239, 125, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 56, 86, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .landing-container h1 {
        font-size: 36px;
    }

    .landing-features {
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 30px 20px;
    }
}