/* ===========================================
   Sportlink Widget - Stylesheet
   =========================================== */

/* ===========================================
   Global Button & Link Styles
   =========================================== */

/* Button (.bn-btn) */
.bn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.4rem;
  background-color: #E7620B;
  color: #FFFFFF;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.bn-btn .bn-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 0.7rem;
  line-height: 1;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.bn-btn:hover {
  background-color: #C45509;
  transform: translateY(-1px);
}
.bn-btn:hover .bn-btn-icon {
  border-color: rgba(255, 255, 255, 1);
  transform: translateX(2px);
}
.bn-btn:active {
  background-color: #B04A07;
  transform: translateY(0);
}
.bn-btn:focus-visible {
  outline: 2px solid #E7620B;
  outline-offset: 2px;
}

/* Text Link (.bn-link) */
.bn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #E7620B;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 1px;
  transition: color 0.2s ease;
}
.bn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #C45509;
  transition: width 0.25s ease;
}
.bn-link .bn-link-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.9em;
}
.bn-link:hover {
  color: #C45509;
}
.bn-link:hover::after {
  width: 100%;
}
.bn-link:hover .bn-link-arrow {
  transform: translateX(3px);
}
.bn-link:focus-visible {
  outline: 2px solid #E7620B;
  outline-offset: 2px;
}

/* ===========================================
   Section Heading Component
   =========================================== */

.sv-section-heading {
  text-align: center;
  padding: 64px 24px 48px;
}
.sv-section-heading__title {
  font-family: 'Charlly Sans', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 32px;
  line-height: 1.2;
  color: #1A1A1A;
  margin: 0;
}
.sv-section-heading__divider {
  width: 56px;
  height: 3px;
  background-color: #E7620B;
  margin: 16px auto 0;
  border: none;
  border-radius: 1.5px;
}
.sv-section-heading__subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6B6B6B;
  margin: 14px 0 0;
}
.sv-section-heading--inverted .sv-section-heading__title {
  color: #FFFFFF;
}
.sv-section-heading--inverted .sv-section-heading__subtitle {
  color: rgba(255, 255, 255, 0.6);
}
.sv-section-heading--left {
  text-align: left;
}
.sv-section-heading--left .sv-section-heading__divider {
  margin-left: 0;
  margin-right: auto;
}
@media (max-width: 1024px) {
  .sv-section-heading { padding: 48px 20px 40px; }
  .sv-section-heading__title { font-size: 28px; }
}
@media (max-width: 600px) {
  .sv-section-heading { padding: 40px 16px 32px; }
  .sv-section-heading__title { font-size: 24px; letter-spacing: 0.06em; }
  .sv-section-heading__divider { width: 48px; }
  .sv-section-heading__subtitle { font-size: 13px; }
}

/* ===========================================
   Design System Foundation
   =========================================== */

/* Card wrapper — unified container for all widgets */
.sp-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(26,26,46,0.08);
    border: 1px solid #eef0f2;
    box-sizing: border-box;
}

/* Section header — unified for all widget titles */
.sp-section-header {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A2E;
    margin: 0;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

/* Label — small uppercase field labels */
.sp-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

/* Value — field values */
.sp-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Button/link — unified action links */
.sp-btn,
.sp-widget .sp-btn,
a.sp-btn,
a.sp-btn:visited {
    display: inline-block;
    padding: 12px 24px;
    background: #E87722 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 25px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    box-shadow: none !important;
}
.sp-btn:hover,
.sp-widget .sp-btn:hover,
a.sp-btn:hover {
    background: #D06820 !important;
    color: #FFFFFF !important;
}

/* Elementor flex-container equal-height support */
.sp-widget {
    height: 100%;
    box-sizing: border-box;
}
.sp-widget > .sp-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* CSS Custom Properties (defaults, overridable via inline style) */
.sp-widget {
    --sp-header-bg: #1A1A2E;
    --sp-header-color: #ffffff;
    --sp-highlight: #FFF3E8;
    --sp-border: #e0e0e0;
    --sp-text: #333333;
    --sp-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--sp-text);
    margin-bottom: 20px;
}

