/*
 * Sports Predictor Portal - Custom Stylesheet
 * Design Theme: "Exotic Gradient" (Cool Tones)
 * Version: 3.3 - Unified LaLiga module design.
 */

/* --- 1. GLOBAL SETUP: PALETTE, TYPOGRAPHY, ANIMATED BACKGROUND --- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    /* Color Palette */
    --text-light: #FFFFFF;
    --text-muted: #E0E0E0;
    --border-glass: rgba(255, 255, 255, 0.1);
    --surface-glass: rgba(0, 0, 0, 0.15);

    /* Exotic Accent Palette (Cool Tones) */
    --exotic-cyan: #00FFFF;
    --exotic-magenta: #FF00FF;
    --exotic-green: #00FF7F;
    --exotic-gradient: linear-gradient(-45deg, #00FFFF, #1E90FF, #8A2BE2, #FF00FF);
    --exotic-gradient-static: linear-gradient(135deg, var(--exotic-cyan), var(--exotic-magenta));
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    background: var(--exotic-gradient);
    background-size: 400% 400%;
    animation: gradientAnimation 20s ease infinite;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* --- 2. "GLASSMORPHISM" COMPONENTS --- */
.navbar-dark,
.footer,
.card {
    background: var(--surface-glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

.navbar-dark { border-bottom: 1px solid var(--border-glass); }
.nav-link.active { font-weight: bold; color: var(--text-light) !important; border-bottom: 2px solid var(--exotic-cyan) !important; }
.footer { border-top: 1px solid var(--border-glass); color: var(--text-muted); }
.footer a:hover { color: var(--text-light); }
.card { border-radius: 0.75rem; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); }
.card-header { background-color: transparent !important; border-bottom: 1px solid var(--border-glass) !important; }
.card::before { background: none !important; }

/* --- 3. BOOTSTRAP COMPONENT OVERRIDES --- */
.btn-primary { background: var(--exotic-gradient-static); border: none; color: #000; font-weight: bold; }
.form-control, .form-select, .select2-container--bootstrap-5 .select2-selection { background-color: var(--surface-glass); border: 1px solid var(--border-glass); color: var(--text-light); }
.form-control::placeholder { color: var(--text-muted); }
.select2-container--bootstrap-5 .select2-dropdown { background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(10px); border: 1px solid var(--border-glass); }
.select2-container--bootstrap-5 .select2-results__option { color: var(--text-light); }
.select2-container--bootstrap-5 .select2-results__option--highlighted { background: var(--exotic-gradient-static); color: #000; }

/* --- 4. HOMEPAGE & RESULT PAGE STYLES --- */
.section-title { font-weight: bold; color: var(--text-light); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.section-title::after { display: none; }
.module-card { padding: 2rem 1rem; text-decoration: none; border-radius: 0.75rem; border: 1px solid transparent; transition: background-color 0.3s ease, border-color 0.3s ease; }
.module-card:hover { background-color: var(--surface-glass); border-color: var(--border-glass); }
.module-card .icon-feature { font-size: 4rem; margin-bottom: 1.5rem; text-shadow: 0 0 15px currentColor; }
.module-card h4, .module-card p { color: var(--text-light); }
.module-card .icon-atp { color: var(--exotic-cyan); }
.module-card .icon-wta { color: var(--exotic-magenta); }
.module-card .icon-laliga { color: var(--exotic-green); }
.chart-container-gradient { height: 450px; padding: 1.5rem; }
.result-header { display: flex; align-items: center; justify-content: space-around; text-align: center; padding: 1rem; }
.player-profile { text-align: center; }
.player-profile a, .player-profile h5 { color: var(--text-light); text-decoration: none; }
.player-photo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-glass); margin-bottom: 0.5rem; }
.vs-separator { font-size: 2rem; font-weight: bold; color: var(--text-muted); }
.progress { background-color: rgba(255,255,255, 0.1); }
.calendar-link { color: var(--exotic-cyan); text-decoration: none; font-weight: bold; transition: color 0.3s ease; }
.calendar-link:hover { color: var(--exotic-magenta); text-decoration: underline; }

/* --- 5. COMPONENT RESETS & OVERRIDES --- */
.bg-light { background-color: var(--surface-glass) !important; }
.card-body, .card-footer { background-color: transparent !important; }
.list-group-item { background-color: transparent !important; border-color: var(--border-glass) !important; color: var(--text-light) !important; }
.list-group-item.d-flex { color: var(--text-light) !important; }
.badge.bg-secondary { background-color: var(--surface-glass) !important; border: 1px solid var(--border-glass); color: var(--text-muted) !important; }

/* --- 6. UNIFIED PREDICTOR TABS STYLES (LaLiga) --- */
.predictor-tabs .nav-link {
    color: var(--text-muted);
    font-weight: bold;
    border-bottom: 3px solid transparent;
}
.predictor-tabs .nav-link:hover {
    color: var(--text-light);
}
.predictor-tabs .nav-link.active {
    color: var(--text-light) !important;
    background-color: transparent !important;
    border-color: transparent;
    position: relative;
}
.predictor-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--exotic-gradient-static);
}