/* Fantasy Game League - Balanced Theme */

:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #8b5cf6;
    --accent-color: #10b981;
    --danger-color: #ef4444;
    --dark-bg: #1e293b;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --hover-bg: #f8fafc;
    --surface-bg: #f9fafb;
}

/* Global Styles */
body {
    background: linear-gradient(to bottom, #f8fafc 0%, #e5e7eb 100%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: none;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 1rem 0 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.05em;
}

.brand-text {
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: var(--hover-bg);
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 8px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

/* Cards */
.card {
    background: var(--card-bg) !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    border-bottom: none !important;
    color: white !important;
    font-weight: 600;
    padding: 1rem 1.25rem !important;
    font-size: 0.95rem;
}

.card-body {
    padding: 1.25rem !important;
}

/* Game Cards */
.game-card {
    background: var(--card-bg);
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.game-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-left-color: var(--secondary-color);
}

.game-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.game-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.game-info strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge.bg-success {
    background: #059669 !important;
    color: white !important;
}

.badge.bg-warning {
    background: #f59e0b !important;
    color: #78350f !important;
}

.badge.bg-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

.badge.bg-secondary {
    background: var(--secondary-color) !important;
    color: white !important;
}

/* Buttons */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    padding: 0.65rem 1.25rem !important;
    transition: all 0.2s ease !important;
    border: none !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-2px);
}

.btn-success {
    background: var(--accent-color) !important;
    color: white !important;
    border-color: var(--accent-color) !important;
}

.btn-success:hover {
    background: #047857 !important;
    border-color: #047857 !important;
}

.btn-outline-primary {
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
}

.btn-outline-secondary {
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    background: transparent !important;
}

.btn-outline-secondary:hover {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
}

.btn-outline-danger {
    border: 1px solid var(--danger-color) !important;
    color: var(--danger-color) !important;
    background: transparent !important;
}

.btn-outline-danger:hover {
    background: var(--danger-color) !important;
    color: white !important;
}

.btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8125rem !important;
}

.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.05rem !important;
    border-radius: 12px !important;
}

/* Forms */
.form-control {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    font-size: 0.875rem !important;
}

.form-control:focus {
    background: white !important;
    border-color: var(--primary-color) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.form-label {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    margin-bottom: 0.5rem !important;
    font-size: 0.875rem !important;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.table thead th {
    border-bottom: 2px solid var(--border-color) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: var(--hover-bg) !important;
}

/* Alerts */
.alert {
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    font-size: 0.875rem !important;
}

.alert-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border-color: #bfdbfe !important;
}

.alert-success {
    background: #f0fdf4 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

.alert-danger {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}

/* Modals */
.modal-content {
    background: white !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.modal-header {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1.25rem !important;
}

.modal-header .modal-title {
    font-weight: 600;
    font-size: 1.125rem;
}

.modal-body {
    padding: 1.25rem !important;
}

.modal-footer {
    border-top: 1px solid var(--border-color) !important;
    padding: 1.25rem !important;
}

/* Footer */
.footer {
    background: var(--dark-bg) !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Remove excessive animations */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
}

/* Stats */
.stats-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stats-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}