/* ---- Error / Empty ---- */
.sp-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: var(--sp-radius);
    margin: 10px 0;
}
.sp-empty {
    color: #888;
    font-style: italic;
    padding: 12px 0;
}

/* ---- Search Bar ---- */
.sp-search-bar {
    margin-bottom: 12px;
}
.sp-search-input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.sp-search-input:focus {
    border-color: #E87722;
}

/* ---- Tables ---- */
.sp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.sp-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--sp-border);
}
.sp-table thead th {
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    border-bottom: 2px solid var(--sp-header-bg);
}
.sp-table tbody tr {
    border-bottom: 1px solid var(--sp-border);
    transition: background 0.15s;
}
.sp-table tbody tr:nth-child(even) {
    background: #fafafa;
}
.sp-table tbody tr:hover {
    background: #f0f0f0;
}
.sp-table tbody td {
    padding: 8px 12px;
    vertical-align: middle;
}
.sp-col-num {
    text-align: center;
    min-width: 30px;
}
.sp-col-nr {
    text-align: center;
    font-weight: 600;
    min-width: 30px;
}

/* ---- Highlight row (own team) ---- */
.sp-highlight,
tr.sp-highlight {
    background: var(--sp-highlight) !important;
    font-weight: 600;
}

/* ---- Logos ---- */
.sp-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 4px;
    border-radius: 2px;
}
.sp-logo-large {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
}

/* ---- Detail rows (responsive layout) ---- */
.sp-detail-row {
    background: #f8f9fa;
}
.sp-detail-row td {
    padding: 12px 16px;
    font-size: 13px;
    color: #555;
}
.sp-hidden {
    display: none;
}

/* ---- Grid Layout ---- */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.sp-grid-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 16px;
    background: #fff;
    transition: box-shadow 0.2s;
}
.sp-grid-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.sp-grid-card.sp-highlight {
    border-left: 3px solid var(--sp-header-bg);
}
.sp-grid-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}
.sp-grid-time {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}
.sp-grid-teams {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 8px;
}
.sp-vs {
    color: #999;
    font-weight: normal;
    margin: 0 4px;
}
.sp-score {
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    margin: 0 6px;
}
.sp-grid-venue {
    font-size: 12px;
    color: #888;
}

/* ---- Tabs ---- */
.sp-tabs {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: hidden;
}
.sp-tab-nav {
    display: flex;
    background: var(--sp-header-bg);
    overflow-x: auto;
}
.sp-tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--sp-header-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}
.sp-tab-btn:hover {
    opacity: 0.9;
}
.sp-tab-btn.sp-active {
    opacity: 1;
    background: rgba(255,255,255,0.15);
    border-bottom: 2px solid var(--sp-header-color);
}
.sp-tab-content {
    display: none;
    padding: 16px;
}
.sp-tab-content.sp-active {
    display: block;
}

/* ---- Match Cards ---- */
.sp-match-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: hidden;
    background: #fff;
    text-align: center;
    max-width: 400px;
}
.sp-match-card-wide {
    max-width: 600px;
}
.sp-match-header {
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    padding: 10px 16px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sp-match-body {
    padding: 20px 16px;
}
.sp-match-date {
    color: #666;
    font-size: 13px;
    margin: 12px 0 4px;
}
.sp-match-time {
    font-size: 24px;
    font-weight: 700;
    color: #E87722;
    margin: 8px 0;
}
.sp-match-teams {
    font-size: 16px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.sp-match-venue {
    font-size: 12px;
    color: #888;
    padding: 8px 16px 16px;
}
.sp-match-teams-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 16px;
}
.sp-match-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
    min-width: 100px;
}
.sp-match-vs {
    font-size: 18px;
    color: #999;
    font-weight: 700;
}
.sp-match-score {
    font-size: 28px;
    font-weight: 800;
    color: #333;
    min-width: 80px;
}
.sp-score-inline {
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 700;
    margin: 0 8px;
}

