/* الصفحة الرئيسية — تنسيق موحّد (يرتبط بإعدادات E1 عبر --site-gold / --site-green) */
:root {
  --bg: #05110b;
  --panel: #081a12;
  --panel-2: #0b2117;
  --gold: var(--site-gold, #d5b15a);
  --gold-soft: var(--site-gold-soft, #f0d58f);
  --text: #f3f4ef;
  --muted: #b6c1b8;
  --green: var(--site-green, #0d6c48);
  --line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.home-page {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(213, 177, 90, 0.11), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(13, 108, 72, 0.12), transparent 40%),
    linear-gradient(180deg, #030a07 0%, #06130d 28%, #041009 100%);
}

body.home-page a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1380px, calc(100% - 56px));
  margin: auto;
}

.page-shell {
  padding-top: 20px;
}

/* ─── Hero ─── */
.hero {
  padding: 0 0 22px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(213, 177, 90, 0.18);
  border-radius: 32px;
  background: #07160f;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(213, 177, 90, 0.06), transparent 42%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  position: relative;
  z-index: 2;
}

.hero-side {
  position: relative;
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(165deg, rgba(8, 26, 18, 0.98), rgba(5, 14, 10, 0.99));
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-soft);
}

.hero-title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.15;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-title .gold {
  color: var(--gold);
}

.hero-lead {
  margin: 16px 0 0;
  color: #d5ddd8;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  max-width: 34ch;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta a {
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta a:hover {
  transform: translateY(-2px);
}

.hero-cta .hero-primary {
  background: linear-gradient(180deg, #e2c16c, var(--gold));
  color: #14110a;
  border: 1px solid rgba(241, 214, 141, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-cta .hero-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-track-hint {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-track-hint a {
  color: var(--gold-soft);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-media {
  min-height: 320px;
  background:
    linear-gradient(90deg, rgba(5, 14, 10, 0.55), rgba(5, 14, 10, 0.08)),
    url("https://images.unsplash.com/photo-1517466787929-bc90951d0974?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(213, 177, 90, 0.14);
  border-top: 1px solid rgba(213, 177, 90, 0.12);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 12px;
  text-align: center;
  background: rgba(4, 14, 10, 0.92);
}

.hero-stat .s-ico {
  font-size: 20px;
  line-height: 1;
}

.hero-stat .v {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold-soft);
}

.hero-stat .l {
  font-size: 12px;
  color: #b8c4bc;
  font-weight: 700;
}

/* ─── أقسام سريعة ─── */
.section {
  padding: 18px 0;
}

.home-quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-quick-card {
  padding: 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(213, 177, 90, 0.16);
  background: rgba(8, 22, 15, 0.85);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(213, 177, 90, 0.35);
}

.home-quick-card b {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.home-quick-card span {
  display: block;
  color: #b5c0b8;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ─── بطاقات عامة ─── */
.grid-two {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 24px;
}

.card {
  background: linear-gradient(180deg, rgba(9, 28, 19, 0.94), rgba(5, 17, 11, 0.96));
  border: 1px solid rgba(51, 79, 62, 0.85);
  border-radius: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-card {
  padding: 28px 30px;
}

.about-card h3,
.title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3.2rem);
  font-weight: 900;
}

.about-card p {
  margin: 16px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.85;
  color: #d8ddd9;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 10px;
}

.feature .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(213, 177, 90, 0.08);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 26px;
  border: 1px solid rgba(213, 177, 90, 0.18);
  flex-shrink: 0;
}

.feature b {
  display: block;
  font-size: 1.15rem;
}

.feature span {
  display: block;
  color: #cad4cc;
  font-size: 0.95rem;
  line-height: 1.6;
}

.field-photo {
  min-height: 440px;
  overflow: hidden;
  position: relative;
}

.field-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18)),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1600&q=80")
      center / cover no-repeat;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 24px;
  margin-top: 24px;
}

.week-star {
  padding: 0;
  overflow: hidden;
  min-height: unset;
}

.week-star-card {
  background: radial-gradient(circle at top, rgba(213, 177, 90, 0.12), transparent 24%),
    linear-gradient(180deg, #06140e, #04110b 100%);
  border: 1px solid rgba(213, 177, 90, 0.16);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.week-star-cover {
  position: relative;
  padding: 18px 18px 0;
}

.week-star-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(213, 177, 90, 0.2), rgba(213, 177, 90, 0.04)),
    linear-gradient(135deg, #1b3123, #0a1610);
  border: 1px solid rgba(213, 177, 90, 0.2);
  display: grid;
  place-items: center;
  font-size: 82px;
}

.week-star-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.week-star-top-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.week-star-ovr {
  position: absolute;
  top: 14px;
  left: 14px;
  min-width: 74px;
  min-height: 82px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #08110b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.week-star-ovr small {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 900;
}

.week-star-content {
  padding: 18px 20px 22px;
  text-align: center;
}

.week-star-title {
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
}

.week-star-name {
  margin: 10px 0 6px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-word;
}

.week-star-sub {
  color: #d5ddd8;
  font-size: 18px;
  font-weight: 800;
}

.week-star-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}

.week-star-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.week-star-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.week-star-kpi .box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 10px;
  text-align: center;
}

.week-star-kpi .box .n {
  font-size: 28px;
  font-weight: 900;
}

.week-star-kpi .box .t {
  font-size: 13px;
  color: #cad4cc;
}

.week-star-btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--gold);
  color: #08110b;
  padding: 14px 26px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 18px;
}

.player-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.players-card,
.coaches-card {
  padding: 22px 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
}

.pill {
  background: var(--green);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 800;
}

.pill-live {
  background: linear-gradient(180deg, #138256, var(--green));
  color: #fff;
}

.players-grid,
.coaches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

#homeFeaturedPlayers {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: start;
}

#weekStarRoot {
  min-width: 0;
}

