/* ============================================
   POKER APP - Global Styles
   ============================================ */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --bg-card: #1e1e3a;
    --accent-red: #8B0000;
    --accent-red-light: #c0392b;
    --accent-gold: #DAA520;
    --accent-blue: #2980b9;
    --text-primary: #E0E0E0;
    --text-secondary: #A0A0A0;
    --text-gold: #FFD700;
    --btn-fold: #C0392B;
    --btn-check: #27AE60;
    --btn-call: #2980B9;
    --btn-raise: #E67E22;
    --btn-allin: #8E44AD;
    --border-color: #2a2a4a;
    --shadow: rgba(0, 0, 0, 0.5);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: 300ms ease;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0a0a 50%, var(--bg-primary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #FFD700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, #a00 60%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #a00 0%, #c00 60%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.btn-gold {
    background: linear-gradient(135deg, #B8860B 0%, #DAA520 60%);
    color: #000;
}

.btn-gold:hover:not(:disabled) {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 60%);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--accent-gold);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-error {
    color: var(--accent-red-light);
    font-size: 13px;
    margin-top: 4px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-gold);
}

/* ============================================
   CARDS & PANELS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 20px var(--shadow);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(13, 13, 13, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-gold);
}

.navbar-brand span {
    color: var(--accent-red-light);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chip-balance {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(218, 165, 32, 0.1);
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid rgba(218, 165, 32, 0.2);
    font-weight: 600;
    color: var(--text-gold);
}

.chip-icon {
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #B8860B;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
}

.navbar-links {
    display: flex;
    gap: 8px;
}

.navbar-links a {
    padding: 6px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    box-shadow: 0 4px 20px var(--shadow);
    animation: toastSlideIn 0.3s ease;
    max-width: 350px;
}

.toast-success { border-left: 4px solid var(--btn-check); }
.toast-error { border-left: 4px solid var(--btn-fold); }
.toast-info { border-left: 4px solid var(--btn-call); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-gold { color: var(--text-gold); }
.text-muted { color: var(--text-secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

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

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

@media (max-width: 768px) {
    .navbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 16px;
    }
    .navbar-user {
        gap: 10px;
    }
    .navbar-links {
        width: 100%;
        justify-content: center;
    }
}
