/*
Theme Name: Yalla Shoot MA - يلا شوت المغرب
Theme URI: https://yallashoot.ma
Author: Yalla Shoot MA Team
Author URI: https://yallashoot.ma
Description: قالب ووردبريس رياضي إحترافي خفيف وسريع بالوضع النهاري لنقل بث مباشر مباريات كرة القدم، مع دعم كامل للبطولات السبعة وكأس العالم والبطولة المغربية ومبدل البث ثلاثي اللغات (عربي، إنجليزي، فرنسي).
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yallashoot-ma
Domain Path: /languages
Tags: sports, football, live-streaming, responsive, light-mode, rtl-support, morocco, fast-loading, custom-logo
*/

/* استيراد خط Cairo من Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

/* المتغيرات والتنسيق النهاري الاحترافي (أزرق ملكي + أحمر رياضي) */
:root {
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --secondary: #dc2626;
  --secondary-light: #fef2f2;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-hover: #93c5fd;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  direction: rtl;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ==================== ترويسة الموقع (Header) ==================== */
.yalla-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.yalla-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  gap: 16px;
}

.yalla-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.yalla-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yalla-custom-logo {
  max-height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.yalla-logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 20px;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.yalla-brand-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  line-height: 1;
}

.yalla-dot-ma {
  color: var(--secondary);
  font-weight: 900;
}

.yalla-brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}

.yalla-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  font-weight: 600;
}

.yalla-clock-badge strong {
  color: #0f172a;
  font-family: monospace;
}

/* ==================== شريط البطولات السبعة (League Bar) ==================== */
.yalla-leagues-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.yalla-leagues-list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.yalla-league-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  transition: all 0.2s;
  cursor: pointer;
}

.yalla-league-btn:hover {
  background: #f8fafc;
  border-color: var(--border-hover);
  color: var(--primary);
}

.yalla-league-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25);
}

.yalla-league-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.06);
  font-family: monospace;
}

.yalla-league-btn.active .yalla-league-badge {
  background: rgba(255,255,255,0.25);
  color: #ffffff;
}

/* ==================== صندوق السيو H1 (SEO Section) ==================== */
.yalla-seo-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}

.yalla-seo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 8px;
  border: 1px solid var(--primary-border);
}

.yalla-seo-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
  margin-bottom: 8px;
}

.yalla-seo-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}

/* ==================== البنر الترويجي لمباراة القمة (Hero Banner) ==================== */
.yalla-hero-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 60%, #312e81 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.yalla-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.yalla-hero-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
}

.yalla-hero-meta {
  font-size: 13px;
  color: #dbeafe;
}

.yalla-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, background 0.2s;
}

.yalla-hero-btn:hover {
  transform: translateY(-2px);
  background: #f8fafc;
}

/* ==================== شبكة كروت المباريات (Match Cards Grid) ==================== */
.yalla-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 640px) {
  .yalla-matches-grid {
    grid-template-columns: 1fr;
  }
}

.yalla-match-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.yalla-match-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.yalla-match-topbar {
  background: #f8fafc;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.yalla-league-badge-card {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--primary-border);
}

.yalla-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--secondary-light);
  color: var(--secondary);
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #fecaca;
  font-size: 11px;
}

.yalla-live-dot {
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.yalla-match-body {
  padding: 16px;
  flex: 1;
}

.yalla-teams-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.yalla-team {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yalla-team-home {
  justify-content: flex-end;
  text-align: left;
}

.yalla-team-away {
  justify-content: flex-start;
  text-align: right;
}

.yalla-team-name {
  font-weight: 800;
  font-size: 14px;
  color: #0f172a;
}

.yalla-team-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yalla-team-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.yalla-match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.yalla-score-badge {
  background: #0f172a;
  color: #ffffff;
  font-family: monospace;
  font-weight: 900;
  font-size: 18px;
  padding: 3px 12px;
  border-radius: 10px;
  letter-spacing: 2px;
}

.yalla-time-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-family: monospace;
  font-weight: 800;
  font-size: 16px;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid var(--primary-border);
}

.yalla-time-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.yalla-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 11px;
  color: var(--text-muted);
  align-items: center;
  justify-content: space-between;
}

.yalla-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8fafc;
  padding: 3px 8px;
  border-radius: 6px;
}

.yalla-streams-pill {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--primary-border);
  font-size: 10px;
}

.yalla-btn-stream {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
  transition: background 0.2s, transform 0.1s;
}

.yalla-btn-stream:hover {
  background: var(--primary-hover);
}

.yalla-btn-stream.live {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

/* ==================== مشغل البث ثلاثي اللغات (Stream Player) ==================== */
.yalla-stream-switcher {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.yalla-stream-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  color: #475569;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.yalla-stream-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25);
}

.yalla-player-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.yalla-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==================== الفوتر (Footer) ==================== */
.yalla-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: 50px;
  padding: 40px 0 20px;
  color: #475569;
}

.yalla-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .yalla-footer-grid {
    grid-template-columns: 1fr;
  }
}

.yalla-footer-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.yalla-footer-links {
  list-style: none;
  line-height: 2;
  font-size: 13px;
}

.yalla-footer-links a:hover {
  color: var(--primary);
}

.yalla-social-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.yalla-social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  transition: all 0.2s ease;
  text-decoration: none;
}

.yalla-social-icon-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.yalla-social-icon-btn.fb:hover { background: #1877f2; }
.yalla-social-icon-btn.tw:hover { background: #0f1419; }
.yalla-social-icon-btn.ig:hover { background: #e1306c; }
.yalla-social-icon-btn.yt:hover { background: #ff0000; }
.yalla-social-icon-btn.tg:hover { background: #229ed9; }

.yalla-copyright {
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}