/* ---- Match Team Name (shared across match cards) ---- */
.sp-match-team-name {
    font-weight: 600;
}

/* ---- Verjaardag specific ---- */
.sp-vj-emoji {
    font-size: 16px;
    margin-right: 4px;
}
.sp-vj-naam {
    font-weight: 500;
}
.sp-vj-leeftijd {
    font-weight: 600;
    color: #555;
}

/* ---- Player Cards ---- */
.sp-grid-players {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.sp-player-card {
    text-align: center;
    padding: 20px 12px;
}
.sp-player-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    display: block;
}
.sp-no-photo {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
}
.sp-player-name {
    font-weight: 600;
    margin-bottom: 4px;
}
.sp-player-role {
    font-size: 12px;
    color: #888;
}
.sp-player-email, .sp-player-phone {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.sp-player-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.sp-no-photo-sm {
    font-size: 20px;
}

/* ---- Team Photo ---- */
.sp-team-photo {
    width: 100%;
    height: auto;
    border-radius: var(--sp-radius);
}

/* ---- Training overview ---- */
.sp-training-group {
    margin-bottom: 24px;
}
.sp-training-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1A1A2E;
}
.sp-trainer {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

/* ---- Calendar Grid ---- */
.sp-calendar-header {
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    padding: 12px 16px;
    border-radius: var(--sp-radius) var(--sp-radius) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-calendar-title {
    font-weight: 700;
    font-size: 16px;
}
.sp-calendar-grid {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--sp-border);
    table-layout: fixed;
}
.sp-calendar-grid th {
    background: #f5f5f5;
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--sp-border);
}
.sp-cal-day {
    border: 1px solid var(--sp-border);
    vertical-align: top;
    padding: 4px;
    height: 80px;
    font-size: 12px;
}
.sp-cal-empty {
    border: 1px solid var(--sp-border);
    background: #fafafa;
}
.sp-cal-num {
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 2px;
}
.sp-cal-today {
    background: var(--sp-highlight);
}
.sp-cal-today .sp-cal-num {
    color: #E87722;
}
.sp-cal-has-events {
    cursor: pointer;
}
.sp-cal-events {
    overflow: hidden;
}
.sp-cal-event {
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Calendar Widget ---- */
.sp-cw-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
    color: #1A1A2E;
}
.sp-cw-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sp-cw-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--sp-border);
    align-items: center;
}
.sp-cw-item:last-child {
    border-bottom: none;
}
.sp-cw-date {
    min-width: 44px;
    text-align: center;
    background: var(--sp-header-bg);
    color: var(--sp-header-color);
    border-radius: var(--sp-radius);
    padding: 6px 8px;
    line-height: 1.2;
}
.sp-cw-day {
    display: block;
    font-size: 18px;
    font-weight: 700;
}
.sp-cw-month {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
}
.sp-cw-info {
    flex: 1;
}
.sp-cw-match {
    font-weight: 600;
    font-size: 13px;
}
.sp-cw-time {
    font-size: 12px;
    color: #888;
}

/* ---- Sponsors ---- */
.sp-sponsors-carousel {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}
.sp-sponsor-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.sp-sponsor-logo {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}
.sp-sponsors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.sp-sponsor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
}
.sp-sponsor-name {
    font-weight: 600;
    font-size: 13px;
}
.sp-sponsor-link {
    font-size: 12px;
    color: #E87722;
}

