/* ── Synottip Football WC 2026 ── */
:root {
    --sfc-purple-dark: rgba(121, 81, 244, 0.47);
    --sfc-purple-mid: #2d1b4e;
    --sfc-purple-light: #3d2a5c;
    --sfc-green: #47D66E;
    --sfc-gold: #ffd700;
    --sfc-white: #ffffff;
    --sfc-gray: #ffffff;
    --sfc-border: rgba(255, 255, 255, 0.12);
}

.sfc-wrapper {
    font-family: "Roboto Condensed", Sans-serif;
    color: var(--sfc-white);
    background: var(--sfc-purple-dark);
    max-width: 100%;
    overflow: hidden;
    line-height: 1.4;
}

.sfc-wrapper *, .sfc-wrapper *::before, .sfc-wrapper *::after {
    box-sizing: border-box;
}

/* ── Hero ── */
.sfc-hero {
    position: relative;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-color: var(--sfc-purple-mid);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
}

.sfc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(26, 10, 46, 0.3) 0%,
        rgba(26, 10, 46, 0.6) 60%,
        rgba(26, 10, 46, 0.95) 100%
    );
    z-index: 1;
}

.sfc-hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
}

.sfc-title {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 8px;
    background: var(--sfc-green);
    color: var(--sfc-white);
    display: inline-block;
    padding: 8px 24px;
    letter-spacing: 1px;
    border: 3px solid var(--sfc-white);
}

.sfc-subtitle {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    background: var(--sfc-purple-mid);
    display: inline-block;
    padding: 6px 20px;
    border: 2px solid var(--sfc-white);
}

/* ── Flags (flag-icons library) ── */
.sfc-flag {
    display: inline-block;
    font-size: 28px;
    line-height: 1;
    vertical-align: middle;
}

.sfc-flag .fi {
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.sfc-flag-sm {
    font-size: 18px;
}

.sfc-flag-lg {
    font-size: 48px;
}

/* ── Content area ── */
.sfc-content {
    background: linear-gradient(180deg, var(--sfc-purple-dark) 0%, #120822 100%);
    padding: 30px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* ── Two-column layout ── */
.sfc-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.sfc-section-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}

.sfc-section-title.sfc-green {
    color: var(--sfc-green);
}

/* ── Upcoming games list ── */
.sfc-games-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sfc-game-row {
    display: flex;
    align-items: center;
    padding: 10px 8px;
    border-bottom: 1px solid var(--sfc-border);
    gap: 8px;
    font-size: 14px;
    transition: background 0.15s;
}

.sfc-game-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.sfc-game-row.sfc-playoff-row {
    border-left: 3px solid var(--sfc-gold);
}

.sfc-game-date {
    color: var(--sfc-green);
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    white-space: nowrap;
}

.sfc-game-home {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    justify-content: flex-end;
    text-align: right;
    font-size: 14px;
}

.sfc-game-time {
    font-size: 12px;
    color: var(--sfc-green);
    min-width: 40px;
    text-align: center;
}

.sfc-game-away {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    font-size: 14px;
}

.sfc-stage-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--sfc-gold);
    color: #1a0a2e;
    margin-right: 4px;
}

/* ── Hidden rows (see more) ── */
.sfc-games-hidden,
.sfc-standings-hidden {
    display: none;
}

/* ── See more button ── */
.sfc-see-more {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background: transparent;
    border: 1px solid var(--sfc-border);
    border-radius: 6px;
    color: var(--sfc-green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    text-align: center;
}

.sfc-see-more:hover {
    background: rgba(71, 214, 110, 0.1);
    border-color: var(--sfc-green);
}

/* ── Standings table ── */
.sfc-standings-container .sfc-standings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.sfc-standings-container thead th {
    padding: 6px 6px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--sfc-gray);
    text-transform: uppercase;
    border-bottom: 2px solid var(--sfc-border);
}

.sfc-standings-container td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--sfc-border);
    font-size: 14px;
}

.sfc-standings-container .sfc-rank {
    color: var(--sfc-green);
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.sfc-standings-container .sfc-team-name {
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 8px;
}

.sfc-standings-container .sfc-stat {
    text-align: center;
    width: 36px;
    color: var(--sfc-gray);
}

.sfc-standings-container .sfc-stat-pts {
    color: var(--sfc-white);
    font-weight: 700;
}

/* ── Featured match odds ── */
.sfc-featured-odds {
    background: var(--sfc-purple-dark);
    border-radius: 8px;
    padding: 24px 20px;
    margin-bottom: 40px;
    text-align: center;
}

.sfc-featured-match {
    margin-top: 16px;
}

.sfc-featured-match + .sfc-featured-match {
    margin-top: 24px;
    padding-top: 24px;
}

.sfc-featured-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #7951f4;
    padding: 20px 30px;
    margin-bottom: 16px;
}

