/* ===== La Liga 2026/27 — shared styles (EN + ES) ===== */
:root {
    --green: #2e7d32;
    --green-dark: #1b5e20;
    --navy: #1a2a3a;
    --red: #e53935;
    --red-dark: #c62828;
    --gold: #ffd700;
    --bg: #f0f4f0;
    --card-border: #e2e8e6;
    --muted: #5a6a5a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: #1a2a3a;
    min-height: 100vh;
}

a { color: inherit; }

.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% -10%, rgba(255,255,255,0.10) 0%, transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(255,255,255,0.08) 0%, transparent 40%),
        linear-gradient(160deg, var(--navy) 0%, #142433 55%, #0f3d20 100%);
    color: #fff;
    padding: 26px 0 60px;
}

.hero::before {
    /* faint pitch-line pattern */
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.07;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 78px, #fff 78px 79px),
        repeating-linear-gradient(90deg, transparent 0 78px, #fff 78px 79px);
    pointer-events: none;
}

.hero::after {
    /* floodlight glow */
    content: '';
    position: absolute;
    top: -220px;
    left: 50%;
    width: 900px;
    height: 500px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at center, rgba(255,215,0,0.20) 0%, rgba(255,215,0,0) 70%);
    pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
}
.brand .season-tag {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 30px;
}

.lang-switch { display: flex; gap: 6px; }
.lang-link {
    text-decoration: none;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 5px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: 0.2s;
}
.lang-link:hover { background: rgba(255,255,255,0.2); }
.lang-link.active {
    background: var(--green);
    border-color: var(--green);
}

.hero-content { text-align: center; max-width: 760px; margin: 30px auto 0; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(255,215,0,0.15);
    border: 1px solid rgba(255,215,0,0.5);
    color: var(--gold);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    padding: 5px 16px;
    border-radius: 30px;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    margin-bottom: 14px;
}
.hero h1 span { color: var(--gold); }
.hero p.lede {
    color: #cfe0d4;
    font-size: 1.05rem;
    margin-bottom: 26px;
}

.hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.btn-primary {
    display: inline-block;
    background: var(--red);
    color: #fff;
    padding: 15px 42px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(229,57,53,0.35);
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.promo-line {
    font-size: 0.85rem;
    color: #cfe0d4;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}
.promo-code {
    background: var(--navy);
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #cfe0d4;
}
.trust-row span { display: flex; align-items: center; gap: 6px; }

/* ===== MAIN CONTAINER (tracker) ===== */
.container {
    max-width: 1100px;
    margin: -34px auto 0;
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 28px 36px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.10);
    border: 1px solid var(--card-border);
    position: relative;
    z-index: 2;
}

.tabs { display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
    background: var(--bg);
    border: 2px solid transparent;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.92rem;
    color: #2d5a2d;
    cursor: pointer;
    transition: 0.2s;
}
.tab-btn:hover { background: #e2ece2; }
.tab-btn.active { background: var(--green); color: #fff; border-color: var(--green-dark); }

.badge-date { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }

.standings-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.standings-table th {
    background: var(--navy);
    color: #fff;
    padding: 11px 10px;
    text-align: left;
    font-weight: 600;
}
.standings-table th:first-child { border-radius: 10px 0 0 0; width: 40px; text-align: center; }
.standings-table th:last-child { border-radius: 0 10px 0 0; }
.standings-table td { padding: 11px 10px; border-bottom: 1px solid #e8eee8; vertical-align: middle; }
.standings-table tr:hover td { background: #f6faf6; }
.standings-table .pos-1 { background: #fff8e1; }
.standings-table .pos-2 { background: #f5f5f5; }
.standings-table .pos-3 { background: #fbe9e7; }
.pos-badge {
    display: inline-block; width: 26px; height: 26px; line-height: 26px;
    text-align: center; border-radius: 50%; font-weight: 700; font-size: 0.8rem;
    background: #e8eee8; color: var(--navy);
}
.pos-badge.gold { background: var(--gold); }
.pos-badge.silver { background: #c0c0c0; }
.pos-badge.bronze { background: #cd7f32; color: #fff; }
.team-name { font-weight: 600; display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.team-name:hover { text-decoration: underline; }
.team-logo { width: 26px; height: 26px; object-fit: contain; border-radius: 4px; }

.matches-grid { display: grid; gap: 12px; }
.match-card {
    background: #f8faf8;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-left: 4px solid var(--green);
    transition: 0.2s;
}
.match-card:hover { background: #f0f6f0; }
a.match-card { text-decoration: none; color: inherit; cursor: pointer; }
a.match-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); transform: translateY(-1px); }
.match-card .teams { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.95rem; flex-wrap: wrap; }
.match-card .team-block { display: flex; align-items: center; gap: 8px; }
.match-card .team-logo-sm { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.match-card .vs { color: #7a8a7a; font-weight: 400; font-size: 0.8rem; }
.match-card .score {
    font-weight: 700; font-size: 1.2rem; color: var(--navy);
    background: #e8eee8; padding: 4px 16px; border-radius: 30px; min-width: 56px; text-align: center;
}
.match-card .score.live { background: var(--red); color: #fff; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.6; } }
.match-card .status, .match-card .match-time {
    font-size: 0.78rem; color: var(--muted); background: #e8eee8; padding: 3px 12px; border-radius: 20px;
}
.match-card .status.live { background: var(--red); color: #fff; }
.empty-state { color: var(--muted); padding: 20px 4px; }
.hidden { display: none; }

/* ===== MID-PAGE CTA BANNER ===== */
.cta-banner {
    max-width: 1100px;
    margin: 30px auto 0;
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    border-radius: 20px;
    padding: 26px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: #fff;
}
.cta-banner .btn-secondary {
    background: var(--navy);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s;
}
.cta-banner .btn-secondary:hover { background: #0f1b26; }

/* ===== BENEFITS ===== */
.section { max-width: 1100px; margin: 0 auto; padding: 50px 20px 10px; }
.section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 8px; color: var(--navy); }
.section .section-sub { text-align: center; color: var(--muted); margin-bottom: 30px; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.benefit-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 22px 20px;
    text-align: center;
    transition: 0.2s;
}
.benefit-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.06); transform: translateY(-3px); }
.benefit-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.benefit-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--navy); }
.benefit-card p { font-size: 0.88rem; color: var(--muted); }

/* ===== FAQ ===== */
.faq { max-width: 800px; margin: 0 auto; padding: 50px 20px 10px; }
.faq h2 { text-align: center; font-size: 1.7rem; margin-bottom: 30px; color: var(--navy); }
.faq-item { border-bottom: 1px solid var(--card-border); padding: 16px 4px; }
.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--navy);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--green); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 10px; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ===== FOOTER ===== */
.footer-cta {
    max-width: 1100px;
    margin: 50px auto 0;
    background: var(--navy);
    color: #fff;
    padding: 34px 30px;
    border-radius: 20px 20px 0 0;
    text-align: center;
}
.footer-cta p { color: #c8dcc8; margin-bottom: 16px; }

.site-footer {
    background: var(--navy);
    color: #a9bcb0;
    padding: 22px 30px 30px;
}
.site-footer .wrap { max-width: 1100px; }
.disclaimer {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    margin-top: 18px;
    font-size: 0.76rem;
    line-height: 1.6;
    color: #8fa298;
}
.disclaimer .age-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    margin-right: 8px;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; margin-bottom: 8px; }
.footer-links a { text-decoration: none; color: #c8dcc8; }
.footer-links a:hover { text-decoration: underline; }

@media (max-width: 700px) {
    .hero h1 { font-size: 1.7rem; }
    .container { padding: 18px; margin-top: -22px; }
    .standings-table { font-size: 0.78rem; }
    .standings-table th, .standings-table td { padding: 8px 6px; }
    .match-card { flex-direction: column; align-items: stretch; }
    .match-card .teams { justify-content: center; }
    .team-logo { width: 22px; height: 22px; }
    .cta-banner { flex-direction: column; text-align: center; }
    .section, .faq { padding: 40px 16px 10px; }
}

/* ===== MATCH DETAIL PAGE ===== */
.hero-compact { padding: 22px 0 40px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cfe0d4;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.back-link:hover { color: #fff; }

.matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    text-align: center;
}
.matchup .team-col { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; }
.matchup .team-col img { width: 64px; height: 64px; object-fit: contain; }
.matchup .team-col span { font-weight: 700; font-size: 1.02rem; }
.matchup .vs-block { min-width: 100px; }
.matchup .vs-block .vs-label { color: var(--gold); font-weight: 800; font-size: 1.1rem; }
.matchup .fixture-meta { margin-top: 10px; font-size: 0.85rem; color: #cfe0d4; }

.team-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 26px;
}
.team-panel {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
}
.team-panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.team-panel-header img { width: 38px; height: 38px; object-fit: contain; }
.team-panel-header h3 { font-size: 1.05rem; color: var(--navy); }
.team-panel-header .pos-badge { margin-left: auto; }

.team-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.team-stat-grid div { background: var(--bg); border-radius: 10px; padding: 8px 4px; text-align: center; }
.team-stat-grid .stat-value { display: block; font-weight: 800; font-size: 1.02rem; color: var(--navy); }
.team-stat-grid .stat-label { display: block; font-size: 0.66rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 2px; }

.form-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.form-row { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.form-badge {
    width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800; color: #fff;
}
.form-badge.w { background: var(--green); }
.form-badge.d { background: #9aa79a; }
.form-badge.l { background: var(--red); }

.club-info { font-size: 0.85rem; color: var(--muted); line-height: 1.9; border-top: 1px solid var(--card-border); padding-top: 14px; }
.club-info strong { color: var(--navy); }

.match-loading, .match-empty { text-align: center; padding: 40px 10px; color: var(--muted); }

@media (max-width: 700px) {
    .team-panels { grid-template-columns: 1fr; }
    .matchup { gap: 16px; }
    .matchup .team-col { width: 44%; }
}

/* ===== TEAM DETAIL PAGE ===== */
.team-hero-header { text-align: center; }
.team-hero-header img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 14px; }
.team-hero-header h1 { font-size: 2rem; }

.team-sections { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.team-sections .team-panel h2 { font-size: 1.1rem; color: var(--navy); margin-bottom: 14px; }

.team-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
    .team-stat-grid-3 { grid-template-columns: 1fr; }
}

.club-narrative { color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.honours-box {
    background: var(--bg);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}
.honours-box strong { color: var(--navy); }
.moments-list { margin: 10px 0 0 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.7; }
.moments-list li { margin-bottom: 6px; }
