/* =====================================================================
 * Modül merkez sayfaları (sp-hub-*): Spor, Nöbetçi Eczane, Namaz Vakitleri.
 * Renkler tema değişkenlerinden gelir (--sp-surface, --sp-border, --sp-text, --sp-muted,
 * --sp-primary); koyu tema kendiliğinden uyar. Modül rengi --hub-* ile değişir.
 * ===================================================================== */
.sp-hub{--hub-accent:var(--sp-primary,#a51d31);--hub-hero-bg:linear-gradient(120deg,#13233a 0%,#1b3354 70%,#24456e 100%);--hub-hero-shadow:0 10px 28px rgba(15,30,55,.12);--hub-hero-soft:#d9e4f2;--hub-hero-eyebrow:#a9c6ec;--hub-surface:var(--sp-surface,#fff);--hub-alt:color-mix(in srgb,var(--sp-text,#172033) 5%,var(--sp-surface,#fff));--hub-border:var(--sp-border,#e3e9f1);--hub-text:var(--sp-text,#172033);--hub-muted:var(--sp-muted,#667085);color:var(--hub-text);font-size:14px}

/* Modül renkleri */
.sp-hub.sp-sports-page{--hub-hero-bg:linear-gradient(120deg,#0b2a1c 0%,#11432c 70%,#1a5a3b 100%);--hub-hero-shadow:0 10px 28px rgba(10,35,25,.12);--hub-hero-soft:#d6f0e1;--hub-hero-eyebrow:#9fe0bc}
.sp-hub.sp-prayer-hub{--hub-hero-soft:#dbe5f3;--hub-hero-eyebrow:#f3d58c}
.sp-hub.sp-pharmacy-hub{--hub-accent:var(--sp-ph-accent,#c62838);--hub-hero-bg:linear-gradient(120deg,#5c0f19 0%,#8c1726 70%,#b51f32 100%);--hub-hero-shadow:0 10px 28px rgba(92,15,25,.14);--hub-hero-soft:#ffe1e5;--hub-hero-eyebrow:#ffb8c1}

/* Başlık bandı */
.sp-hub .sp-hub-hero{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:24px 28px;border-radius:18px;background:var(--hub-hero-bg);color:#fff;box-shadow:var(--hub-hero-shadow)}
.sp-hub .sp-hub-hero h2{margin:6px 0 8px!important;font-size:29px!important;line-height:1.15;font-weight:850}
html body:not(.wp-admin) .sp-hub .sp-hub-hero h2{color:#fff!important}
.sp-hub .sp-hub-hero p{margin:0!important;font-size:13px;color:var(--hub-hero-soft)!important}
.sp-hub .sp-hub-eyebrow{display:block;font-size:10px;font-weight:850;letter-spacing:.12em;color:var(--hub-accent)}
.sp-hub .sp-hub-hero .sp-hub-eyebrow{color:var(--hub-hero-eyebrow)}
.sp-hub .sp-hub-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.sp-hub .sp-hub-chips span{padding:5px 10px;border:1px solid #ffffff38;border-radius:999px;background:#ffffff14;font-size:11px;font-weight:750}
.sp-hub .sp-hub-hero>a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #ffffff38;border-radius:10px;background:#ffffff15;color:#fff!important;font-size:12px;font-weight:800;white-space:nowrap;text-decoration:none!important}

/* Bölüm menüsü ve grup seçimi */
.sp-hub .sp-hub-nav,.sp-hub .sp-hub-groups{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding:12px 0 14px}
.sp-hub .sp-hub-groups{padding-top:0}
.sp-hub .sp-hub-nav a,.sp-hub .sp-hub-groups a{display:inline-flex;white-space:nowrap;padding:8px 13px;border:1px solid var(--hub-border);border-radius:999px;background:var(--hub-surface);color:var(--hub-text)!important;font-size:12px;font-weight:750;text-decoration:none!important}
.sp-hub .sp-hub-groups a{font-size:11px;padding:6px 11px}
.sp-hub .sp-hub-nav a:hover,.sp-hub .sp-hub-groups a:hover{border-color:var(--hub-accent)}
.sp-hub .sp-hub-nav a.is-active,.sp-hub .sp-hub-groups a.is-active{border-color:var(--hub-accent);background:var(--hub-accent);color:#fff!important}

/* Kayan sonuçlar */
.sp-hub .sp-hub-ticker{position:relative;overflow:hidden;margin:0 0 16px;border:1px solid var(--hub-border);border-radius:14px;background:var(--hub-surface);-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 28px,#000 calc(100% - 28px),transparent 100%)}
.sp-hub .sp-hub-ticker-track{display:flex;width:max-content;animation:sp-hub-ticker var(--sp-hub-ticker-duration,60s) linear infinite}
.sp-hub .sp-hub-ticker:hover .sp-hub-ticker-track,.sp-hub .sp-hub-ticker:focus-within .sp-hub-ticker-track{animation-play-state:paused}
.sp-hub .sp-hub-ticker-set{display:flex;flex:0 0 auto}
.sp-hub .sp-hub-tick{display:inline-flex;align-items:center;gap:8px;padding:12px 18px;border-right:1px solid var(--hub-border);white-space:nowrap;color:var(--hub-text)!important;text-decoration:none!important;font-size:12px}
.sp-hub .sp-hub-tick span{font-size:10px;font-weight:850;color:var(--hub-accent)}
.sp-hub .sp-hub-tick strong{padding:2px 7px;border-radius:6px;background:var(--hub-alt);font-variant-numeric:tabular-nums}
@keyframes sp-hub-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.sp-hub .sp-hub-ticker-track{animation:none}.sp-hub .sp-hub-ticker{overflow-x:auto;-webkit-mask-image:none;mask-image:none}.sp-hub .sp-hub-ticker-set[aria-hidden]{display:none}}

/* Kartlar (lig ve takım) */
.sp-hub .sp-hub-cards,.sp-hub .sp-hub-region-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--sp-layout-card-gap,15px)}
.sp-hub .sp-hub-card,.sp-hub .sp-hub-team{display:flex;flex-direction:column;min-width:0;border:1px solid var(--hub-border);border-radius:16px;background:var(--hub-surface);box-shadow:0 4px 20px rgba(20,45,80,.035);overflow:hidden;scroll-margin-top:24px}
.sp-hub .sp-hub-card header,.sp-hub .sp-hub-team header{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;padding:14px 16px;border-bottom:1px solid var(--hub-border)}
.sp-hub .sp-hub-card header h3,.sp-hub .sp-hub-team header h3{margin:0!important;font-size:16px!important;display:flex;align-items:center;gap:8px}
.sp-hub .sp-hub-card header small,.sp-hub .sp-hub-team header small{margin-left:auto;color:var(--hub-muted);font-size:10px;font-weight:700}
.sp-hub .sp-hub-card-body{flex:1 1 auto;padding:6px 16px 10px}
.sp-hub .sp-hub-card-group{margin:6px 0 2px!important;font-size:10px!important;font-weight:800;color:var(--hub-muted)}
.sp-hub .sp-hub-card-more{display:flex;justify-content:flex-end;align-items:center;gap:6px;margin-top:auto;padding:11px 16px;border-top:1px solid var(--hub-border);color:var(--hub-accent)!important;font-size:12px;font-weight:800;text-decoration:none!important}
.sp-hub .sp-hub-card-more:hover{background:var(--hub-alt)}
.sp-hub .sp-hub-mini-table{list-style:none;margin:0;padding:0}
.sp-hub .sp-hub-mini-table li{display:grid;grid-template-columns:26px minmax(0,1fr) auto 34px;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid var(--hub-border);font-size:12px}
.sp-hub .sp-hub-mini-table li:last-child{border-bottom:0}
.sp-hub .sp-hub-mini-table li span{display:grid;place-items:center;height:22px;border-radius:6px;background:var(--hub-alt);font-weight:800;font-size:11px}
.sp-hub .sp-hub-mini-table li strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-hub .sp-hub-mini-table li small{color:var(--hub-muted);font-size:10px}
.sp-hub .sp-hub-mini-table li b{text-align:right;color:var(--hub-accent)}
.sp-hub :is(.sp-hub-mini-table li,.sp-hub-team-chips li).is-ours{font-weight:850}
.sp-hub .sp-hub-mini-table li.is-ours span{background:var(--hub-accent);color:#fff}
.sp-hub .sp-hub-team-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:12px 16px 4px}
.sp-hub .sp-hub-team-stats div{padding:8px 6px;border-radius:10px;background:var(--hub-alt);text-align:center}
.sp-hub .sp-hub-team-stats span{display:block;font-size:9px;font-weight:800;color:var(--hub-muted);text-transform:uppercase}
.sp-hub .sp-hub-team-stats b{font-size:17px}
.sp-hub .sp-hub-team .sp-hub-match-list{padding:6px 16px 10px}
.sp-hub .sp-hub-team>.sp-hub-empty{margin:12px 16px}

/* Bölüm başlıkları ve bloklar */
.sp-hub .sp-hub-region,.sp-hub .sp-hub-week,.sp-hub .sp-hub-news,.sp-hub .sp-hub-block{margin-top:24px}
.sp-hub .sp-hub-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:12px}
.sp-hub .sp-hub-section-head h2{margin:4px 0 3px!important;font-size:21px!important}
.sp-hub .sp-hub-section-head p{margin:0!important;color:var(--hub-muted);font-size:12px}

/* Maç listeleri */
.sp-hub .sp-hub-week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--sp-layout-card-gap,15px)}
.sp-hub .sp-hub-week-col{min-width:0;padding:14px 16px;border:1px solid var(--hub-border);border-radius:16px;background:var(--hub-surface)}
.sp-hub .sp-hub-week-col h3{margin:0 0 8px!important;font-size:14px!important}
.sp-hub .sp-hub-match-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.sp-hub .sp-hub-match-list.is-compact{margin-top:8px}
.sp-hub .sp-hub-match{padding:8px 10px;border:1px solid var(--hub-border);border-radius:10px;background:var(--hub-surface)}
.sp-hub .sp-hub-match-meta{display:flex;justify-content:space-between;gap:8px;margin-bottom:3px;font-size:9px}
.sp-hub .sp-hub-match-meta span{font-weight:900;color:var(--hub-accent);text-transform:uppercase}
.sp-hub .sp-hub-match-meta small{color:var(--hub-muted)}
.sp-hub .sp-hub-match-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center;text-align:center;font-size:12px}
.sp-hub .sp-hub-match-teams b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-hub .sp-hub-match-teams b:first-child{text-align:right}
.sp-hub .sp-hub-match-teams b:last-child{text-align:left}
.sp-hub .sp-hub-match-teams strong{min-width:46px;padding:3px 8px;border-radius:7px;background:var(--hub-alt);font-variant-numeric:tabular-nums}
.sp-hub .sp-hub-match-teams strong.is-vs{color:var(--hub-muted);font-size:11px}
.sp-hub .sp-hub-week-switch{display:flex;gap:6px;overflow-x:auto;margin-bottom:10px}
.sp-hub .sp-hub-week-switch button{flex:0 0 auto;padding:6px 12px;border:1px solid var(--hub-border);border-radius:999px;background:var(--hub-surface);color:var(--hub-text);font-size:11px;font-weight:800;cursor:pointer}
.sp-hub .sp-hub-week-switch button.is-active{border-color:var(--hub-accent);background:var(--hub-accent);color:#fff}

/* Takım listesi */
.sp-hub .sp-hub-team-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.sp-hub .sp-hub-team-chips li{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--hub-border);border-radius:999px;background:var(--hub-surface);font-size:12px}
.sp-hub .sp-hub-team-chips li span{color:var(--hub-muted);font-size:10px;font-weight:800}
.sp-hub .sp-hub-team-chips li.is-ours{border-color:var(--hub-accent)}

/* Haberler: yatay kayan kartlar */
.sp-hub .sp-hub-news-strip{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,calc((100% - 36px)/4));gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 10px;scrollbar-width:thin}
.sp-hub .sp-hub-news-card{scroll-snap-align:start;border:1px solid var(--hub-border);border-radius:14px;overflow:hidden;background:var(--hub-surface)}
.sp-hub .sp-hub-news-card a{display:block;color:inherit!important;text-decoration:none!important}
.sp-hub .sp-hub-news-img{display:block;aspect-ratio:16/9;background:var(--hub-alt) center/cover no-repeat}
.sp-hub .sp-hub-news-img.is-empty{display:grid;place-items:center;font-size:28px}
.sp-hub .sp-hub-news-card div{padding:10px 12px 12px}
.sp-hub .sp-hub-news-card small{color:var(--hub-muted);font-size:10px}
.sp-hub .sp-hub-news-card h3{margin:4px 0 0!important;font-size:13px!important;line-height:1.4}

/* Boş durum, kaynak bilgisi */
.sp-hub .sp-hub-empty{padding:12px 14px;border:1px dashed var(--hub-border);border-radius:10px;color:var(--hub-muted);font-size:12px;background:var(--hub-alt)}
.sp-hub .sp-hub-admin-hint{margin:8px 0 0!important;font-size:11px;color:var(--hub-accent)}
.sp-hub .sp-hub-meta{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:24px;padding:11px 14px;border:1px solid var(--hub-border);border-radius:12px;background:var(--hub-alt);color:var(--hub-muted);font-size:11px}
.sp-hub .sp-hub-note{margin:10px 0 0!important;color:var(--hub-muted);font-size:11px;line-height:1.6}

/* Puan tablosu: mevcut spor tablosunun kenarları merkez görünümüne uyar */
.sp-hub .sp-sport-full-table{background:var(--hub-surface)}

/* Dört kartlı satır */
.sp-hub .sp-hub-cards.is-4{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Kart içi kısa liste ve sayaçlar */
.sp-hub .sp-hub-list{list-style:none;margin:0;padding:0}
.sp-hub .sp-hub-list li{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;align-items:baseline;padding:7px 0;border-bottom:1px solid var(--hub-border);font-size:12px}
.sp-hub .sp-hub-list li:last-child{border-bottom:0}
.sp-hub .sp-hub-list li>span{min-width:24px;color:var(--hub-muted);font-size:10px;font-weight:800;white-space:nowrap}
.sp-hub .sp-hub-list li>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-hub .sp-hub-list li>small{grid-column:2;color:var(--hub-muted);font-size:10px}
.sp-hub .sp-hub-list li.is-current>span,.sp-hub .sp-hub-list li.is-current>strong{color:var(--hub-accent)}
.sp-hub .sp-hub-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px 0 4px}
.sp-hub .sp-hub-stats div{padding:10px 6px;border-radius:10px;background:var(--hub-alt);text-align:center}
.sp-hub .sp-hub-stats span{display:block;font-size:9px;font-weight:800;color:var(--hub-muted);text-transform:uppercase}
.sp-hub .sp-hub-stats b{font-size:19px}
.sp-hub .sp-hub-card-hint{margin:8px 0 0!important;color:var(--hub-muted);font-size:11px!important;line-height:1.5}

/* Önceki / sonraki geçişi */
.sp-hub .sp-hub-pager{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 12px}
.sp-hub .sp-hub-pager a{padding:7px 12px;border:1px solid var(--hub-border);border-radius:999px;background:var(--hub-surface);color:var(--hub-text)!important;font-size:12px;font-weight:750;text-decoration:none!important}
.sp-hub .sp-hub-pager a:hover{border-color:var(--hub-accent)}
.sp-hub .sp-hub-pager strong{font-size:14px}

/* Satır tablosu */
.sp-hub .sp-hub-table{border:1px solid var(--hub-border);border-radius:14px;background:var(--hub-surface);overflow:hidden}
.sp-hub .sp-hub-tr{display:grid;grid-template-columns:var(--hub-cols,110px 110px minmax(0,1fr));gap:10px;align-items:center;padding:9px 14px;border-bottom:1px solid var(--hub-border);font-size:12px}
.sp-hub .sp-hub-tr:last-child{border-bottom:0}
.sp-hub .sp-hub-tr.is-head{background:var(--hub-alt);color:var(--hub-muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.sp-hub .sp-hub-tr.is-today{background:color-mix(in srgb,var(--hub-accent) 7%,var(--hub-surface));box-shadow:inset 3px 0 0 var(--hub-accent)}
.sp-hub .sp-hub-tr.is-past{color:var(--hub-muted)}
.sp-hub .sp-hub-tr.is-past b{font-weight:650}
.sp-hub .sp-hub-tr a{color:inherit!important;text-decoration:none!important;font-weight:750}
.sp-hub .sp-hub-tr i{font-style:normal;color:var(--hub-muted)}
.sp-hub .sp-hub-tr em{color:var(--hub-muted);font-style:normal}
.sp-hub .sp-hub-tr[hidden]{display:none}
.sp-hub .sp-hub-badge{display:inline-block;margin-left:6px;padding:2px 7px;border-radius:999px;background:var(--hub-accent);color:#fff!important;font-size:9px;font-weight:850;font-style:normal;vertical-align:1px}
.sp-hub .sp-hub-actions{display:flex;gap:6px;justify-content:flex-end}
.sp-hub .sp-hub-actions a{padding:5px 10px;border:1px solid var(--hub-border);border-radius:8px;font-size:11px}
.sp-hub .sp-hub-actions a:first-child{border-color:var(--hub-accent);background:var(--hub-accent);color:#fff!important}

/* Arama ve yazdırma */
.sp-hub .sp-hub-search{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.sp-hub .sp-hub-search label{flex:1 1 auto}
.sp-hub .sp-hub-search input{width:100%;min-height:42px;padding:0 14px;border:1px solid var(--hub-border);border-radius:12px;background:var(--hub-surface);color:var(--hub-text);font-size:13px}
.sp-hub .sp-hub-search small{color:var(--hub-muted);font-size:11px;white-space:nowrap}
.sp-hub .sp-hub-print-row{display:flex;justify-content:flex-end;margin:0 0 10px}
.sp-hub .sp-hub-print{padding:7px 13px;border:1px solid var(--hub-border);border-radius:999px;background:var(--hub-surface);color:var(--hub-text);font-size:12px;font-weight:750;cursor:pointer}
@media print{
 .sp-hub :is(.sp-hub-nav,.sp-hub-ticker,.sp-hub-pager a,.sp-hub-print-row,.sp-hub-hero>a,.sp-hub-search){display:none!important}
 .sp-hub .sp-hub-hero{padding:0 0 10px;background:none;color:#000;box-shadow:none}
 html body .sp-hub .sp-hub-hero h2,.sp-hub .sp-hub-hero p,.sp-hub .sp-hub-hero .sp-hub-eyebrow{color:#000!important}
 .sp-hub .sp-hub-tr{break-inside:avoid}
}

@media(max-width:1100px){.sp-hub .sp-hub-cards,.sp-hub .sp-hub-cards.is-4,.sp-hub .sp-hub-region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sp-hub .sp-hub-news-strip{grid-auto-columns:minmax(220px,calc((100% - 24px)/3))}}
@media(max-width:700px){
 .sp-hub .sp-hub-hero{display:block;padding:18px}
 .sp-hub .sp-hub-hero h2{font-size:23px!important}
 .sp-hub .sp-hub-hero>a{margin-top:14px}
 .sp-hub .sp-hub-cards,.sp-hub .sp-hub-cards.is-4,.sp-hub .sp-hub-region-grid,.sp-hub .sp-hub-week-grid{grid-template-columns:1fr}
 .sp-hub .sp-hub-tr{grid-template-columns:1fr;gap:3px}
 .sp-hub .sp-hub-tr.is-head{display:none}
 .sp-hub .sp-hub-actions{justify-content:flex-start}
 .sp-hub .sp-hub-news-strip{grid-auto-columns:minmax(220px,78%)}
}

/* Gizlenen hafta panelleri gerçekten gizli kalır (liste ızgarası 'hidden' özniteliğini ezmesin). */
.sp-hub [hidden]{display:none!important}
/* Puan tablosunun başlık satırı genel başlık kuralına (sp-layer-3-final) takılıp flex olmasın.
 * Geçici: o genel kural temizlikte kaynağında düzeltilince bu satır kalkacak. */
html body:not(.wp-admin):not(#sp-hub-table):not(#sp-hub-table-b) .sp-hub .sp-sport-full-head{display:grid!important;justify-content:initial!important;align-items:center!important;padding:0!important;margin:0!important;gap:0!important}