/* ---- Programma Day Headers ---- */
.sp-day-header {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1A1A2E;
    padding: 10px 12px 6px;
    margin: 16px 0 4px;
    border-bottom: 2px solid #E87722;
}
.sp-day-group:first-child .sp-day-header {
    margin-top: 0;
}
/* Hide separator when toggled off in Elementor */
.sp-separator- .sp-day-header {
    border-bottom: none !important;
}
.sp-day-group .sp-table-wrap {
    margin-bottom: 0;
}
.sp-day-group .sp-table {
    border-top: none;
    table-layout: fixed;
    width: 100%;
}
/* Fixed column widths for consistent alignment across day groups */
/* Layout: Tijd | Thuis | Uit | Details (Dag column removed) */
.sp-programma .sp-day-group .sp-table th:nth-child(1),
.sp-programma .sp-day-group .sp-table td:nth-child(1) { width: 10%; } /* Tijd */
.sp-programma .sp-day-group .sp-table th:nth-child(2),
.sp-programma .sp-day-group .sp-table td:nth-child(2) { width: 30%; } /* Thuis */
.sp-programma .sp-day-group .sp-table th:nth-child(3),
.sp-programma .sp-day-group .sp-table td:nth-child(3) { width: 30%; } /* Uit */
.sp-programma .sp-day-group .sp-table th:nth-child(4),
.sp-programma .sp-day-group .sp-table td:nth-child(4) { width: 10%; } /* Details */
.sp-programma .sp-day-group .sp-table td:last-child { width: auto; }  /* Details */
.sp-programma .sp-day-group .sp-table td,
.sp-programma .sp-day-group .sp-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fixed column widths for uitslagen */
.sp-uitslagen .sp-day-group .sp-table {
    table-layout: fixed;
    width: 100%;
}
.sp-uitslagen .sp-day-group .sp-table th:nth-child(1),
.sp-uitslagen .sp-day-group .sp-table td:nth-child(1) { width: 10%; } /* Dag */
.sp-uitslagen .sp-day-group .sp-table th:nth-child(2),
.sp-uitslagen .sp-day-group .sp-table td:nth-child(2) { width: 8%; }  /* Tijd */
.sp-uitslagen .sp-day-group .sp-table th:nth-child(3),
.sp-uitslagen .sp-day-group .sp-table td:nth-child(3) { width: 27%; } /* Thuis */
.sp-uitslagen .sp-day-group .sp-table th:nth-child(4),
.sp-uitslagen .sp-day-group .sp-table td:nth-child(4) { width: 27%; } /* Uit */
.sp-uitslagen .sp-day-group .sp-table th:nth-child(5),
.sp-uitslagen .sp-day-group .sp-table td:nth-child(5) { width: 10%; } /* Uitslag */
.sp-uitslagen .sp-day-group .sp-table td:last-child { width: auto; }  /* Details */
.sp-uitslagen .sp-day-group .sp-table td,
.sp-uitslagen .sp-day-group .sp-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---- Programma Filter Bar ---- */
.sp-programma-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}
.sp-filter-group {
    display: flex;
    gap: 6px;
}
.sp-filter-btn {
    padding: 6px 14px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    line-height: 1.4;
    border-radius: 25px;
}
.sp-filter-btn.active {
    background: #E87722;
    color: #FFFFFF;
    border-color: #E87722;
    border-radius: 25px;
}
.sp-filter-btn:hover:not(.active) {
    background: #f5f5f5;
}

/* Filter button icons */
.sp-filter-btn {
    display: inline-flex;
    align-items: center;
}
.sp-filter-btn .sp-filter-btn-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.sp-filter-btn .sp-filter-btn-icon:empty {
    display: none;
}
.sp-filter-btn .sp-filter-btn-icon i {
    font-size: inherit;
}
.sp-filter-btn--icon-before .sp-filter-btn-icon {
    order: -1;
}
.sp-filter-btn--icon-after .sp-filter-btn-icon {
    order: 1;
}

/* ---- Detail Link ---- */
.sp-detail-link {
    color: #E87722;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.sp-detail-link:hover {
    text-decoration: underline;
}

/* ---- Wedstrijd Detail ---- */
/* Legacy - kept for backwards compat */
.sp-wedstrijd-detail { width: 100%; max-width: none; box-sizing: border-box; }

