/*
Theme Name: Yalla Shoot Pro
Theme URI: https://yalla-shoot.com/
Author: Yalla Shoot
Author URI: https://yalla-shoot.com/
Description: A professional, ultra-fast, and SEO-optimized sports theme for live match schedules, results, channels, and standings.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yallashoot
Tags: sports, football, live-scores, rtl-language-support, custom-menu, featured-images, translation-ready, grid-layout
*/

/* Core CSS Variables */
:root {
  --ys-primary: #004f98;
  --ys-primary-hover: #003d77;
  --ys-header-badge: #094982;
  --ys-today-btn: #0d4f8b;
  --ys-tomorrow-btn: #c25907;
  --ys-yesterday-btn: #09355f;
  --ys-live-red: #c61010;
  --ys-bg-light: #f3f4f6;
  --ys-card-light: #ffffff;
  --ys-border-light: #cbd5e1;
  --ys-text-dark: #0f172a;
  --ys-text-muted: #64748b;
  --ys-font-main: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
}

/* Reset & Base Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--ys-font-main);
  background-color: var(--ys-bg-light);
  color: var(--ys-text-dark);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Container */
.ys-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header Navbar */
.ys-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: background 0.2s, border 0.2s;
}

.ys-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.ys-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ys-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
  color: #334155;
}

.ys-nav-links a:hover {
  color: var(--ys-primary);
}

/* Brand Logo Button */
.ys-brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ys-primary);
  color: #ffffff !important;
  font-family: sans-serif;
  font-size: 22px;
  font-weight: 800;
  padding: 10px 28px;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 79, 152, 0.25);
  transition: background-color 0.15s, transform 0.1s;
  letter-spacing: -0.5px;
}

.ys-brand-btn:hover {
  background-color: var(--ys-primary-hover);
  transform: translateY(-1px);
}

/* Schedule Card Container */
.ys-schedule-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--ys-border-light);
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

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

.ys-schedule-title-badge {
  background-color: var(--ys-header-badge);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.ys-date-filters {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ys-tz-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ys-date-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ys-date-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ys-btn-tomorrow {
  background-color: var(--ys-tomorrow-btn);
}
.ys-btn-tomorrow:hover {
  background-color: #a84204;
}

.ys-btn-today {
  background-color: var(--ys-today-btn);
}
.ys-btn-today:hover {
  background-color: #093c6c;
}

.ys-btn-yesterday {
  background-color: var(--ys-yesterday-btn);
}
.ys-btn-yesterday:hover {
  background-color: #062442;
}

.ys-date-btn.active {
  ring: 2px solid #ffffff;
  outline: 2px solid currentColor;
}

/* Match Cards */
.ys-match-card {
  background: var(--ys-card-light);
  border: 1px solid var(--ys-border-light);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}

.ys-match-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.ys-match-body {
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.ys-team {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ys-team-home {
  justify-content: flex-end;
  text-align: right;
}

.ys-team-away {
  justify-content: flex-start;
  text-align: left;
}

.ys-team-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--ys-text-dark);
}

.ys-team-logo {
  width: 48px;
  height: 48px;
  object-contain: contain;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  flex-shrink: 0;
}

.ys-match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.ys-score {
  font-size: 28px;
  font-weight: 900;
  font-family: sans-serif;
  color: var(--ys-text-dark);
  letter-spacing: 2px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.ys-live-pill {
  background-color: var(--ys-live-red);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 6px;
  animation: ysLivePulse 2s infinite ease-in-out;
}

@keyframes ysLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.04); }
}

.ys-upcoming-pill {
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
}

.ys-finished-pill {
  background-color: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
}

/* Match Bottom Info Bar */
.ys-match-footer {
  border-top: 1px solid var(--ys-border-light);
  background: #f8fafc;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

.ys-match-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Responsive adjustments for Mobile & Smart Phones */
.ys-match-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ys-match-card:active {
  transform: scale(0.99);
}

@media (max-width: 768px) {
  .ys-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .ys-schedule-box {
    padding: 16px 12px;
    border-radius: 16px;
    margin-top: 16px;
    margin-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .ys-match-body {
    padding: 12px 10px;
    gap: 6px;
    grid-template-columns: 1fr auto 1fr;
  }
  .ys-team {
    gap: 6px;
    min-width: 0;
  }
  .ys-team-name {
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .ys-team-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .ys-score {
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 4px;
  }
  .ys-live-pill {
    font-size: 9px;
    padding: 2px 8px;
  }
  .ys-upcoming-pill, .ys-finished-pill {
    font-size: 9px;
    padding: 2px 6px;
  }
  .ys-schedule-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }
  .ys-schedule-title-badge {
    font-size: 14px;
    padding: 8px 16px;
    align-self: flex-start;
  }
  .ys-date-filters {
    align-items: stretch;
    width: 100%;
  }
  .ys-date-btn-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
  }
  .ys-date-btn {
    text-align: center;
    padding: 7px 4px;
    font-size: 11px;
  }
  .ys-match-footer {
    font-size: 11px;
    padding: 8px 10px;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
  }
  .ys-match-footer-item {
    font-size: 10px;
  }
  .ys-watch-btn {
    font-size: 10px !important;
    padding: 3px 8px !important;
  }
}

@media (max-width: 400px) {
  .ys-team-name {
    font-size: 11px;
  }
  .ys-team-logo {
    width: 28px;
    height: 28px;
  }
  .ys-score {
    font-size: 18px;
  }
}
