/*
Theme Name: YallaScore Football
Theme URI: https://yallascore.online
Author: YallaScore Team
Author URI: https://yallascore.online
Description: A professional football live score WordPress theme with RTL support for Arabic, Urdu & English. Features live scores, match previews, league tables, player profiles and breaking news ticker.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
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: yallascore
Tags: sports, football, rtl-language, custom-menu, featured-images, full-width-template, custom-colors, responsive-layout
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
  --primary: #00c853;
  --primary-dark: #009624;
  --primary-light: #5efc82;
  --secondary: #1a1a2e;
  --dark: #0d0d1a;
  --darker: #07070f;
  --card-bg: #16213e;
  --card-border: #1f3160;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --accent-red: #ff4444;
  --accent-yellow: #ffd700;
  --accent-blue: #4a90e2;
  --accent-orange: #ff6b35;
  --border-color: #2d3748;
  --gradient-main: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #0d2137 100%);
  --gradient-green: linear-gradient(135deg, #00c853, #009624);
  --gradient-card: linear-gradient(145deg, #16213e, #1a2744);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 30px rgba(0, 200, 83, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
  --font-arabic: 'Cairo', 'Noto Sans Arabic', Arial, sans-serif;
  --font-english: 'Roboto', 'Inter', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--dark);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body.rtl, [dir="rtl"] {
  direction: rtl;
  text-align: right;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; }
input, textarea, select { outline: none; border: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

/* ============================================
   LAYOUT CONTAINERS
============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-fluid { width: 100%; padding: 0 16px; }

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-content { flex: 1; }

/* Grid System */
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.col-8 { grid-column: span 8; }
.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }

/* ============================================
   BREAKING NEWS TICKER
============================================ */
.news-ticker {
  background: var(--accent-red);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.news-ticker .ticker-label {
  background: var(--darker);
  color: var(--accent-yellow);
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  white-space: nowrap;
}
.rtl .news-ticker .ticker-label { left: auto; right: 0; }
.ticker-wrapper {
  overflow: hidden;
  padding: 0 0 0 120px;
}
.rtl .ticker-wrapper { padding: 0 120px 0 0; }
.ticker-content {
  display: flex;
  animation: ticker-scroll 30s linear infinite;
  white-space: nowrap;
}
.ticker-content:hover { animation-play-state: paused; }
.ticker-item {
  padding: 0 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.ticker-item::before { content: "⚽ "; }
@keyframes ticker-scroll {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(-100%); }
}

/* ============================================
   HEADER
============================================ */
.site-header {
  background: var(--darker);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-logo img { height: 44px; width: auto; }
.site-title-wrap .site-title {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.5px;
}
.site-title-wrap .site-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Main Navigation */
.main-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  background: rgba(0, 200, 83, 0.15);
  color: var(--primary);
}
.nav-menu li.live-nav > a {
  background: var(--accent-red);
  color: #fff;
  animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255,68,68,0); }
}
.live-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-search {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 6px 14px;
  gap: 8px;
}
.header-search input {
  background: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  width: 160px;
}
.header-search input::placeholder { color: var(--text-muted); }
.btn-search { background: none; color: var(--text-muted); font-size: 1rem; }
.btn-search:hover { color: var(--primary); }

.lang-switcher {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: none;
  transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO / LIVE SCORES BAR
============================================ */
.scores-bar {
  background: var(--secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  overflow: hidden;
}
.scores-slider {
  display: flex;
  gap: 12px;
  animation: slide-scores 40s linear infinite;
  width: max-content;
}
.scores-slider:hover { animation-play-state: paused; }
.score-card-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  min-width: 220px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.score-card-mini:hover {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0,200,83,0.15);
}
.score-card-mini .team-name {
  font-size: 0.8rem;
  font-weight: 700;
  flex: 1;
}
.score-card-mini .score-num {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-primary);
  background: var(--darker);
  padding: 2px 10px;
  border-radius: 4px;
}
.score-card-mini .match-status {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.status-live { background: rgba(255,68,68,0.2); color: var(--accent-red); }
.status-ft { background: rgba(100,100,100,0.2); color: var(--text-muted); }
.status-ht { background: rgba(255,165,0,0.2); color: orange; }
.status-ns { background: rgba(74,144,226,0.2); color: var(--accent-blue); }
@keyframes slide-scores {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SECTION HEADERS
============================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}
.section-title .icon {
  background: var(--gradient-green);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.section-title .indicator {
  width: 4px; height: 20px;
  background: var(--gradient-green);
  border-radius: 2px;
}
.see-all-btn {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--primary);
  border-radius: 20px;
  transition: var(--transition);
}
.see-all-btn:hover { background: var(--primary); color: #fff; }

/* ============================================
   MATCH CARDS
============================================ */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.match-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.match-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-green);
  transform: scaleX(0);
  transition: var(--transition);
}
.match-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.match-card:hover::before { transform: scaleX(1); }