#homeFeaturedPlayers .player {
  min-width: 0;
}

#homeFeaturedPlayers .photo {
  height: 220px;
  font-size: 84px;
}

#homeFeaturedPlayers .meta {
  padding: 12px 12px 14px;
}

#homeFeaturedPlayers .meta b {
  font-size: 24px;
  line-height: 1.2;
}

#homeFeaturedPlayers .meta span {
  font-size: 17px;
}

#homeFeaturedPlayers .meta small {
  font-size: 15px;
}

#homeFeaturedPlayers .go {
  margin-top: 10px;
}

.player,
.coach {
  background: linear-gradient(180deg, #102117, #09130d);
  border: 1px solid rgba(213, 177, 90, 0.22);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.player:hover,
.coach:hover {
  transform: translateY(-3px);
  border-color: rgba(213, 177, 90, 0.38);
}

.player .photo,
.coach .photo {
  height: 270px;
  background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(135deg, #102518, #0a1610);
  display: grid;
  place-items: end center;
  padding-bottom: 4px;
  font-size: 108px;
  position: relative;
  overflow: hidden;
}

.coach .photo img,
.player .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player .meta,
.coach .meta {
  padding: 14px 14px 16px;
  text-align: center;
}

.player .meta b,
.coach .meta b {
  display: block;
  font-size: 29px;
  line-height: 1.2;
}

.player .meta span {
  display: block;
  color: #6cd29b;
  font-size: 18px;
  margin-top: 4px;
}

.coach .meta span {
  display: block;
  color: #75d6a1;
  font-size: 17px;
  margin-top: 4px;
}

.player .meta small,
.coach .meta small {
  display: block;
  color: #cad4cc;
  font-size: 16px;
}

.player .go,
.coach .go {
  margin: 12px auto 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
}

.coach-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(213, 177, 90, 0.16);
  border: 1px solid rgba(213, 177, 90, 0.35);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
}

.coach-snippet {
  margin-top: 10px;
  color: #d8e0db;
  font-size: 14px;
  line-height: 1.75;
  min-height: 48px;
}

.store-section {
  margin-top: 24px;
  padding: 24px;
}

.store-showcase {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: stretch;
}

.store-lead {
  border: 1px solid rgba(213, 177, 90, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(213, 177, 90, 0.08), rgba(255, 255, 255, 0.03));
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.store-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-soft);
  margin-bottom: 14px;
}

.store-lead p {
  margin: 0;
  color: #d0d7d2;
  line-height: 1.9;
  font-size: 15px;
}

.store-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.store-link,
.store-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
}

.store-link {
  background: var(--gold);
  color: #08110b;
}

.store-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.store-card {
  border: 1px solid rgba(213, 177, 90, 0.18);
  border-radius: 22px;
  overflow: hidden;
  background: #0a1811;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.14);
}

.store-card .pimg {
  height: 170px;
  background: linear-gradient(135deg, #102518, #08130b);
  display: grid;
  place-items: center;
  font-size: 74px;
  position: relative;
  overflow: hidden;
}

.store-card .pimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.store-card .pmeta {
  padding: 14px 14px 18px;
  text-align: center;
}

.store-card b {
  display: block;
  font-size: 22px;
}

.store-card .meta-line {
  display: block;
  color: #cad4cc;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 7px;
  min-height: 48px;
}

.store-card span.price {
  display: block;
  color: var(--gold);
  font-weight: 900;
  font-size: 18px;
  margin-top: 10px;
}

.store-card .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-weight: 800;
  font-size: 14px;
}

.empty-box {
  padding: 26px 20px;
  border: 1px dashed rgba(213, 177, 90, 0.25);
  border-radius: 18px;
  color: #cad4cc;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(213, 177, 90, 0.12);
  border: 1px solid rgba(213, 177, 90, 0.28);
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.demo-banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(213, 177, 90, 0.28);
  background: rgba(213, 177, 90, 0.06);
  color: #cad4cc;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.9;
  text-align: center;
}

.demo-banner strong {
  color: var(--gold-soft);
}

.demo-section .match-card,
.demo-section .scorers-card,
.demo-section .videos-card {
  opacity: 0.94;
}

.home-coming-soon {
  padding: 28px 24px;
}

.home-coming-soon h3 {
  margin: 0 0 10px;
  font-size: 34px;
}

.home-coming-soon p {
  margin: 0 0 20px;
  color: #cad4cc;
  line-height: 1.9;
  font-size: 16px;
}

.home-soon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.home-soon-item {
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px dashed rgba(213, 177, 90, 0.22);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.home-soon-item b {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.home-soon-item span {
  display: block;
  color: #b8c4bc;
  font-size: 14px;
  line-height: 1.7;
}

.store-section.demo-preview {
  opacity: 0.95;
}

@media (max-width: 1200px) {
  .hero-grid,
  .grid-two,
  .row,
  .store-showcase,
  .home-quick-links,
  .home-soon-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 160px;
    order: 1;
  }

  .players-grid,
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #homeFeaturedPlayers {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding-top: 12px;
  }

  .hero-shell {
    border-radius: 22px;
  }

  .hero-side {
    padding: 28px 22px;
  }

  .hero-cta a {
    width: 100%;
    min-width: 0;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr;
  }

  .features,
  .players-grid,
  .coaches-grid,
  #homeFeaturedPlayers,
  .store-grid,
  .home-soon-grid,
  .home-quick-links {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(1380px, calc(100% - 30px));
  }
}
