/* ═══════════════════════════════════════════
   Sportlink Teams Overview Widget
   Brand-aligned per the Bernardus design system
   (Charlly Sans + Roboto, orange #E87722, green #1B3A2D)
   ═══════════════════════════════════════════ */

/* Prefix: sto- (Sportlink Teams Overview) */

.sto-wrapper {
    --sto-orange: #E87722;
    --sto-orange-hover: #c4621c;
    --sto-orange-tint: rgba(232, 119, 34, 0.12);
    --sto-orange-tint-hover: rgba(232, 119, 34, 0.18);
    --sto-text: #1a1a1a;
    --sto-text-muted: #6e6156;
    --sto-bg: #ffffff;
    --sto-bg-soft: #f7f5f0;
    --sto-border: #e8e3d8;
    --sto-border-muted: #d8d4ca;
    --sto-radius: 12px;
    --sto-pill: 9999px;
    --sto-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04);
    --sto-shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --sto-font-display: 'Charlly Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --sto-font-body: 'Roboto', system-ui, -apple-system, sans-serif;

    font-family: var(--sto-font-body);
    color: var(--sto-text);
    line-height: 1.5;
}

/* ── Hero (kept for completeness; show_hero is off on the live page,
   the sp-section-header in the Elementor template handles the title) ── */
.sto-hero {
    background: linear-gradient(135deg, var(--sto-orange) 0%, var(--sto-orange-hover) 100%);
    color: #fff;
    padding: 56px 24px;
    text-align: center;
}
.sto-hero h1 {
    font-family: var(--sto-font-display);
    font-size: 44px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 14px;
    line-height: 1.15;
}
.sto-hero h2 {
    font-family: var(--sto-font-body);
    font-size: 17px;
    font-weight: 400;
    opacity: 0.95;
    margin: 0;
}

/* ── Filter Bar — brand pill buttons ── */
.sto-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    justify-content: center !important;
    padding: 24px 16px 36px !important;
    margin: 0 auto !important;
    max-width: 1200px;
}

.sto-filter-button {
    font-family: var(--sto-font-body) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 10px 20px !important;
    border-radius: var(--sto-pill) !important;
    border: 1px solid var(--sto-border-muted) !important;
    background: #ffffff !important;
    color: var(--sto-text) !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.sto-filter-button:hover {
    background: #ffffff !important;
    border-color: var(--sto-orange) !important;
    color: var(--sto-orange) !important;
}

.sto-filter-button.active {
    background: var(--sto-orange) !important;
    border-color: var(--sto-orange) !important;
    color: #ffffff !important;
}

.sto-filter-button.active:hover {
    background: var(--sto-orange-hover) !important;
    border-color: var(--sto-orange-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* ── Container ── */
.sto-teams-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px 48px;
}

/* ── Section Header — dark text + orange bar, matches site section headers ── */
.sto-section-header {
    font-family: var(--sto-font-display);
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sto-text);
    padding: 6px 0 6px 16px;
    border-left: 4px solid var(--sto-orange);
    border-radius: 2px;
    margin: 48px 0 20px;
}

.sto-teams-section:first-child .sto-section-header {
    margin-top: 0;
}

/* ── Teams Grid ── */
.sto-teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0 0 8px;
}

/* ── Team Card ── */
.sto-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--sto-bg);
    border: 1px solid var(--sto-border);
    border-radius: var(--sto-radius);
    padding: 22px 26px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sto-shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 128px;
}

/* "Bekijk team →" affordance at bottom-right via ::after — no PHP change needed */
.sto-card::after {
    content: "Bekijk team →";
    position: absolute;
    bottom: 14px;
    right: 22px;
    font-family: var(--sto-font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--sto-orange);
    letter-spacing: 0.02em;
    opacity: 0.92;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
}

.sto-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sto-shadow-card-hover);
    border-color: rgba(232, 119, 34, 0.45);
}
.sto-card:hover::after {
    color: var(--sto-orange-hover);
    transform: translateX(3px);
    opacity: 1;
}

.sto-card:focus {
    outline: 2px solid var(--sto-orange);
    outline-offset: 2px;
}

.sto-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 0;
}

.sto-card-title {
    font-family: var(--sto-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--sto-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.15;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sto-card-subtitle {
    font-family: var(--sto-font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--sto-text-muted);
    margin: 0;
    line-height: 1.4;
}

/* ── Day Badge (Zaterdag / Zondag) — brand-orange tint ── */
.sto-day-badge {
    display: inline-block;
    font-family: var(--sto-font-body);
    font-size: 10px;
    font-weight: 700;
    color: var(--sto-orange);
    background: var(--sto-orange-tint);
    padding: 3px 10px;
    border-radius: var(--sto-pill);
    white-space: nowrap;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

/* ── Filter: hidden sections ── */
.sto-teams-section.sto-hidden {
    display: none;
}

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */

@media (max-width: 900px) {
    .sto-teams-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .sto-hero {
        padding: 36px 16px;
    }
    .sto-hero h1 {
        font-size: 30px;
        letter-spacing: 0.025em;
    }
    .sto-hero h2 {
        font-size: 15px;
    }

    .sto-filter-bar {
        gap: 8px !important;
        padding: 18px 12px 24px !important;
    }
    .sto-filter-button {
        font-size: 11px !important;
        padding: 9px 16px !important;
        letter-spacing: 0.05em !important;
    }

    .sto-teams-container {
        padding: 8px 18px 32px;
    }
    .sto-section-header {
        font-size: 17px;
        margin: 36px 0 14px;
        padding: 4px 0 4px 12px;
    }
    .sto-teams-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sto-card {
        padding: 18px 20px 16px;
        min-height: 0;
    }
    .sto-card-title {
        font-size: 17px;
    }
    .sto-card-subtitle {
        font-size: 13px;
    }
    .sto-card::after {
        bottom: 12px;
        right: 18px;
        font-size: 11px;
    }
}