.match-card .league-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.match-card .league-logo {
  width: 20px; height: 20px;
  object-fit: contain;
  border-radius: 50%;
}
.match-card .league-name {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.match-card .match-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}
.rtl .match-card .match-time { margin-left: 0; margin-right: auto; }

.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
}
.team-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--darker);
  padding: 4px;
  border: 2px solid var(--border-color);
}
.team-name-full {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.score-display {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-num-big {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  min-width: 28px;
  text-align: center;
}
.score-dash {
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
}
.match-status-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-live {
  background: rgba(255,68,68,0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255,68,68,0.3);
  animation: pulse-badge 1.5s infinite;
}
@keyframes pulse-badge {
  0%,100% { opacity:1; }
  50% { opacity:0.6; }
}
.badge-ft { background: rgba(100,100,100,0.15); color: var(--text-muted); border: 1px solid rgba(100,100,100,0.2); }
.badge-ns { background: rgba(74,144,226,0.15); color: var(--accent-blue); border: 1px solid rgba(74,144,226,0.3); }
.badge-ht { background: rgba(255,165,0,0.15); color: orange; border: 1px solid rgba(255,165,0,0.3); }

.match-card .match-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}
.match-card .venue {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.match-actions {
  display: flex;
  gap: 6px;
}
.btn-watch {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--gradient-green);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  transition: var(--transition);
}
.btn-watch:hover { opacity: 0.85; color: #fff; transform: scale(1.02); }
.btn-notify {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--card-bg);
  color: var(--text-muted);
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}
.btn-notify:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   LEAGUE TABLE
============================================ */
.league-table-wrap {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.league-table-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(0,200,83,0.08);
  border-bottom: 1px solid var(--card-border);
}
.league-table-header .league-logo-big {
  width: 32px; height: 32px;
  object-fit: contain;
}
.league-table-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
}
.table-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.rtl .table-tabs { margin-left: 0; margin-right: auto; }
.tab-btn {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  color: #fff;
}
.standings-table {
  width: 100%;
  border-collapse: collapse;
}
.standings-table th {
  padding: 8px 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--border-color);
}
.standings-table th:first-child { text-align: left; padding-left: 16px; }
.rtl .standings-table th:first-child { text-align: right; padding-left: 10px; padding-right: 16px; }
.standings-table td {
  padding: 9px 10px;
  font-size: 0.82rem;
  text-align: center;
  border-bottom: 1px solid rgba(45,55,72,0.5);
  transition: var(--transition);
}
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tbody tr:hover td { background: rgba(0,200,83,0.05); }
.standings-table td:first-child { text-align: left; padding-left: 16px; }
.rtl .standings-table td:first-child { text-align: right; padding-left: 10px; padding-right: 16px; }
.team-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-cell img { width: 22px; height: 22px; object-fit: contain; }
.team-cell .name { font-weight: 700; color: var(--text-primary); }
.pos-num {
  font-weight: 800;
  color: var(--text-muted);
  min-width: 20px;
  text-align: center;
}
.pos-ucl { color: var(--accent-blue); }
.pos-uel { color: var(--accent-orange); }
.pos-rel { color: var(--accent-red); }
.form-bubbles { display: flex; gap: 3px; justify-content: center; }
.form-w, .form-d, .form-l {
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-w { background: rgba(0,200,83,0.2); color: var(--primary); }
.form-d { background: rgba(255,215,0,0.2); color: var(--accent-yellow); }
.form-l { background: rgba(255,68,68,0.2); color: var(--accent-red); }
.pts-cell { font-weight: 900; color: var(--text-primary); font-size: 0.9rem; }
.zone-ucl { border-left: 3px solid var(--accent-blue); }
.zone-uel { border-left: 3px solid var(--accent-orange); }
.zone-rel { border-left: 3px solid var(--accent-red); }
.rtl .zone-ucl { border-left: none; border-right: 3px solid var(--accent-blue); }
.rtl .zone-uel { border-left: none; border-right: 3px solid var(--accent-orange); }
.rtl .zone-rel { border-left: none; border-right: 3px solid var(--accent-red); }

/* ============================================
   NEWS CARDS
============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.news-card .thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.news-card-body { padding: 14px; }
.news-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(0,200,83,0.15);
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.news-card h3 {
  font-size: 0.92rem;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card h3 a { color: var(--text-primary); }
.news-card h3 a:hover { color: var(--primary); }
.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.news-meta .dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

/* Featured News */
.news-featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.news-featured .main-story {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  min-height: 380px;
}
.news-featured .main-story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-featured .main-story:hover img { transform: scale(1.04); }
.news-featured .main-story .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.92));
  padding: 30px 20px 20px;
}
.news-featured .side-stories { display: flex; flex-direction: column; gap: 12px; }
.side-story {
  display: flex;
  gap: 12px;
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.side-story:hover { border-color: var(--primary); }
.side-story img { width: 90px; height: 75px; object-fit: cover; flex-shrink: 0; }
.side-story-body {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rtl .side-story-body { padding: 10px 0 10px 12px; }
.side-story-body h4 {
  font-size: 0.82rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   PLAYER CARD
============================================ */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.player-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.player-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.player-card .avatar-wrap {
  width: 70px; height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 3px solid var(--primary);
  background: var(--darker);
}
.player-card .avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.player-card .player-name { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.player-card .player-pos {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.player-card .player-rating {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--accent-yellow);
}
.player-stats-mini {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}
.stat-mini { text-align: center; }
.stat-mini .val { font-size: 0.9rem; font-weight: 800; color: var(--text-primary); }
.stat-mini .lbl { font-size: 0.62rem; color: var(--text-muted); text-transform: uppercase; }

/* ============================================
   PREDICTION WIDGET
============================================ */
.prediction-card {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.prediction-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.prediction-team {
  text-align: center;
  flex: 1;
}
.prediction-team img { width: 56px; height: 56px; margin: 0 auto 8px; object-fit: contain; }
.prediction-team .name { font-size: 0.85rem; font-weight: 700; }
.vs-badge {
  font-size: 1rem;
  font-weight: 900;
  color: var(--text-muted);
  padding: 0 16px;
}
.prediction-bars { margin-bottom: 14px; }
.pred-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.pred-bar-wrap {
  height: 8px;
  background: var(--darker);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.pred-bar-home {
  height: 100%;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
  transition: width 1s ease;
}
.pred-bar-draw {
  height: 100%;
  background: var(--accent-yellow);
}
.pred-bar-away {
  height: 100%;
  background: var(--accent-red);
  border-radius: 0 4px 4px 0;
}
.pred-percentages {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 6px;
}
.pct-home { color: var(--primary); }
.pct-draw { color: var(--accent-yellow); }
.pct-away { color: var(--accent-red); }

/* ============================================
   SIDEBAR
============================================ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.widget-title {
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 800;
  background: rgba(0,200,83,0.06);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.widget-body { padding: 14px; }
.widget-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(45,55,72,0.5);
  cursor: pointer;
  transition: var(--transition);
}
.widget-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.widget-list-item:hover { padding-left: 4px; }
.rtl .widget-list-item:hover { padding-left: 0; padding-right: 4px; }
.widget-list-item .num {
  min-width: 22px;
  height: 22px;
  background: var(--darker);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}
.widget-list-item .info { flex: 1; }
.widget-list-item .title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.widget-list-item .sub { font-size: 0.7rem; color: var(--text-muted); }

/* Fixture Widget */
.fixture-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(45,55,72,0.5);
  font-size: 0.78rem;
}
.fixture-item:last-child { border-bottom: none; }
.fixture-teams { flex: 1; text-align: center; }
.fixture-team { font-weight: 700; font-size: 0.75rem; }
.fixture-score { font-weight: 900; font-size: 0.85rem; padding: 2px 8px; background: var(--darker); border-radius: 4px; }
.fixture-time { font-size: 0.7rem; color: var(--accent-blue); font-weight: 700; min-width: 40px; text-align: center; }

/* ============================================
   TABS
============================================ */
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab-nav-item {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -2px;
  background: none;
}
.tab-nav-item.active, .tab-nav-item:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient-green);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,200,83,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,200,83,0.4); color: #fff; }
.btn-outline {
  background: none;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   BADGES & TAGS
============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
}
.badge-green { background: rgba(0,200,83,0.15); color: var(--primary); border: 1px solid rgba(0,200,83,0.3); }
.badge-red { background: rgba(255,68,68,0.15); color: var(--accent-red); border: 1px solid rgba(255,68,68,0.3); }
.badge-yellow { background: rgba(255,215,0,0.15); color: var(--accent-yellow); border: 1px solid rgba(255,215,0,0.3); }
.badge-blue { background: rgba(74,144,226,0.15); color: var(--accent-blue); border: 1px solid rgba(74,144,226,0.3); }

/* ============================================
   MATCH DETAIL PAGE
============================================ */
.match-hero {
  background: var(--gradient-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 24px;
  text-align: center;
}
.match-hero .league-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--darker);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.match-hero .teams-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 16px;
}
.match-hero .team-logo-big {
  width: 80px; height: 80px;
  object-fit: contain;
  background: var(--darker);
  border-radius: 50%;
  padding: 8px;
  border: 3px solid var(--border-color);
}
.match-hero .score-big {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -2px;
}
.match-hero .team-name-big { font-size: 1.1rem; font-weight: 800; margin-top: 8px; }
.match-hero .scorers { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.match-hero .meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.match-hero .meta-bar span { display: flex; align-items: center; gap: 5px; }

/* Match Stats Bar */
.stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.stat-row .stat-name { font-size: 0.78rem; color: var(--text-muted); min-width: 110px; text-align: center; }
.stat-row .bar-home, .stat-row .bar-away { height: 6px; border-radius: 3px; flex: 1; }
.stat-row .bar-home { background: var(--primary); margin-left: auto; }
.stat-row .bar-away { background: var(--accent-red); }
.stat-row .val-home, .stat-row .val-away {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 30px;
  text-align: center;
}

/* Commentary Timeline */
.timeline-event {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(45,55,72,0.4);
}
.timeline-min {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 36px;
  text-align: center;
  background: rgba(0,200,83,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  height: fit-content;
}
.timeline-icon { font-size: 1rem; }
.timeline-text { font-size: 0.82rem; flex: 1; }
.timeline-text strong { color: var(--text-primary); }

/* ============================================
   MAIN CONTENT + SIDEBAR LAYOUT
============================================ */
.content-area {
  padding: 24px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.rtl .content-grid { direction: rtl; }
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   HOMEPAGE SECTIONS
============================================ */
.home-section { margin-bottom: 32px; }

/* League Filter Bar */
.league-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.league-filter::-webkit-scrollbar { display: none; }
.league-filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.league-filter-btn img { width: 18px; height: 18px; object-fit: contain; border-radius: 50%; }
.league-filter-btn.active, .league-filter-btn:hover {
  background: rgba(0,200,83,0.12);
  border-color: var(--primary);
  color: var(--primary);
}
.league-filter-btn.all-btn.active { background: var(--gradient-green); color: #fff; border-color: transparent; }

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: var(--darker);
  border-top: 2px solid var(--border-color);
  padding: 48px 0 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 900;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: #fff; border-color: transparent; }

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.rtl .footer-col ul li a:hover { padding-left: 0; padding-right: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); margin: 0; }
.footer-bottom a { color: var(--primary); }

/* ============================================
   SEARCH PAGE
============================================ */
.search-hero {
  padding: 40px 0;
  text-align: center;
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}
.search-bar-big {
  display: flex;
  max-width: 600px;
  margin: 20px auto 0;
  background: var(--card-bg);
  border: 2px solid var(--primary);
  border-radius: 40px;
  overflow: hidden;
  padding: 4px;
}
.search-bar-big input {
  flex: 1;
  padding: 10px 20px;
  background: none;
  color: var(--text-primary);
  font-size: 1rem;
}
.search-bar-big button {
  background: var(--gradient-green);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   PAGINATION
============================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}
.page-num {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: pointer;
}
.page-num:hover, .page-num.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================================
   BREADCRUMB
============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--border-color); }
.breadcrumb .current { color: var(--primary); }

/* ============================================
   BACK TO TOP
============================================ */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px; height: 42px;
  background: var(--gradient-green);
  color: #fff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,200,83,0.4);
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { transform: translateY(-3px); }

/* ============================================
   LOADING SKELETON
============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, var(--card-border) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   UTILITY CLASSES
============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-green { color: var(--primary); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.text-blue { color: var(--accent-blue); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 900; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; } .align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.hidden { display: none; }
.no-select { user-select: none; }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .news-featured { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open { display: flex; }
  .nav-menu { flex-direction: column; width: 100%; gap: 2px; padding: 10px 0; }
  .nav-menu li a { width: 100%; justify-content: flex-start; }
  .menu-toggle { display: flex; }
  .header-search { display: none; }
  .matches-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: flex; }
  .col-8, .col-4, .col-6, .col-3 { grid-column: span 12; }
  .match-hero .score-big { font-size: 2.5rem; }
}
@media (max-width: 480px) {
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .score-card-mini { min-width: 180px; }
  h1 { font-size: 1.4rem; }
}
