/* ── Table Wrap ── */
.footpro-table-wrap {
  font-family: var(--font, 'Tajawal', -apple-system, sans-serif);
  max-width: 100%;
  margin: 28px 0;
  background: transparent;
}

.footpro-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 0 16px; flex-wrap: wrap; gap: 10px;
}

.footpro-table-title {
  margin: 0; font-size: 18px; font-weight: 800;
  color: #1a1a2e;
  display: flex; align-items: center; gap: 8px;
}
.footpro-table-wrap.footpro-dark .footpro-table-title,
[data-theme="dark"] .footpro-table-title { color: #e0e0e8; }
.footpro-table-title::before {
  content: '';
  display: inline-block; width: 3px; height: 20px;
  background: var(--primary, #e74c3c);
  border-radius: 3px;
}

.footpro-tabs {
  display: flex; gap: 2px;
  background: var(--bg, #f0f2f5); padding: 2px; border-radius: 8px;
}
.footpro-tab {
  padding: 6px 16px; border-radius: 6px; text-decoration: none;
  color: var(--text-secondary, #7f8c8d); font-size: 13px; font-weight: 600;
  transition: all 0.2s ease;
}
.footpro-tab:hover { color: var(--text, #2c3e50); }
.footpro-tab.active {
  background: var(--primary, #e74c3c); color: #fff;
}

.footpro-matches-list { min-height: 60px; }
.footpro-matches-list.footpro-loading { opacity: 0.4; pointer-events: none; }

/* ── Match Card ── */
.footpro-match-card-wrap {
  position: relative;
  background: var(--card-bg, var(--bg-card, #fff));
  border: 1px solid var(--card-border, var(--border, #e8ecf1));
  border-radius: var(--radius, 10px);
  margin-bottom: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.footpro-match-card-wrap:last-child { margin-bottom: 0; }
.footpro-match-card-wrap:hover {
  border-color: var(--primary, #e74c3c);
  box-shadow: 0 2px 12px rgba(231,76,60,0.1);
}

.footpro-match-card-link {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2; cursor: pointer;
}

.footpro-match-card {
  display: flex; flex-direction: column;
  padding: 16px 20px; position: relative;
  overflow: hidden;
}

/* ── Hover Overlay ── */
.footpro-hover-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s ease; z-index: 3;
  pointer-events: none;
  border-radius: var(--radius, 10px);
}
.footpro-match-card-wrap:hover .footpro-hover-overlay {
  opacity: 1; visibility: visible;
}

.footpro-hover-play {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary, #e74c3c);
  color: #fff; font-size: 20px;
  transform: scale(0.85);
  transition: transform 0.2s ease;
}
.footpro-match-card-wrap:hover .footpro-hover-play {
  transform: scale(1);
}
.footpro-hover-play.has-text {
  width: auto; height: auto; border-radius: 8px;
  padding: 10px 24px; font-size: 14px; font-weight: 700; gap: 8px;
}
.footpro-hover-play.ad-popup-trigger {
  background: var(--primary, #e74c3c);
  width: auto; height: auto; border-radius: 8px;
  padding: 10px 24px; font-size: 14px; font-weight: 700; gap: 8px;
}
.footpro-hover-play.ad-popup-trigger i { font-size: 16px; }

/* ── Tournament ── */
.footpro-match-tournament {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-secondary, #7f8c8d);
  margin-bottom: 8px;
}
.footpro-match-tournament img {
  width: 16px; height: 16px; object-fit: contain;
}

/* ── Match Body ── */
.footpro-match-body {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; position: relative; z-index: 1;
}

.footpro-team {
  flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
}
.footpro-team-away { flex-direction: row-reverse; }

.footpro-team-logo, .footpro-team-logo-placeholder {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0;
}
.footpro-team-logo-placeholder {
  background: var(--primary-light, rgba(231,76,60,0.1));
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; color: var(--primary, #e74c3c); font-size: 16px;
}

.footpro-team-name {
  font-weight: 800; font-size: 15px;
  color: var(--card-text, var(--text, #2c3e50));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

.footpro-match-center {
  flex: 0 0 auto; text-align: center; min-width: 90px;
}

/* Score */
.footpro-score {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 24px; font-weight: 900;
  color: var(--card-text, var(--text, #2c3e50));
}
.footpro-score-num { min-width: 26px; }
.footpro-score-sep { color: var(--text-muted, #b0b0b0); font-weight: 400; }

/* Live */
.footpro-live-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; color: var(--primary, #e74c3c);
  font-weight: 800; font-size: 13px; margin-bottom: 3px;
}
.footpro-live-dot {
  width: 8px; height: 8px; background: var(--primary, #e74c3c);
  border-radius: 50%; animation: footpro-pulse 1.4s ease-in-out infinite;
  display: inline-block;
}
@keyframes footpro-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}

/* Time */
.footpro-time {
  font-size: 20px; font-weight: 800;
  color: var(--card-text, var(--text, #2c3e50));
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.footpro-time-icon { font-size: 14px; color: var(--text-secondary, #7f8c8d); }
.footpro-date-label {
  font-size: 11px; font-weight: 500;
  color: var(--text-secondary, #7f8c8d); margin-top: 2px;
}

/* ── Footer ── */
.footpro-match-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border, #e8ecf1);
  position: relative; z-index: 1;
}

.footpro-status-badge {
  font-size: 11px; padding: 3px 12px; border-radius: 20px;
  font-weight: 700;
}
.footpro-status-badge.status-upcoming {
  background: rgba(255, 193, 7, 0.15); color: #b8860b;
}
.footpro-status-badge.status-live {
  background: rgba(231, 76, 60, 0.12); color: var(--primary, #e74c3c);
}
.footpro-status-badge.status-finished {
  background: rgba(76, 175, 80, 0.12); color: #2e7d32;
}

.footpro-watch-btn-label, .footpro-details-btn-label {
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 5px;
}
.footpro-watch-btn-label { color: var(--primary, #e74c3c); }
.footpro-details-btn-label { color: var(--text-secondary, #7f8c8d); }

/* No matches */
.footpro-no-matches {
  text-align: center; padding: 40px 20px;
  color: var(--text-secondary, #7f8c8d); font-size: 14px;
}

/* ── Live Widget ── */
.footpro-live-widget {
  background: var(--bg-card, #fff); border-radius: var(--radius, 10px);
  overflow: hidden; border: 1px solid var(--border, #e8ecf1);
}
.footpro-live-header {
  background: linear-gradient(135deg, var(--primary, #e74c3c), #c0392b);
  color: #fff; padding: 14px 20px; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; gap: 8px;
}
.footpro-live-header .footpro-live-dot { background: #fff; width: 8px; height: 8px; }

/* ── Featured Match ── */
.footpro-featured-match { margin: 24px 0; }
.footpro-featured-match .footpro-match-card-wrap {
  border: 2px solid var(--primary, #e74c3c);
  box-shadow: 0 2px 16px rgba(231,76,60,0.15);
}
.footpro-featured-match .footpro-team-logo,
.footpro-featured-match .footpro-team-logo-placeholder { width: 50px; height: 50px; }
.footpro-featured-match .footpro-score { font-size: 26px; }
.footpro-featured-match .footpro-team-name { font-size: 17px; }

/* ── Dark mode (remaining overrides) ── */
[data-theme="dark"] .footpro-table-title,
.footpro-table-wrap.footpro-dark .footpro-table-title { color: #e0e0e8; }
[data-theme="dark"] .footpro-tab:hover,
.footpro-table-wrap.footpro-dark .footpro-tab:hover { color: #e0e0e8; }
[data-theme="dark"] .footpro-live-widget,
.footpro-table-wrap.footpro-dark .footpro-live-widget { background: #141420; border-color: #1e1e30; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .footpro-table-header { flex-direction: column; align-items: stretch; }
  .footpro-tabs { justify-content: center; }
  .footpro-match-card { padding: 14px 16px; }
  .footpro-team-logo, .footpro-team-logo-placeholder { width: 32px; height: 32px; }
  .footpro-team-name { font-size: 13px; }
  .footpro-team { gap: 8px; }
  .footpro-score { font-size: 20px; }
  .footpro-time { font-size: 16px; }
  .footpro-match-center { min-width: 70px; }
  .footpro-hover-play { width: 42px; height: 42px; font-size: 18px; }
  .footpro-featured-match .footpro-team-logo,
  .footpro-featured-match .footpro-team-logo-placeholder { width: 42px; height: 42px; }
  .footpro-featured-match .footpro-team-name { font-size: 15px; }
  .footpro-featured-match .footpro-score { font-size: 22px; }
}

@media (max-width: 480px) {
  .footpro-match-card { padding: 12px 14px; }
  .footpro-team-logo, .footpro-team-logo-placeholder { width: 28px; height: 28px; }
  .footpro-team-name { font-size: 12px; }
  .footpro-score { font-size: 17px; }
  .footpro-time { font-size: 14px; }
  .footpro-match-center { min-width: 60px; }
  .footpro-hover-play { width: 38px; height: 38px; font-size: 16px; }
}
