/* home.css */

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--b1);
  background: var(--s1);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,229,160,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-grid::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 8% 50%, rgba(0,229,160,0.065) 0%, transparent 58%),
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(77,159,255,0.04) 0%, transparent 50%);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: center;
  padding: 48px 0 44px;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px; margin-bottom: 16px;
  background: var(--redd); border: 1px solid rgba(255,64,96,.2);
  border-radius: 20px; font-size: 11px; font-weight: 700;
  color: var(--red); letter-spacing: .3px;
}
.hero-h1 {
  font-family: var(--fd);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -1.5px; color: var(--t1);
  margin-bottom: 14px;
}
.hero-h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--g), #4dffd2);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: 15px; color: var(--t2);
  line-height: 1.6; margin-bottom: 24px;
  max-width: 400px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-cta .btn { font-size: 13px; padding: 9px 18px; }

/* Live Box */
.hero-live-box {
  background: var(--bg);
  border: 1px solid var(--b1);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,229,160,.05), 0 20px 60px rgba(0,0,0,.4);
}
.hlb-header {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-bottom: 1px solid var(--b1);
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--red);
  background: rgba(255,64,96,.04);
}
.hlb-loading {
  padding: 32px; text-align: center;
  color: var(--t3); font-size: 13px;
}
.hlb-row {
  display: grid; grid-template-columns: 1fr 56px 24px;
  align-items: center; gap: 8px;
  padding: 9px 14px; border-bottom: 1px solid var(--b1);
  cursor: pointer; transition: background var(--t);
  text-decoration: none; color: var(--t1);
}
.hlb-row:last-child { border-bottom: none; }
.hlb-row:hover { background: var(--s2); }
.hlb-teams { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hlb-team {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
}
.hlb-team img { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
.hlb-score {
  font-family: var(--fd); font-size: 18px;
  font-weight: 800; text-align: center;
}
.hlb-min {
  font-size: 10px; color: var(--red);
  font-weight: 800; animation: blink 1.3s infinite;
  text-align: right;
}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
.home-section { padding: 28px 0 0; }
.sec-hd {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 14px;
}
.sec-ttl {
  font-family: var(--fd); font-size: 15px;
  font-weight: 800; color: var(--t1);
}
.sec-link {
  font-size: 12px; font-weight: 600;
  color: var(--t2); transition: color var(--t);
}
.sec-link:hover { color: var(--g); }

/* ══════════════════════════════
   MATCHES TOOLBAR
══════════════════════════════ */
.matches-toolbar {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}

/* Tabs live/aujourd'hui/demain */
.mtabs {
  display: flex; gap: 3px;
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r); padding: 3px; flex-shrink: 0;
}
.mtab {
  padding: 6px 13px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
  color: var(--t2); transition: var(--t); white-space: nowrap;
}
.mtab:hover { color: var(--t1); }
.mtab.on { background: var(--s3); color: var(--g); }

/* Filtre ligues (scrollable) */
.lg-filter {
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; flex: 1;
  scrollbar-width: none; padding: 2px 0;
}
.lg-filter::-webkit-scrollbar { display: none; }
.lgf-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 20px; flex-shrink: 0;
  font-size: 12px; font-weight: 600; color: var(--t2);
  background: var(--s1); border: 1px solid var(--b1);
  cursor: pointer; transition: var(--t); white-space: nowrap;
}
.lgf-btn img { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; }
.lgf-btn:hover { color: var(--t1); border-color: var(--b2); }
.lgf-btn.on { color: var(--g); border-color: var(--g); background: var(--gd); }

/* ══════════════════════════════
   MATCH ITEMS
══════════════════════════════ */
.home-match-group { margin-bottom: 10px; border-radius: var(--rl); overflow: hidden; border: 1px solid var(--b1); }
.home-match-league {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; background: var(--s2);
  font-size: 11px; font-weight: 700; color: var(--t2);
  text-transform: uppercase; letter-spacing: .5px;
  border-bottom: 1px solid var(--b1);
}
.home-match-league img { width: 16px; height: 16px; object-fit: contain; border-radius: 2px; }
.home-match-league .lg-count {
  margin-left: auto; font-size: 10px; color: var(--t3);
  background: var(--s3); padding: 1px 6px; border-radius: 8px;
}

.home-match-item {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: center; gap: 10px;
  padding: 11px 14px; background: var(--s1);
  border-bottom: 1px solid var(--b1);
  cursor: pointer; transition: background var(--t);
  text-decoration: none; color: var(--t1);
}
.home-match-item:last-child { border-bottom: none; }
.home-match-item:hover { background: rgba(255,255,255,.025); }

