/*
Theme Name:  كورة لايف
Theme URI:   https://koora-lives.space
Author:      فريق كورة لايف
Description: قالب ووردبريس مجاني لبث مباريات كرة القدم مباشرة. شاهد دوري أبطال أوروبا، الدوري الإنجليزي الممتاز، الدوري الإسباني، الدوري الإيطالي والدوري الألماني مباشرة بجودة عالية.
Version:     1.4.1
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: koora-live
Tags:        sports, football, streaming, custom-menu, translation-ready
*/

/* =============================================================
   CSS VARIABLES
   ============================================================= */
:root {
  --purple-dark:  #3a0a6e;
  --purple-mid:   #6a0dad;
  --purple-light: #9b2fd6;
  --red-accent:   #c0392b;
  --light-bg:     #f4f4f8;
  --text-dark:    #1a1a2e;
  --text-muted:   #666688;
  --border:       #e0e0f0;
  --live-green:   #00c853;
  --badge-dark:   #2d2d2d;
}

/* =============================================================
   RESET
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Tajawal', 'Outfit', sans-serif;
  background: var(--light-bg);
  color: var(--text-dark);
  min-height: 100vh;
  direction: rtl;
  text-align: right;
}

/* =============================================================
   NAVIGATION
   ============================================================= */
.koora-nav {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 60%, var(--purple-light) 100%);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(106,13,173,.4);
}

.koora-nav .site-title a,
.koora-nav .nav-logo {
  font-family: 'Tajawal', sans-serif;
  font-size: 2rem;
  color: #fff;
  letter-spacing: 2px;
  text-decoration: none;
  font-weight: 700;
}

/* WordPress nav menu */
.koora-nav .nav-links,
.koora-nav #primary-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.koora-nav .nav-links a,
.koora-nav #primary-menu a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}

.koora-nav .nav-links a:hover,
.koora-nav #primary-menu a:hover { color: #fff; }

.nav-moon {
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; cursor: pointer;
  flex-shrink: 0;
}

/* =============================================================
   HERO BANNER
   ============================================================= */
.hero-banner {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 50%, var(--red-accent) 100%);
  margin: 24px 40px;
  border-radius: 14px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 8px 32px rgba(106,13,173,.25);
}

.hero-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  font-weight: 700;
}

.hero-sub { font-size: .9rem; opacity: .85; }

