/* =============================================================================
   VFC Fixtures & Results — Frontend Styles
   Naming convention: vfc_ prefix, underscores not hyphens
   ============================================================================= */

/* ── Widget Base ─────────────────────────────────────────────────────────── */
.vfc_widget {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    font-family: inherit;
    max-width: 480px;
    margin: 0 auto;
}

.vfc_widget_header {
    background: #8B0000;
    color: #fff;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.vfc_widget_title {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    flex: 1;
}

.vfc_competition_badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.vfc_season_label {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    padding: 8px;
    letter-spacing: 0.5px;
}

/* ── Widget Meta (date, venue) ───────────────────────────────────────────── */
.vfc_widget_meta {
    background: #f7f7f7;
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 13px;
    color: #555;
}

.vfc_match_datetime::before { content: '🗓 '; }
.vfc_match_venue::before    { content: '📍 '; }

/* ── Teams Layout ────────────────────────────────────────────────────────── */
.vfc_match_teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px;
    gap: 10px;
}

.vfc_team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.vfc_team_name {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #111;
    word-break: break-word;
}

.vfc_team_logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

.vfc_team_initials {
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ── VS / Scoreboard ─────────────────────────────────────────────────────── */
.vfc_scoreboard {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.vfc_vs_board .vfc_vs {
    font-size: 28px;
    font-weight: 900;
    color: #222;
    letter-spacing: 2px;
}

/* ── Live Score ──────────────────────────────────────────────────────────── */
.vfc_live_score {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vfc_live_score .vfc_score_home,
.vfc_live_score .vfc_score_away {
    background: #111;
    color: #fff;
    font-size: 32px;
    font-weight: 900;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
}

.vfc_live_score .vfc_score_sep {
    font-size: 24px;
    font-weight: 900;
    color: #333;
}

.vfc_live_minute {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ── Status Badges ───────────────────────────────────────────────────────── */
.vfc_badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vfc_badge_upcoming  { background: rgba(255,255,255,0.2); color: #fff; }
.vfc_badge_live      { background: #e74c3c; color: #fff; animation: vfc_pulse 1.5s infinite; }
.vfc_badge_halftime  { background: #f39c12; color: #fff; }
.vfc_badge_finished  { background: rgba(255,255,255,0.2); color: #fff; }
.vfc_badge_postponed { background: #e67e22; color: #fff; }
.vfc_badge_cancelled { background: #95a5a6; color: #fff; }

.vfc_live_dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: vfc_blink 1s infinite;
}

@keyframes vfc_pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.85; }
}
@keyframes vfc_blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Live Match Widget Header ────────────────────────────────────────────── */
.vfc_live_widget .vfc_widget_header {
    background: #c00;
}

/* ── Events Timeline ─────────────────────────────────────────────────────── */
.vfc_events_timeline {
    border-top: 1px solid #eee;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.vfc_event_item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #333;
    padding: 4px 0;
}

.vfc_event_item.vfc_ev_home {
    justify-content: flex-end;
    text-align: right;
}
.vfc_event_item.vfc_ev_away {
    justify-content: flex-start;
    text-align: left;
}

.vfc_ev_minute {
    font-weight: 700;
    color: #8B0000;
    min-width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.vfc_ev_player {
    font-weight: 600;
}

.vfc_ev_extra {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.vfc_ev_icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── Fixtures List ───────────────────────────────────────────────────────── */
.vfc_fixtures_list,
.vfc_results_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vfc_fixture_row,
.vfc_result_row {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 14px 20px;
    overflow: hidden;
}

.vfc_fixture_meta,
.vfc_result_meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12px;
    color: #888;
    flex-wrap: wrap;
}

.vfc_fixture_date,
.vfc_result_date {
    font-weight: 600;
    color: #555;
}

.vfc_fixture_competition,
.vfc_result_competition {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vfc_fixture_teams,
.vfc_result_teams {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vfc_fixture_teams .vfc_team,
.vfc_result_teams .vfc_team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.vfc_fixture_teams .vfc_away_team,
.vfc_result_teams .vfc_away_team {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.vfc_fixture_vs {
    font-weight: 900;
    font-size: 16px;
    color: #333;
    padding: 0 8px;
    flex-shrink: 0;
}

.vfc_result_score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 22px;
    font-weight: 900;
    color: #111;
    padding: 0 8px;
    flex-shrink: 0;
}

.vfc_result_score .vfc_score_sep {
    font-size: 18px;
    color: #888;
}

.vfc_fixture_venue {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f5f5f5;
}
.vfc_fixture_venue::before { content: '📍 '; }

/* ── Result outcome ──────────────────────────────────────────────────────── */
.vfc_result_win   { border-left: 4px solid #27ae60; }
.vfc_result_draw  { border-left: 4px solid #f39c12; }
.vfc_result_loss  { border-left: 4px solid #e74c3c; }

/* ── Result Events ───────────────────────────────────────────────────────── */
.vfc_result_events {
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.vfc_result_events summary {
    cursor: pointer;
    font-size: 12px;
    color: #888;
    user-select: none;
    outline: none;
}

/* ── No match ────────────────────────────────────────────────────────────── */
.vfc_no_match {
    padding: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 400px) {
    .vfc_team_name { font-size: 12px; }
    .vfc_live_score .vfc_score_home,
    .vfc_live_score .vfc_score_away { font-size: 26px; width: 44px; height: 44px; }
    .vfc_match_teams { padding: 16px 12px; }
}

/* =============================================================================
   VFC Standings Table — Frontend
   ============================================================================= */
.vfc_standings_wrap {
    width: 100%;
    font-family: inherit;
}
.vfc_standings_header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.vfc_standings_competition {
    font-weight: 800;
    font-size: 15px;
    color: #111;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.vfc_standings_season {
    font-size: 12px;
    color: #888;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 20px;
}
.vfc_standings_table_outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.vfc_standings_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 420px;
}
.vfc_standings_table thead tr {
    border-bottom: 2px solid #111;
}
.vfc_standings_table th {
    padding: 8px 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #555;
    white-space: nowrap;
}
.vfc_standings_table th.vfc_st_club {
    text-align: left;
}
.vfc_standings_table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background .15s;
}
.vfc_standings_table tbody tr:hover {
    background: #f9f9f9;
}
.vfc_standings_table td {
    padding: 10px 10px;
    text-align: center;
    color: #222;
}
.vfc_st_pos {
    font-weight: 700;
    color: #888 !important;
    width: 36px;
}
.vfc_st_club {
    text-align: left !important;
}
.vfc_st_club_inner {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vfc_st_logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}
.vfc_st_name {
    font-weight: 600;
}
.vfc_st_num {
    color: #444;
}
.vfc_st_gd {
    font-weight: 600;
}
.vfc_st_pts {
    font-weight: 800;
    font-size: 15px;
    color: #111 !important;
}
/* Highlighted row (Valletta / selected team) */
.vfc_st_row.vfc_st_highlight {
    background: #fff8f8;
    border-left: 3px solid #8B0000;
}
.vfc_st_row.vfc_st_highlight .vfc_st_name {
    color: #8B0000;
}
/* Mini widget */
.vfc_standings_mini_wrap .vfc_standings_table {
    min-width: 280px;
}