.sfc-featured-home-name,
.sfc-featured-away-name {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sfc-featured-vs {
    font-size: 20px;
    font-weight: 700;
    color: var(--sfc-green);
}

.sfc-odds-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.sfc-odd {
    font-size: 22px;
    font-weight: 700;
    color: var(--sfc-green);
    padding: 0px 10px 8px 10px;
    border-radius: 6px;
    text-decoration: none;
}

.sfc-odd-label {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
    display: block;
    margin-bottom: 2px;
}

/* ── Blog CTA ── */
.sfc-blog-cta {
    text-align: center;
    padding: 20px 0;
}

.sfc-blog-cta h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 16px;
}

.sfc-blog-btn {
    display: inline-block;
    padding: 12px 48px;
    border: 2px solid var(--sfc-white);
    border-radius: 30px;
    color: var(--sfc-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s;
}

.sfc-blog-btn:hover {
    background: var(--sfc-white);
    color: var(--sfc-purple-dark);
}

/* ── Loading / empty states ── */
.sfc-loading,
.sfc-empty {
    text-align: center;
    padding: 30px 10px;
    color: var(--sfc-white);
    font-size: 14px;
}

.sfc-standings-placeholder {
    font-size: 18px;
    font-weight: 600;
    padding: 40px 10px;
}

.sfc-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--sfc-gray);
    border-top-color: var(--sfc-green);
    border-radius: 50%;
    animation: sfc-spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* ── Standalone widget spacing ── */
.sfc-widget {
    padding: 24px 20px;
    border-radius: 8px;
}

.sfc-widget .sfc-section-title {
    margin-top: 0;
}

/* ── Floating timer ── */
.sfc-floating-timer {
    position: fixed;
    top: 254px;
    right: 24px;
    z-index: 9999;
    background: #7951f4;
    backdrop-filter: blur(12px);
    padding: 18px 24px;
    text-align: center;
    min-width: 200px;
    max-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-family: "Roboto Condensed", Sans-serif;
    color: var(--sfc-white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sfc-floating-timer.sfc-floating-hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.sfc-floating-label {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    color: var(--sfc-white);
}

.sfc-floating-games .sfc-next-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.sfc-floating-games .sfc-next-teams + .sfc-next-teams {
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sfc-floating-timer .sfc-vs {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.8;
}

.sfc-floating-timer .sfc-flag {
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
}

.sfc-floating-timer .sfc-countdown {
    font-size: 26px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    margin-top: 8px;
}

.sfc-floating-close {
    position: absolute;
    top: -3px;
    right: 3px;
    background: none;
    border: none;
    color: var(--sfc-gray);
    font-size: 20px;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    transition: color 0.15s;
}

.sfc-floating-close:hover {
    color: none;
    background: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sfc-title {
        font-size: 22px;
        padding: 6px 14px;
    }

    .sfc-subtitle {
        font-size: 14px;
        padding: 4px 12px;
    }

    .sfc-hero {
        min-height: 350px;
        padding: 30px 16px;
    }

    .sfc-floating-timer {
        top: 200px;
        right: 12px;
        min-width: 170px;
        padding: 7px 9px;
    }

    .sfc-floating-label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .sfc-floating-timer .sfc-vs {
        font-size: 14px;
    }

    .sfc-floating-timer .sfc-countdown {
        font-size: 20px;
        margin-top: 0px;
    }

    .sfc-floating-timer .sfc-flag {
        font-size: 22px;
    }

    .sfc-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sfc-featured-home-name,
    .sfc-featured-away-name {
        font-size: 20px;
    }

    .sfc-featured-teams {
        padding: 14px 16px;
        gap: 10px;
    }

    .sfc-flag-lg {
        font-size: 36px;
    }

    .sfc-content {
        padding: 20px 12px 30px;
    }
}

@media (max-width: 480px) {
    .sfc-title {
        font-size: 18px;
    }

    .sfc-featured-home-name,
    .sfc-featured-away-name {
        font-size: 16px;
    }

    .sfc-countdown {
        font-size: 22px;
    }

    .sfc-game-home,
    .sfc-game-away {
        font-size: 12px;
    }
}
