/* =====================================================
   VARIABLES CSS - Palette Betika Vibrante
   ===================================================== */
:root {
    --primary: #B8FF00;
    --primary-dark: #9CD600;
    --primary-light: #D4FF66;
    --primary-glow: rgba(184, 255, 0, 0.3);
    
    --secondary: #101827;
    --secondary-dark: #070B14;
    --secondary-light: #1A2538;
    
    --accent: #5DDB1F;
    --accent-dark: #3DA80E;
    --accent-light: #8AE855;
    
    --background: #070B14;
    --background-card: #0F1622;
    --background-hover: #1A2538;
    
    --text-light: #FFFFFF;
    --text-muted: #C0C8D0;
    --text-dark: #0A0A0A;
    
    --success: #5DDB1F;
    --warning: #FFD700;
    --danger: #FF4444;
    --info: #00D4FF;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-primary-reverse: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-dark: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
    --gradient-card: linear-gradient(145deg, var(--background-card) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #B8FF00 0%, #5DDB1F 50%, #101827 100%);
    --gradient-glow: radial-gradient(circle at 30% 50%, rgba(184, 255, 0, 0.15), transparent 70%);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar stylisée */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-primary-reverse);
}

/* =====================================================
   NAVBAR - TRÈS VISIBLE
   ===================================================== */
.navbar {
    background: rgba(7, 11, 20, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-primary);
    border-image-slice: 1;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(184, 255, 0, 0.3);
    letter-spacing: -0.5px;
}

.navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(184, 255, 0, 0.5));
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    margin: 0 0.3rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.navbar-nav .nav-link i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    background: var(--gradient-primary);
    color: var(--text-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(184, 255, 0, 0.3);
}

.navbar-nav .nav-link.active {
    background: var(--gradient-primary);
    color: var(--text-dark) !important;
    box-shadow: 0 4px 15px rgba(184, 255, 0, 0.4);
}

.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

/* Dropdown menu */
.dropdown-menu {
    background: var(--background-card);
    border: 1px solid rgba(184, 255, 0, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-menu .dropdown-item {
    color: var(--text-light);
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    background: var(--gradient-primary);
    color: var(--text-dark);
    transform: translateX(5px);
}

.dropdown-menu .dropdown-divider {
    border-color: rgba(184, 255, 0, 0.1);
}

/* =====================================================
   HERO SECTION - SPECTACULAIRE
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, #070B14 0%, #101827 50%, #0A1525 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    margin-bottom: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(184, 255, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-section::after {
    content: '⚽';
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 300px;
    opacity: 0.05;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(184, 255, 0, 0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* =====================================================
   CARDS - ÉLÉGANTES ET LUMINEUSES
   ===================================================== */
.card {
    background: linear-gradient(145deg, var(--background-card) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 255, 0, 0.15);
}

.card-header {
    background: rgba(184, 255, 0, 0.05);
    border-bottom: 1px solid rgba(184, 255, 0, 0.1);
    padding: 1.2rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Team Card spécifique */
.team-card {
    text-align: center;
    cursor: pointer;
}

.team-card .team-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(184, 255, 0, 0.1), rgba(93, 219, 31, 0.05));
    border-radius: 50%;
    transition: all 0.4s ease;
}

.team-card:hover .team-logo {
    transform: scale(1.1);
    background: linear-gradient(145deg, rgba(184, 255, 0, 0.2), rgba(93, 219, 31, 0.1));
    box-shadow: 0 0 30px rgba(184, 255, 0, 0.2);
}

/* Match Card */
.match-card {
    border-left: 4px solid var(--primary);
    background: linear-gradient(145deg, var(--background-card), var(--secondary));
}

.match-card .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

/* News Card */
.news-card {
    height: 100%;
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

/* =====================================================
   BOUTONS - ÉCLAIRANTS
   ===================================================== */
.btn {
    border-radius: 12px;
    padding: 0.7rem 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(184, 255, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184, 255, 0, 0.4);
    color: var(--text-dark);
}

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

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: var(--text-dark);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 255, 0, 0.3);
}

.btn-success {
    background: var(--gradient-primary-reverse);
    border: none;
    color: var(--text-dark);
}