.hmi-time { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.hmi-time-lbl { font-size: 12px; font-weight: 700; }
.hmi-time-lbl.live { color: var(--red); }
.hmi-time-lbl.ft   { color: var(--t3); font-size: 10px; }
.hmi-min { font-size: 10px; font-weight: 800; color: var(--red); animation: blink 1.3s infinite; }

.hmi-teams { display: flex; flex-direction: column; gap: 5px; }
.hmi-team  {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--t2);
}
.hmi-team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.hmi-team.win { font-weight: 700; color: var(--t1); }
.hmi-team.dim { color: var(--t3); }

.hmi-scores { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.hmi-score {
  font-family: var(--fd); font-size: 17px;
  font-weight: 800; min-width: 18px; text-align: right;
}

/* ══════════════════════════════
   TOP SCORERS
══════════════════════════════ */
.scorer-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid var(--b1);
  transition: background var(--t);
}
.scorer-row:last-child { border-bottom: none; }
.scorer-row:hover { background: rgba(255,255,255,.025); }
.scorer-rank {
  font-family: var(--fd); font-size: 14px; font-weight: 800;
  color: var(--t3); width: 22px; text-align: center; flex-shrink: 0;
}
.scorer-rank.g { color: #ffd700; }
.scorer-rank.s { color: #c0c0c0; }
.scorer-rank.b { color: #cd7f32; }
.scorer-photo {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: cover; border: 1.5px solid var(--b2);
  background: var(--s3); flex-shrink: 0;
}
.scorer-info { flex: 1; min-width: 0; }
.scorer-name {
  font-size: 13px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scorer-club { font-size: 11px; color: var(--t3); margin-top: 2px; }
.scorer-goals { font-family: var(--fd); font-size: 22px; font-weight: 800; color: var(--g); }
.scorer-lbl   { font-size: 9px; color: var(--t3); text-transform: uppercase; text-align: center; }

/* ══════════════════════════════
   NEWS
══════════════════════════════ */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.news-skel { height: 200px; border-radius: var(--rl); }
.news-card {
  display: flex; flex-direction: column;
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--rl); overflow: hidden;
  text-decoration: none; color: var(--t1);
  transition: border-color var(--t), transform var(--t);
}
.news-card:hover { border-color: rgba(0,229,160,.3); transform: translateY(-2px); }
.news-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--s3); }
.news-card-body { padding: 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.news-card-title {
  font-size: 13px; font-weight: 700; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-meta { font-size: 10px; color: var(--t3); margin-top: auto; display: flex; gap: 8px; }
.news-card-meta span { color: var(--g); font-weight: 700; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; gap: 20px; padding: 32px 0 28px; }
  .hero-live-box { display: none; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .hero-layout { padding: 24px 0 20px; }
  .hero-h1 { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { display: none; }
  .matches-toolbar { gap: 8px; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .home-section { padding: 20px 0 0; }
}
@media (max-width: 500px) {
  .hero-h1 { font-size: 30px; }
  .hero-cta .btn { font-size: 12px; padding: 8px 13px; }
  .news-grid { grid-template-columns: 1fr; }
  .lg-filter { max-width: calc(100vw - 28px); }
}

/* ══ TWO COL ══ */
.home-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media(max-width:768px) { .home-two-col { grid-template-columns: 1fr; } }

/* ══ MINI STANDING ══ */
.mini-stand-row {
  display: grid;
  grid-template-columns: 28px 1fr 32px 32px 32px 40px;
  align-items: center; gap: 6px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--b1);
  font-size: 13px; transition: background var(--t);
}
.mini-stand-row:last-child { border-bottom: none; }
.mini-stand-row:hover { background: rgba(255,255,255,.025); }
.mini-stand-rk { font-weight: 700; color: var(--t3); text-align: center; font-size: 12px; }
.mini-stand-team { display: flex; align-items: center; gap: 7px; font-weight: 600; overflow: hidden; }
.mini-stand-team img { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.mini-stand-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-stand-num { text-align: center; font-size: 12px; color: var(--t2); }
.mini-stand-pts { text-align: center; font-family: var(--fd); font-size: 14px; font-weight: 800; color: var(--t1); }
.zone-top { border-left: 3px solid var(--g); }
.zone-mid { border-left: 3px solid #f97316; }
.zone-bot { border-left: 3px solid var(--red); }
