/**
 * Torneo de Predicciones FAVA - Estilos públicos
 * Paleta: Celeste y Blanco (Argentina) + Dorado (acento)
 */

:root {
    --primary: #75AADB;        /* Celeste Argentina */
    --primary-dark: #4A8EC2;   /* Celeste oscuro */
    --primary-darker: #2E6DA4; /* Celeste más oscuro */
    --secondary: #FFFFFF;      /* Blanco */
    --accent: #C9A84C;         /* Dorado */
    --accent-dark: #A6882E;    /* Dorado oscuro */
    --dark: #5f5f5f;           /* Fondo oscuro */
    --gray-light: #f8f9fa;
    --gray-medium: #6c757d;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
}

.bg-dark {
    background-color: #48b1f8!important;
}

/* =============================================
   GENERAL
   ============================================= */
body {
    font-family: 'Montserrat', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-light);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.mobile {
    display: none;
}

.padding-cont {
    padding-top: 90px !important;
    padding-bottom: 120px !important;
}

.label {    
    display: flex !important;
}

/* =============================================
   GRADIENTES
   ============================================= */
.bg-primary-gradient {
    background-color: #e52928 !important;
}
.bg-primary-red {
    background-color: #e52928 !important;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: 1px;
}

/* =============================================
   HERO
   ============================================= */
.hero-section {
    background: url('img/fm-header-premios.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section .card {
    border-radius: 16px;
}

.hero-section .card-body {
    color: #333;
}

/* =============================================
   BOTONES
   ============================================= */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
}

/* =============================================
   NAV PILLS
   ============================================= */
.nav-pills .nav-link {
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 8px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary);
    color: #fff;
}

/* =============================================
   BANNER
   ============================================= */
.banner-wrapper {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
 
.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
 
/* =============================================
   CARDS
   ============================================= */
.card {
    border-radius: 12px;
}

.card-header.bg-primary-gradient {
    border-radius: 12px 12px 0 0;
}

.card h5 {
    font-weight: 700 !important;
    color: #e52928 !important;
    font-size: 1.4rem !important;

}

/* =============================================
   MATCH CARD (Predicción)
   ============================================= */
.match-card {
    background: #fff;
    border-color: #e9ecef !important;
    transition: box-shadow 0.2s;
}

.match-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.match-team {
    font-size: 0.95rem;
}

.score-input {
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
}

.score-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(201, 168, 76, 0.25);
}

.score-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 38px;
    font-weight: 700;
    font-size: 1.1rem;
    background: #e9ecef;
    border: 2px solid #ced4da;
    border-radius: 8px;
    color: #333;
}

/* =============================================
   BANDERAS
   ============================================= */
.flag-icon {
    width: 24px;
    height: auto;
    vertical-align: middle;
    margin: 0 4px;
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.15);
}

/* =============================================
   ACENTO DORADO
   ============================================= */
.text-accent {
    color: var(--accent) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
    color: #fff;
}

/* =============================================
   TABLA DE POSICIONES
   ============================================= */
.table-hover tbody tr:hover {
    background-color: rgba(117, 170, 219, 0.08);
}

.trophy-gold { font-size: 1.3rem; }
.trophy-silver { font-size: 1.2rem; }
.trophy-bronze { font-size: 1.1rem; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .mobile {
        display: block !important
    }
    .padding-cont {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    .hero-section {
        background: url('img/Cabezal-premios-mobile-v2.jpg') center center / cover no-repeat !important;
        position: relative;
        overflow: hidden;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .hero-section::before {
        background: rgba(0, 56, 87, 0.3) !important;
    }

    .match-team {
        font-size: 0.8rem;
    }

    .score-input {
        width: 45px !important;
        font-size: 1rem;
    }

    .display-5 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .match-card .row {
        flex-wrap: nowrap;
    }
}