.hero-badge {
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; gap: 8px;
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* =============================================================
   SCHEDULE BLOCK
   ============================================================= */
.schedule-block {
  margin: 0 40px 24px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  overflow: hidden;
}

.schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.schedule-title {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700; font-size: .92rem;
}

/* Day tabs */
.day-tabs { display: flex; gap: 8px; }

.day-tab {
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600; font-size: .88rem;
  cursor: pointer; border: none;
  transition: all .2s;
  font-family: 'Tajawal', 'Outfit', sans-serif;
}

.day-tab.active {
  background: linear-gradient(135deg, var(--purple-mid), var(--purple-light));
  color: #fff;
}

.day-tab:not(.active) { background: var(--light-bg); color: var(--text-dark); }
.day-tab:not(.active):hover { background: #e0e0f0; }

.timezone-select {
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: .88rem; color: var(--text-dark);
  cursor: pointer; background: #fff;
}

/* Filters row */
.filters { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.search-box {
  flex: 1; min-width: 240px;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: .9rem; outline: none;
  transition: border .2s;
  background: var(--light-bg);
}

.search-box:focus { border-color: var(--purple-mid); background: #fff; }

.live-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  cursor: pointer; font-size: .9rem;
  background: var(--light-bg);
  user-select: none; white-space: nowrap;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live-green);
  animation: kooraPulse 1.4s infinite;
}

@keyframes kooraPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

.league-select {
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: .9rem;
  background: var(--light-bg);
  cursor: pointer; outline: none;
}

.reset-btn {
  padding: 11px 20px;
  background: #555; color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: .88rem; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: background .2s; white-space: nowrap;
}

.reset-btn:hover { background: #333; }

/* =============================================================
   LEAGUE GROUPS & MATCH CARDS
   ============================================================= */
.league-group { margin-bottom: 4px; }

.league-header {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: var(--text-dark);
  padding: 10px 8px 8px;
  border-bottom: 1px solid var(--border);
}

.match-card {
  display: flex; align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid #f0f0f8;
  gap: 8px; cursor: pointer;
  transition: background .15s;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.match-card:hover { background: #faf8ff; }

/* ── Desktop layout للعناصر mc-* (المستخدمة في enhanced card) ── */
.mc-home-logo,
.mc-away-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
}

.mc-home-name {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-align: right;
  padding-right: 6px;
}

.mc-away-name {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  padding-left: 6px;
}

/* صور الشعارات */
.team-logo-img {
  width: 40px; height: 40px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-home,
.team-away {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
}

/* RTL: team-home on RIGHT side → content near center */
.team-home {
  justify-content: flex-start;
  flex-direction: row-reverse;
}

/* RTL: team-away on LEFT side → content near center */
.team-away {
  justify-content: flex-start;
  flex-direction: row;
}

.team-logo-placeholder {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: .72rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.team-name {
  font-weight: 600; font-size: .88rem;
  color: var(--text-dark);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center {
  text-align: center; min-width: 90px; flex-shrink: 0;
  padding: 0 2px;
}

.match-score {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.7rem; letter-spacing: 3px;
  color: var(--text-dark); line-height: 1; margin-bottom: 4px;
  font-weight: 700;
}

.match-time {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.3rem; letter-spacing: 2px;
  color: var(--text-dark); line-height: 1; margin-bottom: 4px;
  font-weight: 700;
}

.match-status {
  display: inline-block;
  padding: 3px 12px; border-radius: 5px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .5px;
}

.status-live        { background: var(--badge-dark); color: #fff; }
.status-not-started { background: #e8e8f0; color: #555; }
.status-finished    { background: #e8e8f0; color: #555; }
.status-postponed   { background: #fff3cd; color: #856404; }

/* =============================================================
   INFO SECTIONS
   ============================================================= */
.info-section {
  margin: 0 40px 24px;
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
  color: #fff;
  padding: 10px 22px; border-radius: 8px;
  font-weight: 700; font-size: .92rem;
  margin-bottom: 20px;
}

.info-text { line-height: 1.8; color: #444; font-size: .94rem; margin-bottom: 14px; }

.feature-list { list-style: none; }

.feature-list li {
  padding: 5px 0; font-size: .93rem; color: #444;
}

.feature-list li::before { content: "\26BD  "; }

.contact-email { color: var(--purple-mid); font-weight: 600; text-decoration: none; }
.contact-email:hover { text-decoration: underline; }

/* =============================================================
   STREAM EMBED (single match page)
   ============================================================= */
.km-stream-section {
  margin: 0 40px 24px;
}

.km-stream-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.km-stream-container iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.stream-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.stream-embed-wrap iframe {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

/* =============================================================
   FOOTER NAV
   ============================================================= */
.footer-nav,
.footer-terms {
  display: flex; flex-wrap: wrap;
  gap: 10px; justify-content: center;
  margin: 0 40px 16px;
}

.footer-terms { margin-bottom: 24px; }

.footer-nav-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Tajawal', 'Outfit', sans-serif;
  font-size: .87rem; font-weight: 500;
  color: var(--text-dark);
  cursor: pointer; background: #fff;
  transition: all .2s;
  text-decoration: none; display: inline-block;
}

.footer-nav-btn:hover {
  background: var(--purple-mid);
  color: #fff; border-color: var(--purple-mid);
}

/* =============================================================
   FOOTER WORLD
   ============================================================= */
.footer-world {
  margin: 0 40px 24px;
  background: var(--light-bg);
  border-radius: 12px;
  padding: 24px; text-align: center;
}

.footer-world-title {
  color: var(--purple-mid);
  font-family: 'Tajawal', sans-serif;
  font-size: 1.3rem; letter-spacing: 1px; margin-bottom: 10px;
  font-weight: 700;
}

.footer-tz    { font-size: .82rem; color: #666; margin-bottom: 10px; line-height: 1.7; }
.footer-links { font-size: .78rem; color: #999; line-height: 1.9; }

/* =============================================================
   BOTTOM FOOTER
   ============================================================= */
.bottom-footer {
  text-align: center;
  padding: 20px 40px 28px;
  color: #888; font-size: .82rem;
}

.bottom-footer strong { color: var(--purple-mid); }

/* =============================================================
   SIDEBAR WIDGETS
   ============================================================= */
.koora-sidebar { margin: 0 40px 24px; }

.koora-sidebar .widget {
  background: #fff; border-radius: 14px;
  padding: 24px; margin-bottom: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

.koora-sidebar .widget-title {
  font-family: 'Tajawal', sans-serif;
  font-size: 1.1rem; color: var(--purple-dark);
  margin-bottom: 12px; letter-spacing: 1px;
  font-weight: 700;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 700px) {
  .koora-nav { padding: 0 12px; }

  .hero-banner,
  .info-section,
  .footer-nav,
  .footer-terms,
  .footer-world,
  .bottom-footer,
  .koora-sidebar { margin-left: 8px; margin-right: 8px; }

  .hero-banner { padding: 20px 16px; }

  .schedule-block {
    margin-left: 8px;
    margin-right: 8px;
    padding: 12px 8px;
    overflow: hidden;
  }

  .hero-title  { font-size: 1.3rem; }
  .hero-sub { font-size: .78rem; }

  .koora-nav .nav-links,
  .koora-nav #primary-menu { display: none; }

  .hero-badge  { display: none; }

  /* =====================================================
     بطاقة المباراة — موبايل
     هيكل Grid: [شعار] [اسم] [وسط] [اسم] [شعار]
     ===================================================== */
  .match-card {
    display: grid !important;
    grid-template-columns: 40px 1fr 80px 1fr 40px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    padding: 10px 8px !important;
    gap: 0 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 10px !important;
    border-bottom: none !important;
    margin-bottom: 6px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,.07) !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
  }

  /* العمود 1: شعار الفريق المضيف */
  .mc-home-logo {
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* العمود 2: اسم الفريق المضيف */
  .mc-home-name {
    grid-column: 2 !important;
    overflow: hidden !important;
    text-align: right !important;
    padding-right: 4px !important;
  }

  /* العمود 3: الوسط (وقت / نتيجة / حالة) */
  .match-center {
    grid-column: 3 !important;
    flex: unset !important;
    min-width: unset !important;
    max-width: unset !important;
    padding: 0 2px !important;
    text-align: center !important;
  }

  /* العمود 4: اسم الفريق الضيف */
  .mc-away-name {
    grid-column: 4 !important;
    overflow: hidden !important;
    text-align: left !important;
    padding-left: 4px !important;
  }

  /* العمود 5: شعار الفريق الضيف */
  .mc-away-logo {
    grid-column: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* إلغاء team-home/away القديمة */
  .team-home, .team-away {
    display: contents !important;
  }

  /* الشعارات */
  .team-logo-placeholder {
    width: 34px !important; height: 34px !important;
    min-width: 34px !important; max-width: 34px !important;
    font-size: .62rem !important;
    flex-shrink: 0 !important;
  }
  .team-logo-img {
    width: 34px !important; height: 34px !important;
    object-fit: contain !important;
  }

  /* الأسماء */
  .team-name {
    font-size: .78rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
    line-height: 1.3 !important;
  }

  /* النتيجة والوقت */
  .match-score { font-size: 1.2rem !important; letter-spacing: 2px !important; line-height: 1.1 !important; }
  .match-time  { font-size: 1.1rem !important; letter-spacing: 1px !important; font-weight: 700 !important; line-height: 1.1 !important; }

  /* شارة الحالة */
  .match-status {
    font-size: .6rem !important;
    padding: 3px 8px !important;
    border-radius: 5px !important;
    display: inline-block !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
  }

  /* العد التنازلي */
  .km-countdown {
    font-size: .62rem !important;
    line-height: 1.2 !important;
  }

  /* المجموعات والفاصل */
  .league-group { margin-bottom: 0 !important; overflow: hidden !important; width: 100% !important; }
  .league-header { padding: 8px 8px 7px !important; }

  /* إزالة الخط الفاصل بين البطاقات */
  .match-card + .match-card { border-top: none !important; }

  .league-group {
    overflow: hidden !important;
    width: 100% !important;
  }

  .km-stream-section {
    margin-left: 0;
    margin-right: 0;
  }

  .km-stream-container {
    border-radius: 0;
    padding-top: 62%;
  }

  .stream-embed-wrap {
    border-radius: 0;
    margin-left: -6px;
    margin-right: -6px;
    padding-top: 62%;
  }

  .filters { gap: 8px; margin-bottom: 16px; }
  .search-box { min-width: 100%; }
  .schedule-title { font-size: .82rem; padding: 8px 14px; }
  .day-tab { padding: 7px 14px; font-size: .8rem; }

  .info-section { padding: 20px 16px; }
  .section-badge { font-size: .82rem; padding: 8px 16px; }
}

/* =============================================================
   DARK MODE
   ============================================================= */
body.dark-mode {
  --light-bg:   #0f0f1a;
  --text-dark:  #e8e8f5;
  --text-muted: #9999bb;
  --border:     #2a2a45;
  background: #0f0f1a;
  color: #e8e8f5;
}

body.dark-mode .schedule-block {
  background: #16162a;
  border-color: #2a2a45;
}

body.dark-mode .schedule-header {
  background: linear-gradient(135deg, #1e0a3e 0%, #2d0a5e 100%);
  border-bottom-color: #2a2a45;
}

body.dark-mode .schedule-title {
  background: rgba(255,255,255,.07);
  color: #e8e8f5;
}

body.dark-mode .day-tab:not(.active) {
  background: #1e1e35;
  color: #c0c0e0;
  border-color: #2a2a45;
}

body.dark-mode .day-tab:not(.active):hover {
  background: #2a2a45;
}

body.dark-mode .timezone-select,
body.dark-mode .search-box,
body.dark-mode .league-select {
  background: #1e1e35;
  color: #e8e8f5;
  border-color: #3a3a60;
}

body.dark-mode .search-box:focus {
  background: #252545;
  border-color: var(--purple-mid);
}

body.dark-mode .filters {
  background: transparent;
}

body.dark-mode .reset-btn {
  background: #2a2a45;
  color: #e8e8f5;
}

body.dark-mode .reset-btn:hover {
  background: #3a3a60;
}

body.dark-mode .league-header {
  background: linear-gradient(135deg, #1e0a3e, #2d0a5e);
  color: #e8e8f5;
}

body.dark-mode .match-card {
  background: #1a1a30 !important;
  border-color: #2a2a45 !important;
  box-shadow: 0 1px 6px rgba(0,0,0,.3) !important;
}

body.dark-mode .match-card:hover {
  background: #20203a !important;
}

body.dark-mode .match-time {
  color: #b0b0d8;
}

body.dark-mode .status-not-started,
body.dark-mode .status-finished {
  background: #2a2a45;
  color: #a0a0c8;
}

body.dark-mode .status-postponed {
  background: #3a2d00;
  color: #e0b800;
}

body.dark-mode .info-section {
  background: #16162a;
  border-color: #2a2a45;
}

body.dark-mode .section-badge {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple-mid));
}

body.dark-mode .nav-moon {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
}

/* transition douce – body seulement, pas body * (trop lourd sur mobile) */
body {
  transition: background-color .25s ease, color .2s ease;
}

/* =============================================================
   AUTO DARK MODE – respects system preference on mobile
   (overridden by the manual toggle via body.dark-mode class)
   ============================================================= */
@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    --light-bg:   #0f0f1a;
    --text-dark:  #e8e8f5;
    --text-muted: #9999bb;
    --border:     #2a2a45;
    background: #0f0f1a;
    color: #e8e8f5;
  }
  body:not(.light-mode) .schedule-block          { background: #16162a; border-color: #2a2a45; }
  body:not(.light-mode) .schedule-header         { background: linear-gradient(135deg,#1e0a3e 0%,#2d0a5e 100%); border-bottom-color: #2a2a45; }
  body:not(.light-mode) .schedule-title          { background: rgba(255,255,255,.07); color: #e8e8f5; }
  body:not(.light-mode) .day-tab:not(.active)    { background: #1e1e35; color: #c0c0e0; border-color: #2a2a45; }
  body:not(.light-mode) .day-tab:not(.active):hover { background: #2a2a45; }
  body:not(.light-mode) .timezone-select,
  body:not(.light-mode) .search-box,
  body:not(.light-mode) .league-select           { background: #1e1e35; color: #e8e8f5; border-color: #3a3a60; }
  body:not(.light-mode) .reset-btn               { background: #2a2a45; color: #e8e8f5; }
  body:not(.light-mode) .reset-btn:hover         { background: #3a3a60; }
  body:not(.light-mode) .league-header           { background: linear-gradient(135deg,#1e0a3e,#2d0a5e); color: #e8e8f5; }
  body:not(.light-mode) .match-card              { background: #1a1a30 !important; border-color: #2a2a45 !important; box-shadow: 0 1px 6px rgba(0,0,0,.3) !important; }
  body:not(.light-mode) .match-card:hover        { background: #20203a !important; }
  body:not(.light-mode) .match-time              { color: #b0b0d8; }
  body:not(.light-mode) .status-not-started,
  body:not(.light-mode) .status-finished         { background: #2a2a45; color: #a0a0c8; }
  body:not(.light-mode) .status-postponed        { background: #3a2d00; color: #e0b800; }
  body:not(.light-mode) .info-section            { background: #16162a; border-color: #2a2a45; }
  body:not(.light-mode) .nav-moon                { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
}

/* =============================================================
   SEO – BREADCRUMBS
   ============================================================= */
.koora-breadcrumbs {
  padding: 8px 40px;
  font-size: .8rem;
  color: var(--text-muted);
  background: transparent;
}
.koora-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.koora-breadcrumbs li + li::before {
  content: '›';
  margin-left: 4px;
  color: var(--text-muted);
}
.koora-breadcrumbs a {
  color: var(--purple-mid);
  text-decoration: none;
}
.koora-breadcrumbs a:hover { text-decoration: underline; }

/* =============================================================
   SEO – INTERNAL LINKS SECTION
   ============================================================= */
.koora-seo-links {
  background: var(--light-bg);
  border-top: 2px solid var(--border);
  padding: 28px 40px;
}
.seo-links-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}
.seo-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.seo-link-item {
  display: inline-block;
  padding: 6px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.seo-link-item:hover {
  background: var(--purple-mid);
  color: #fff;
  border-color: var(--purple-mid);
}
.seo-links-days {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.seo-links-days a {
  font-size: .82rem;
  color: var(--purple-mid);
  text-decoration: none;
  font-weight: 600;
}
.seo-links-days a:hover { text-decoration: underline; }

/* Dark mode */
body.dark-mode .koora-seo-links,
body.dark-mode .koora-breadcrumbs { background: transparent; }
body.dark-mode .seo-link-item { background: #1e1e35; border-color: #3a3a60; color: #e8e8f5; }
body.dark-mode .seo-link-item:hover { background: var(--purple-mid); border-color: var(--purple-mid); color: #fff; }

@media (prefers-color-scheme: dark) {
  body:not(.light-mode) .seo-link-item { background: #1e1e35; border-color: #3a3a60; color: #e8e8f5; }
  body:not(.light-mode) .seo-link-item:hover { background: var(--purple-mid); }
  body:not(.light-mode) .koora-seo-links { background: transparent; }
}

@media (max-width: 600px) {
  .koora-breadcrumbs, .koora-seo-links { padding: 10px 16px; }
  .seo-links-grid { gap: 6px; }
}