/* ---- Hero Banner ---- */
.sp-match-detail-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.sp-hero {
    background: #1A1A2E;
    border-radius: 8px;
    padding: 32px 24px 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.sp-hero__meta {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 32px;
}
.sp-hero__scorecard {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}
.sp-hero__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
    min-width: 100px;
}
.sp-hero__logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 16px;
    background: transparent;
}
.sp-hero__logo--error {
    opacity: 0.3;
    filter: grayscale(1);
}
.sp-hero__logo--fallback {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.sp-hero__logo--fallback span {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
}
.sp-hero__team-name {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.3;
}
.sp-hero__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    min-width: 100px;
}
.sp-hero__time,
.sp-hero__score {
    font-size: 48px;
    font-weight: 700;
    color: #E87722;
    letter-spacing: 2px;
    line-height: 1;
}
.sp-hero__time-label,
.sp-hero__score-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-top: 8px;
}

/* ---- Hero Light Variant ---- */
.sp-hero--light {
    background: #f7f8fa;
    border: 1px solid #e0e3e8;
}
.sp-hero--light .sp-hero__meta {
    color: #1A1A2E;
    background: #edeef1;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 1.2px;
}
.sp-hero--light .sp-hero__team-name {
    color: #1A1A2E;
}
.sp-hero--light .sp-hero__time-label,
.sp-hero--light .sp-hero__score-label {
    color: #8b8fa3;
}
.sp-hero--light .sp-hero__logo-circle--home,
.sp-hero--light .sp-hero__logo-circle--away {
    border: none;
}
.sp-hero__logo-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
    box-sizing: border-box;
}
.sp-hero__logo-circle--home {
    border: 4px solid #E87722;
}
.sp-hero__logo-circle--away {
    border: 4px solid #1A1A2E;
}
.sp-hero__logo-circle img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.sp-hero__logo-abbr {
    font-size: 20px;
    font-weight: 800;
    color: #1A1A2E;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- Wedstrijd Detail Card ---- */
.sp-detail-card {
    width: 100%;
    box-sizing: border-box;
}
.sp-detail-card .sp-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sp-detail-card .sp-icon {
    font-size: 18px;
}
.sp-detail-card__columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
}
.sp-detail-card__col-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1A1A2E;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sp-detail-card__icon {
    flex-shrink: 0;
    color: #E87722;
}
.sp-detail-card__venue-name {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 4px;
}
.sp-detail-card__venue-addr {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.5;
}
.sp-detail-card__route-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #E87722;
    text-decoration: none;
    margin-bottom: 12px;
}
.sp-detail-card__route-link:hover {
    text-decoration: underline;
}
.sp-detail-card__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}
.sp-detail-card__phone a {
    color: #333;
    text-decoration: none;
}
.sp-detail-card__phone a:hover {
    color: #E87722;
}
.sp-detail-card__info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sp-detail-card__info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}
.sp-detail-card__info-label {
    font-size: 13px;
    color: #888;
}
.sp-detail-card__info-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* Facility/Voorzieningen */
.sp-detail-card__facility {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}
.sp-detail-card__facility-bar {
    width: 4px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sp-detail-card__facility-bar--home { background: #1A1A2E; }
.sp-detail-card__facility-bar--away { background: #E87722; }
.sp-detail-card__facility-bar--ref { background: #888; }
.sp-detail-card__facility-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sp-detail-card__facility-team {
    font-size: 14px;
    font-weight: 700;
    color: #1A1A2E;
}
.sp-detail-card__facility-value {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive: stack columns on mobile */
@media (max-width: 768px) {
    .sp-detail-card__columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .sp-hero__scorecard {
        gap: 20px;
    }
    .sp-hero__logo,
    .sp-hero__logo--fallback {
        width: 70px;
        height: 70px;
    }
    .sp-hero__logo-circle {
        width: 70px;
        height: 70px;
    }
    .sp-hero__logo-circle img {
        width: 45px;
        height: 45px;
    }
    .sp-hero__logo-abbr {
        font-size: 16px;
    }
    .sp-hero__time,
    .sp-hero__score {
        font-size: 36px;
    }
}

/* ---- Legacy Match Detail classes (backward compat) ---- */
.sp-match-detail {
    --sp-match-accent: var(--sp-header-bg, #1A1A2E);
    width: 100%;
    max-width: none;
    margin: 0;
}
.sp-match-detail__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}
.sp-match-detail__logo--placeholder {
    background: #f0f0f0;
    border-radius: 50%;
}
.sp-match-detail__team-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}
.sp-match-detail__score {
    font-size: 48px;
    font-weight: 700;
    color: #333;
}
.sp-match-detail__score--time {
    color: #E87722;
}
/* ---- Responsive ---- */
@media (max-width: 520px) {
    /* Compact layout responsive */
    .sp-match-detail--compact .sp-match-detail__compact-row {
        flex-direction: column;
        gap: 12px;
    }
    .sp-match-detail--compact .sp-match-detail__compact-team {
        flex-direction: column;
        text-align: center;
    }
}
@media (max-width: 520px) {
    /* Detail layout */
    .sp-match-detail--detail .sp-match-detail__scorecard {
        flex-direction: column;
        gap: 16px;
    }
    .sp-match-detail--detail .sp-match-detail__score-center {
        flex-direction: row;
        gap: 12px;
    }
    .sp-match-detail--detail .sp-match-detail__logo {
        width: 80px;
        height: 80px;
    }
    .sp-match-detail__info {
        grid-template-columns: 1fr;
    }
    .sp-match-detail__info-grid {
        grid-template-columns: 1fr;
    }
    /* Compact layout */
    .sp-match-detail--compact .sp-match-detail__compact-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    .sp-match-detail--compact .sp-match-detail__logo {
        width: 56px;
        height: 56px;
    }
    .sp-match-detail--compact .sp-match-detail__team-name {
        font-size: 15px;
        text-align: center;
    }
    .sp-match-detail--compact .sp-match-detail__score {
        font-size: 28px;
        width: 100%;
        text-align: center;
        order: -1;
    }
}

/* ---- Lazy Load Button ---- */
.sp-load-more {
    display: block;
    margin: 16px auto;
    padding: 10px 24px;
    background: #E87722;
    color: #FFFFFF;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.sp-load-more:hover {
    background: #D06820;
}
.sp-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Wedstrijd Score Card ---- */
.sp-wscore-card {
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    background: #fff;
    padding: 24px 16px;
    text-align: center;
    max-width: 500px;
}
.sp-wscore-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.sp-wscore-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.sp-wscore-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
}
.sp-wscore-name,
.sp-wscore-team-name {
    font-weight: 600;
    font-size: 14px;
}
.sp-wscore-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.sp-wscore-score {
    font-size: 32px;
    font-weight: 800;
    color: #1A1A2E;
}
.sp-wscore-time {
    font-size: 22px;
    font-weight: 700;
    color: #E87722;
}
.sp-wscore-date {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}
.sp-wscore-meta {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

/* ---- Wedstrijd Info Table ---- */
.sp-winfo-table th.sp-winfo-label {
    background: #f5f5f5;
    font-weight: 600;
    width: 180px;
    white-space: nowrap;
}

/* ---- Wedstrijd Stats (bar chart) ---- */
.sp-wstats {
    max-width: 500px;
}
.sp-wstats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 16px;
    font-weight: 700;
}
.sp-wstats-vs {
    color: #999;
    font-weight: 400;
}
.sp-wstats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}
.sp-wstats-val,
.sp-wstats-value {
    min-width: 40px;
    font-weight: 600;
    font-size: 13px;
}
.sp-wstats-val-home { text-align: right; }
.sp-wstats-val-away { text-align: left; }
.sp-wstats-bars {
    flex: 1;
    display: flex;
    gap: 2px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    background: #f0f0f0;
}
.sp-wstats-bar-home {
    background: var(--sp-header-bg);
    border-radius: 3px 0 0 3px;
    transition: width 0.3s;
}
.sp-wstats-bar-away {
    background: #666;
    border-radius: 0 3px 3px 0;
    transition: width 0.3s;
}
.sp-wstats-label {
    text-align: center;
    font-size: 11px;
    color: #888;
    margin-bottom: 12px;
}

/* ---- Swiper Sponsors Carousel ---- */
.sp-sponsors-swiper {
    position: relative;
    padding: 10px 0;
}
.sp-sponsors-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-sponsors-swiper .sp-sponsor-logo {
    max-height: 60px;
    max-width: 150px;
    object-fit: contain;
}
.sp-sponsors-swiper .swiper-button-next,
.sp-sponsors-swiper .swiper-button-prev {
    color: #E87722;
}
.sp-sponsors-swiper .swiper-pagination-bullet-active {
    background: #E87722;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .sp-hide-mobile {
        display: none !important;
    }

    /* Responsive table: stack cells on mobile */
    .sp-layout-responsive .sp-table thead {
        display: none;
    }
    .sp-layout-responsive .sp-table tbody tr {
        display: block;
        padding: 10px 12px;
        margin-bottom: 8px;
        border: 1px solid var(--sp-border);
        border-radius: var(--sp-radius);
    }
    .sp-layout-responsive .sp-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border: none;
    }
    .sp-layout-responsive .sp-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 10px;
        color: #888;
        font-size: 12px;
    }

    /* Click to expand */
    .sp-layout-responsive .sp-row {
        cursor: pointer;
    }

    .sp-grid {
        grid-template-columns: 1fr;
    }
    .sp-grid-players {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .sp-match-teams-row {
        flex-direction: column;
        gap: 10px;
    }

    .sp-calendar-grid {
        font-size: 11px;
    }
    .sp-cal-day {
        height: 50px;
        padding: 2px;
    }
    .sp-cal-event {
        font-size: 8px;
    }

    .sp-tab-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .sp-match-card {
        max-width: 100%;
    }
    .sp-table tbody td {
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* ===========================================
   Demo Page
   =========================================== */

.sp-demo-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.sp-demo-page h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.sp-demo-page h2 {
    font-size: 1.4em;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}

.sp-demo-page hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2em 0;
}

.sp-demo-page code {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.9em;
    color: #c62828;
}

.sp-demo-page > p:first-of-type {
    font-size: 1.1em;
    color: #555;
}

/* ===========================================
   Team Menu
   =========================================== */

.sp-team-menu { margin: 0; }

/* Vertical & Horizontal List */
.sp-team-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sp-team-menu-horizontal .sp-team-menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.sp-team-menu-horizontal .sp-team-menu-category {
    flex: 1 1 200px;
    min-width: 180px;
}

.sp-team-menu-category {
    margin-bottom: 4px;
}

.sp-team-menu-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--sp-header-bg, #f5f5f5);
    color: var(--sp-header-color, #333);
    font-weight: 600;
    font-size: 14px;
    border-radius: 4px;
    user-select: none;
}

.sp-collapsible .sp-team-menu-cat-header {
    cursor: pointer;
}

.sp-collapsible .sp-team-menu-cat-header:hover {
    opacity: 0.85;
}

.sp-collapse-icon {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.sp-collapsible:not(.sp-expanded) .sp-collapse-icon {
    transform: rotate(-90deg);
}

.sp-team-menu-teams {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sp-collapsible:not(.sp-expanded) .sp-team-menu-teams {
    max-height: 0 !important;
    padding: 0;
}

.sp-collapsible.sp-expanded .sp-team-menu-teams {
    max-height: 2000px;
}

.sp-team-menu-item {
    padding: 8px 14px 8px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-team-menu-item:last-child {
    border-bottom: none;
}

.sp-team-menu-item a {
    color: inherit;
    text-decoration: none;
}

.sp-team-menu-item a:hover {
    color: #E87722;
    text-decoration: underline;
}

.sp-team-count {
    font-weight: 400;
    opacity: 0.6;
    font-size: 0.9em;
    margin-left: 4px;
}

/* Dropdown */
.sp-team-menu-select {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
}

/* Grid */
.sp-team-menu-grid {
    display: grid;
    gap: 20px;
}

.sp-team-menu-grid-group h3 {
    margin: 0 0 8px;
    padding: 8px 12px;
    background: var(--sp-header-bg, #f5f5f5);
    color: var(--sp-header-color, #333);
    border-radius: 4px;
    font-size: 15px;
}

.sp-team-menu-grid-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.sp-team-menu-card {
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: box-shadow 0.2s;
}

.sp-team-menu-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sp-team-menu-card a {
    color: inherit;
    text-decoration: none;
}

.sp-team-menu-card a:hover {
    color: #E87722;
}

/* Filter for team menu */
.sp-team-menu .sp-filter-bar {
    margin-bottom: 12px;
}

.sp-team-menu .sp-filter-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .sp-team-menu-grid-items {
        grid-template-columns: 1fr;
    }
    .sp-team-menu-horizontal .sp-team-menu-list {
        flex-direction: column;
    }
}

/* === Stand (rankings) — fill parent container === */
.sp-widget.sp-stand,
.sp-widget.sp-stand .sp-table-wrap,
.sp-stand-voetbalnl,
.sp-stand-voetbalnl .sp-table-wrap {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* === Wedstrijd Stand === */
.sp-wedstrijd-stand { width: 100%; margin: 0; }
.sp-stand__title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.sp-stand-table { width: 100%; border-collapse: collapse; }
.sp-stand-table th {
    background: #1A1A2E;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 13px;
    padding: 10px 12px;
    text-align: left;
}
.sp-stand-table th:first-child { border-radius: 6px 0 0 0; }
.sp-stand-table th:last-child { border-radius: 0 6px 0 0; }
.sp-stand-table td { padding: 12px; border-bottom: 1px solid #eef0f2; font-size: 14px; }
.sp-stand-col-team { min-width: 180px; }
.sp-stand-row--highlight td { font-weight: 700; }
.sp-stand-row--highlight .sp-stand-col-pos,
.sp-stand-row--highlight .sp-stand-pts { color: #E87722; font-weight: 800; }
.sp-stand-row--highlight .sp-stand-col-team { color: #1A1A2E; }
.sp-stand-col-pos { width: 40px; text-align: center; }
.sp-stand-col-pts { font-weight: 700; }
.sp-stand-legend {
    margin-top: 16px; padding-top: 12px; border-top: 1px solid #eee;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px;
    font-size: 12px; color: #888;
}
.sp-stand-legend strong { display: inline-block; min-width: 28px; color: #555; }

/* ---- Jersey icon (inline with team name in Voorzieningen) ---- */
.sp-detail-card__jersey-icon {
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}

/* ---- Equal-height cards: Laatste Uitslag + Volgende Wedstrijd ---- */

/* White background for Laatste Uitslag card */
.sp-laatste-uitslag .sp-card,
.sp-laatste-uitslag .sp-laatste-uitslag-card {
    background: #FFFFFF !important;
}

/* Override any Elementor grey background on widget containers */
[data-widget_type="sportlink_laatste_uitslag.default"] > .elementor-widget-container,
[data-widget_type="sportlink_next_match.default"] > .elementor-widget-container {
    background: transparent !important;
    height: 100% !important;
}

/* Force full height chain from Elementor widget down to card */
[data-widget_type="sportlink_laatste_uitslag.default"],
[data-widget_type="sportlink_next_match.default"] {
    height: 100% !important;
}

[data-widget_type="sportlink_laatste_uitslag.default"] > .elementor-widget-container > *,
[data-widget_type="sportlink_next_match.default"] > .elementor-widget-container > * {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.elementor-widget-container {
    height: 100% !important;
}
.sp-laatste-uitslag,
.sp-next-match {
    height: 100% !important;
}
.sp-laatste-uitslag .sp-card,
.sp-laatste-uitslag .sp-laatste-uitslag-card,
.sp-next-match .sp-card {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}
.sp-laatste-uitslag .sp-card .sp-lu-footer,
.sp-laatste-uitslag .sp-laatste-uitslag-card .sp-lu-footer,
.sp-next-match .sp-card .sp-nm-footer {
    margin-top: auto !important;
    justify-content: flex-end !important;
}
