/* ═══════════════════════════════════════════════
   AEK Match Center — aekpassion.gr theme
   Jannah theme compatible: light bg, serif fonts
═══════════════════════════════════════════════ */

/* CSS Variables — aekpassion palette */
:root {
  --ap-gold:   #F5C400;
  --ap-dark:   #1a1a1a;
  --ap-darker: #111;
  --ap-gray1:  #f5f5f5;
  --ap-gray2:  #e8e8e8;
  --ap-gray3:  #999;
  --ap-gray4:  #555;
  --ap-white:  #ffffff;
  --ap-red:    #e53935;
  --ap-border: #e0e0e0;
  --ap-radius: 6px;
  --ap-font-h: Georgia, 'Times New Roman', serif;
  --ap-font-b: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ═══════════════════════════════════
   MATCH BAR WIDGET  [amc_matches_bar]
   Style: magazine header bar
   Dark bg with gold accent
═══════════════════════════════════ */
.mcbar {
  background: var(--ap-dark);
  border: none;
  border-radius: var(--ap-radius);
  overflow: hidden;
  margin-bottom: 20px;
  font-family: var(--ap-font-b);
}

/* Header: title left + tabs right */
.mcbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--ap-darker);
  border-bottom: 2px solid var(--ap-gold);
  gap: 10px;
  flex-wrap: wrap;
}
.mcbar-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-gold);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-family: var(--ap-font-b);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.mcbar-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.mcbar-tabs::-webkit-scrollbar { display: none; }
.mcbar-tab {
  background: transparent;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  white-space: nowrap;
  transition: .15s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.mcbar-tab:hover,
.mcbar-tab.active {
  background: var(--ap-gold) !important;
  color: var(--ap-dark) !important;
  border-color: var(--ap-gold) !important;
}

/* Nav arrows + scroll */
.mcbar-nav-wrap {
  display: flex;
  align-items: stretch;
}
.mcbar-nav-btn {
  flex-shrink: 0;
  width: 30px;
  background: #222;
  border: none;
  border-right: 1px solid #333;
  color: #555;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.mcbar-nav-next { border-right: none; border-left: 1px solid #333; }
.mcbar-nav-btn:hover { background: #2a2a2a; color: var(--ap-gold); }

.mcbar-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  flex: 1;
}
.mcbar-scroll::-webkit-scrollbar { display: none; }
.mcbar-track { display: flex; }

/* Cards */
a.mcbar-card {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #1e1e1e;
  border-right: 1px solid #2a2a2a;
  text-decoration: none !important;
  color: inherit;
  transition: background .15s;
  scroll-snap-align: start;
  cursor: pointer;
}
a.mcbar-card:last-child { border-right: none; }
a.mcbar-card:hover { background: #252525; }
a.mcbar-card, a.mcbar-card * { text-decoration: none !important; }

/* Card head: sport tag + live */
.mcbar-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.mcbar-card-meta { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mcbar-sport-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--ap-gold);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.mcbar-comp { font-size: 10px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcbar-live-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ap-red); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 7px; border-radius: 20px; flex-shrink: 0;
}
.mcbar-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: amc-blink 1s ease-in-out infinite;
  display: inline-block;
}
@keyframes amc-blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Teams */
.mcbar-vs-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mcbar-team   { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.mcbar-logo   { width: 44px; height: 44px; object-fit: contain; }
.mcbar-logo-fb {
  width: 44px; height: 44px;
  background: #333; border: 1px solid #444; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--ap-gold);
}
.mcbar-tname { font-size: 12px; font-weight: 700; color: #eee; text-align: center; line-height: 1.2; }
.mcbar-mid   { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.mcbar-vs    { font-size: 16px; font-weight: 900; color: var(--ap-gold); }
.mcbar-score-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 3px; }
.mcbar-sep   { font-size: 18px; font-weight: 700; color: #555; }
.mcbar-score { font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.mcbar-time  { font-size: 14px; font-weight: 700; color: #ccc; }

/* Info */
.mcbar-info {
  border-top: 1px solid #2a2a2a;
  padding-top: 8px;
  display: flex; flex-direction: column; gap: 3px;
}
.mcbar-info-date  { font-size: 11px; color: #555; font-weight: 600; }
.mcbar-info-sub   { display: flex; gap: 8px; flex-wrap: wrap; }
.mcbar-info-tv    { font-size: 10px; color: var(--ap-gold); font-weight: 600; }
.mcbar-info-venue { font-size: 10px; color: #555; }

/* Mobile */
@media (max-width: 600px) {
  a.mcbar-card { width: 200px; }
  .mcbar-logo, .mcbar-logo-fb { width: 36px; height: 36px; }
  .mcbar-score { font-size: 20px; }
}

/* ═══════════════════════════════════
   MATCH CENTER  [amc_match_center]
   Light bg (Jannah white content area)
═══════════════════════════════════ */
.mc-wrap {
  font-family: var(--ap-font-b);
  color: var(--ap-dark);
}
.mc-empty { text-align: center; padding: 30px; color: var(--ap-gray3); }

/* Toolbar */
.mc-toolbar { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mc-tabs, .mc-month-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-tab, .mc-month-btn {
  background: var(--ap-white);
  border: 1.5px solid var(--ap-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ap-gray4);
  cursor: pointer;
  transition: .15s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.mc-tab:hover, .mc-tab.active {
  background: var(--ap-gold) !important;
  color: var(--ap-dark) !important;
  border-color: var(--ap-gold) !important;
}
.mc-month-tabs .mc-month-btn {
  font-size: 11px; padding: 4px 11px;
  background: var(--ap-gray1); border-color: var(--ap-border); color: var(--ap-gray3);
}
.mc-month-tabs .mc-month-btn:hover,
.mc-month-tabs .mc-month-btn.active {
  background: var(--ap-dark) !important; color: var(--ap-gold) !important; border-color: var(--ap-dark) !important;
}

/* Section header */
.mc-section-hdr {
  font-family: var(--ap-font-h);
  font-size: 14px; font-weight: 700;
  color: var(--ap-dark);
  letter-spacing: .04em; text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--ap-gold);
  display: inline-block;
}

/* Day block */
.mc-day { margin-bottom: 16px; border: 1px solid var(--ap-border); border-radius: var(--ap-radius); overflow: hidden; }
.mc-day-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  background: var(--ap-gray1);
  border-bottom: 1px solid var(--ap-border);
}
.mc-day-label { font-size: 13px; font-weight: 700; color: var(--ap-dark); font-family: var(--ap-font-h); }
.mc-day-date  { font-size: 11px; color: var(--ap-gray3); }
.mc-day-rows  { background: var(--ap-white); }

/* Match row */
a.mc-row {
  display: grid;
  grid-template-columns: 36px 52px 90px 1fr 68px 1fr 130px;
  align-items: center;
  gap: 0 8px;
  padding: 10px 14px;
  background: var(--ap-white);
  border-bottom: 1px solid var(--ap-border);
  text-decoration: none !important;
  color: var(--ap-dark);
  transition: background .15s;
  cursor: pointer;
}
a.mc-row, a.mc-row * { text-decoration: none !important; }
a.mc-row:last-child { border-bottom: none; }
a.mc-row:hover { background: var(--ap-gray1); }
a.mc-row.mc-row-live { border-left: 3px solid var(--ap-red); }
a.mc-row.mc-row-done { opacity: .8; }

/* Sport icon */
.mc-row-sport { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mc-row-sport-icon { font-size: 16px; line-height: 1; }
.mc-row-sport-lbl  { font-size: 7px; font-weight: 700; color: var(--ap-gray3); text-transform: uppercase; }

/* Time */
.mc-row-time { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mc-row-t    { font-size: 14px; font-weight: 700; color: var(--ap-dark); }
.mc-dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ap-red); animation: amc-blink 1s ease-in-out infinite; display: block; }
.mc-lbl-live { color: var(--ap-red); font-size: 10px; font-weight: 700; }
.mc-lbl-done { font-size: 10px; color: var(--ap-gray3); }
.mc-lbl-post { font-size: 10px; color: #ff9800; }

/* Competition */
.mc-row-comp span { font-size: 10px; color: var(--ap-gray3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Teams */
.mc-row-home { display: flex; align-items: center; gap: 7px; justify-content: flex-end; }
.mc-row-away { display: flex; align-items: center; gap: 7px; justify-content: flex-start; }
.mc-name { font-size: 13px; font-weight: 600; color: var(--ap-dark); }
.mc-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.mc-win  { font-weight: 700; color: var(--ap-darker); }

/* Score */
.mc-row-score { display: flex; align-items: center; justify-content: center; gap: 4px; }
.mc-sc        { font-size: 17px; font-weight: 900; color: var(--ap-dark); min-width: 16px; text-align: center; }
.mc-sc-live   { color: var(--ap-red); }
.mc-sep       { font-size: 13px; color: var(--ap-gray3); }
.mc-vs-sm     { font-size: 11px; font-weight: 700; color: var(--ap-gray3); }

/* Info */
.mc-row-info { display: flex; flex-direction: column; gap: 2px; padding-left: 8px; overflow: hidden; }
.mc-tv, .mc-venue { font-size: 10px; color: var(--ap-gray3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sc-home { font-size: 10px; color: var(--ap-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sc-away { font-size: 10px; color: var(--ap-gray3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Mobile */
@media (max-width: 768px) {
  a.mc-row { grid-template-columns: 28px 44px 1fr 60px 1fr; gap: 0 5px; padding: 9px 10px; }
  .mc-row-comp, .mc-row-info { display: none; }
  .mc-row-sport-lbl { display: none; }
  .mc-name { font-size: 12px; }
  .mc-sc   { font-size: 15px; }
  .mc-logo { width: 16px; height: 16px; }
}
@media (max-width: 480px) {
  .mc-tabs, .mc-month-tabs { gap: 4px; }
  .mc-tab, .mc-month-btn   { padding: 5px 10px; font-size: 11px; }
}

/* ═══════════════════════════════════
   SINGLE MATCH PAGE  /agonas/
   Light content area like Jannah
═══════════════════════════════════ */
.sp-match {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 0 40px;
  font-family: var(--ap-font-b);
}

/* Sport badge */
.sp-sport-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--ap-gold);
  color: var(--ap-dark);
  font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
  margin-bottom: 12px;
}

/* Hero box */
.sp-hero {
  background: var(--ap-dark);
  border-radius: var(--ap-radius);
  padding: 20px;
  margin-bottom: 14px;
}
.sp-hero-live     { border-left: 4px solid var(--ap-red); }
.sp-hero-finished { border-left: 4px solid var(--ap-gold); }

/* Top meta */
.sp-hero-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 18px; gap: 10px;
}
.sp-hero-info { flex: 1; text-align: center; }
.sp-hero-date { font-size: 12px; color: #888; margin-bottom: 3px; }
.sp-hero-comp { font-size: 11px; font-weight: 700; color: #aaa; letter-spacing: .05em; text-transform: uppercase; }

.sp-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 3px;
  background: #2a2a2a; color: #888;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.sp-badge-live { background: var(--ap-red); color: #fff; }
.sp-badge-done { background: var(--ap-gold); color: var(--ap-dark); }
.sp-pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: amc-blink 1s ease-in-out infinite; display: inline-block; }

/* Scoreboard */
.sp-scoreboard {
  display: flex; align-items: flex-start;
  gap: 16px; margin-bottom: 18px;
}
.sp-sb-team {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.sp-sb-logo-wrap { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; }
.sp-sb-logo-wrap img { width: 80px; height: 80px; object-fit: contain; }
.sp-logo-fb {
  width: 80px; height: 80px; background: #2a2a2a; border: 2px solid #333;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--ap-gold);
}
.sp-sb-name { font-size: 15px; font-weight: 700; color: #eee; text-align: center; line-height: 1.2; font-family: var(--ap-font-h); }

/* Scorers under each team */
.sp-sb-scorers { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.sp-sb-team:first-child .sp-sb-scorers { align-items: flex-start; }
.sp-sb-team:last-child  .sp-sb-scorers { align-items: flex-end; }
.sp-sb-scorer { font-size: 11px; color: #ccc; line-height: 1.3; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.sp-sb-team:last-child .sp-sb-scorer { flex-direction: row-reverse; }

/* Score center */
.sp-sb-center {
  flex-shrink: 0; min-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding-top: 12px;
}
.sp-sb-score {
  display: flex !important; flex-direction: row !important;
  align-items: center; gap: 6px;
}
.sp-sb-sn  { font-size: 54px; font-weight: 900; color: #fff; line-height: 1; min-width: 36px; text-align: center; }
.sp-sb-sep { font-size: 38px; font-weight: 300; color: #555; line-height: 1; }
.sp-sb-lbl { font-size: 10px; color: #777; letter-spacing: .08em; text-transform: uppercase; }
.sp-sb-lbl-live { color: var(--ap-red); display: flex; align-items: center; gap: 4px; justify-content: center; }
.sp-sb-vs   { font-size: 30px; font-weight: 900; color: var(--ap-gold); }
.sp-sb-time { font-size: 34px; font-weight: 900; color: var(--ap-gold); }

/* Info strip */
.sp-info-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid #2a2a2a;
  font-size: 12px; color: #777;
}
.sp-tv-link  { color: var(--ap-gold); text-decoration: none; }
.sp-tv-link:hover { text-decoration: underline; }
.sp-cal-btn  { color: var(--ap-gold); text-decoration: none; font-weight: 600; }

/* Info cards — Jannah style */
.sp-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.sp-info-c {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  text-decoration: none;
  transition: border-color .15s;
  color: var(--ap-dark);
}
a.sp-info-c:hover { border-color: var(--ap-gold); }
.sp-info-lbl { font-size: 10px; font-weight: 700; color: var(--ap-gray3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.sp-info-val { font-size: 13px; font-weight: 600; color: var(--ap-dark); }

@media (max-width: 600px) {
  .sp-info-cards { grid-template-columns: 1fr; }
  .sp-sb-sn  { font-size: 40px; }
  .sp-sb-sep { font-size: 28px; }
  .sp-sb-logo-wrap, .sp-sb-logo-wrap img, .sp-logo-fb { width: 56px; height: 56px; }
  .sp-sb-name { font-size: 12px; }
  .sp-sb-center { min-width: 90px; padding-top: 8px; }
  .sp-hero { padding: 14px; }
}

/* ═══════════════════════════════════
   SIDEBAR WIDGET (AMC_Match_Widget)
   Fits Jannah sidebar widget boxes
═══════════════════════════════════ */
.amc-sw-card {
  display: block; text-decoration: none !important; color: inherit;
  background: var(--ap-white);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  overflow: hidden; margin-bottom: 10px;
  transition: border-color .15s;
}
.amc-sw-card:hover { border-color: var(--ap-gold); }
.amc-sw-card, .amc-sw-card * { text-decoration: none !important; }
.amc-sw-head {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--ap-dark);
  border-bottom: 2px solid var(--ap-gold);
}
.amc-sw-sport  { font-size: 11px; font-weight: 700; color: var(--ap-gold); }
.amc-sw-comp   { font-size: 10px; color: #888; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amc-sw-badge  { font-size: 10px; font-weight: 700; color: #888; background: #333; padding: 2px 7px; border-radius: 3px; display: inline-flex; align-items: center; gap: 4px; }
.amc-sw-live   { background: var(--ap-red); color: #fff; }
.amc-sw-teams  { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; gap: 8px; }
.amc-sw-team   { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.amc-sw-logo   { width: 42px; height: 42px; object-fit: contain; }
.amc-sw-logo-fb{ width: 42px; height: 42px; background: var(--ap-gray2); border: 1px solid var(--ap-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ap-dark); }
.amc-sw-tname  { font-size: 12px; font-weight: 700; color: var(--ap-dark); text-align: center; line-height: 1.2; }
.amc-sw-mid    { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.amc-sw-vs     { font-size: 16px; font-weight: 900; color: var(--ap-gold); }
.amc-sw-score  { font-size: 22px; font-weight: 900; color: var(--ap-red); }
.amc-sw-time   { font-size: 13px; font-weight: 700; color: var(--ap-dark); }
.amc-sw-foot   { display: flex; flex-direction: column; gap: 3px; padding: 8px 12px; border-top: 1px solid var(--ap-border); font-size: 10px; color: var(--ap-gray3); }
