:root {
    --fifa-green: #006633;
    --fifa-gold:  #C8A600;
    --fifa-dark:  #1a1a2e;
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

html, body { height: 100%; }

body {
    background-color: #f4f4f4;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Empuja el footer al fondo — sticky footer con flexbox */
body > div.container { flex: 1 0 auto; }

/* ── Navbar ── */
.navbar-brand {
    font-weight: 700;
    color: var(--fifa-gold) !important;
    letter-spacing: 0.05em;
}

/* ── Login hero ── */
.card-hero {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

/* ── Day group / Jornada ── */
.jornada-badge {
    background-color: var(--fifa-dark);
    color: var(--fifa-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
}
.day-header::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1rem;
    background-color: var(--fifa-green);
    border-radius: 2px;
}
.day-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

/* ── Match card ── */
.match-card {
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s;
}
.match-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.match-card.locked { opacity: 0.7; background-color: #f8f8f8; }

.team-flag    { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; }
.team-flag-lg { width: 54px; height: 36px; object-fit: cover; border-radius: 4px; }

.score-input {
    width: 60px; text-align: center;
    font-size: 1.4rem; font-weight: 700; border-radius: 8px;
}

/* ── Points ── */
.pts-badge {
    background-color: var(--fifa-green); color: #fff;
    border-radius: 20px; padding: 3px 10px; font-weight: 700;
}
.pts-badge.exact { background-color: var(--fifa-gold); color: var(--fifa-dark); }

/* ── Ranking ── */
.ranking-table thead { background-color: var(--fifa-dark); color: #fff; }
.ranking-position         { font-size: 1.2rem; font-weight: 700; }
.ranking-position.gold    { color: #C8A600; }
.ranking-position.silver  { color: #aaaaaa; }
.ranking-position.bronze  { color: #cd7f32; }

/* ── Status ── */
.status-live {
    background: #dc3545; color: #fff;
    border-radius: 12px; padding: 2px 8px; font-size: 0.75rem;
    animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.badge-phase {
    background-color: var(--fifa-green); color: #fff;
    font-size: 0.7rem; border-radius: 4px; padding: 2px 6px;
}

/* ── Admin sidebar ── */
.admin-sidebar { background-color: var(--fifa-dark); min-height: 100vh; }
.admin-sidebar .nav-link { color: rgba(255,255,255,.8); border-radius: 8px; margin-bottom: 4px; }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active { background-color: var(--fifa-green); color: #fff; }

/* ── Focus ── */
.btn:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

@media (max-width: 576px) {
    .score-input { width: 50px; font-size: 1.2rem; }
    .team-flag   { width: 28px; height: 18px; }
}