.btn-warning {
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border: none;
    color: var(--text-dark);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =====================================================
   TABLEAUX - MODERNES
   ===================================================== */
.table {
    color: var(--text-light);
    background: transparent;
    margin-bottom: 0;
}

.table thead th {
    background: linear-gradient(135deg, rgba(184, 255, 0, 0.1), rgba(93, 219, 31, 0.05));
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    padding: 1.2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(184, 255, 0, 0.1);
    font-weight: 500;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: rgba(184, 255, 0, 0.05);
    transform: scale(1.01);
}

.classement-table tbody tr:first-child {
    background: linear-gradient(135deg, rgba(184, 255, 0, 0.15), rgba(93, 219, 31, 0.05));
    border-left: 4px solid var(--primary);
}

.classement-table tbody tr:first-child td:first-child {
    position: relative;
}

.classement-table tbody tr:first-child td:first-child::before {
    content: '🏆';
    margin-right: 8px;
}

/* =====================================================
   FORMULAIRES
   ===================================================== */
.form-control, .form-select {
    background: rgba(16, 24, 39, 0.9);
    border: 1px solid rgba(184, 255, 0, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    background: var(--secondary);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184, 255, 0, 0.1);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   BADGES
   ===================================================== */
.badge {
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.75rem;
}

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

.badge.bg-success {
    background: var(--gradient-primary-reverse) !important;
    color: var(--text-dark);
}

/* =====================================================
   FOOTER MOBILE - STYLISÉ
   ===================================================== */
.footer-mobile {
    background: rgba(16, 24, 39, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(184, 255, 0, 0.2);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: none;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .footer-mobile {
        display: block;
    }
    
    body {
        padding-bottom: 80px;
    }
}

.footer-mobile a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-mobile a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-mobile i {
    font-size: 1.4rem;
    margin-bottom: 5px;
    display: block;
    transition: all 0.3s ease;
}

.footer-mobile a:hover i {
    transform: scale(1.1);
    color: var(--primary);
    text-shadow: 0 0 10px rgba(184, 255, 0, 0.5);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(184, 255, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(184, 255, 0, 0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* =====================================================
   SECTIONS SPÉCIFIQUES
   ===================================================== */

/* Betika Cup Hero */
.betika-cup-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(184, 255, 0, 0.2);
}

.betika-cup-hero::after {
    content: '⚽🏆';
    position: absolute;
    bottom: -30px;
    right: -30px;
    font-size: 180px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* Sponsors */
.sponsors-section {
    background: linear-gradient(145deg, var(--background-card), var(--secondary));
    border-radius: 30px;
    padding: 2.5rem;
    margin-top: 2rem;
}

.sponsor-card {
    background: rgba(184, 255, 0, 0.05);
    border-radius: 16px;
    transition: all 0.4s ease;
    padding: 1.5rem;
    text-align: center;
}

.sponsor-card:hover {
    background: rgba(184, 255, 0, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(184, 255, 0, 0.1);
}

/* Notifications */
.notification-item {
    background: var(--background-card);
    border-bottom: 1px solid rgba(184, 255, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem;
}

.notification-item:hover {
    background: rgba(184, 255, 0, 0.05);
    transform: translateX(5px);
}

.notification-item:not(.bg-light) {
    background: rgba(184, 255, 0, 0.05);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: var(--danger);
    animation: glowPulse 2s infinite;
}

/* Statistiques cards */
.stat-card {
    background: linear-gradient(145deg, var(--background-card), var(--secondary));
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(184, 255, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(184, 255, 0, 0.15);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
    
    .navbar-collapse {
        background: rgba(7, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table thead th, .table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}

/* =====================================================
   GLASS EFFECTS & BACKGROUNDS
   ===================================================== */
.glass-card {
    background: rgba(16, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(184, 255, 0, 0.15);
    border-radius: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Bouton notification */
.btn-reminder, .btn-bet {
    background: linear-gradient(135deg, rgba(184, 255, 0, 0.1), rgba(93, 219, 31, 0.05));
    border: 1px solid rgba(184, 255, 0, 0.3);
    color: var(--primary);
}

.btn-reminder:hover, .btn-bet:hover {
    background: var(--gradient-primary);
    color: var(--text-dark);
    border-color: transparent;
}

/* Loading spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(184, 255, 0, 0.1);
    border-top: 3px solid var(--primary);
    border-right: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alertes stylisées */
.alert {
    border-radius: 16px;
    border: none;
    background: var(--background-card);
    color: var(--text-light);
    padding: 1rem 1.5rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(93, 219, 31, 0.15), rgba(93, 219, 31, 0.05));
    border-left: 4px solid var(--accent);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05));
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border-left: 4px solid var(--info);
}