/* =========================================================
   HOME.CSS — Riêng cho Trang chủ (index.html)
   ========================================================= */

/* ---------- KHỐI ĐẦU TRANG (HERO) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #071430 0%, #0a3d75 50%, #0096ff 100%);
  color: #cbd5e1;
  padding: 88px 0 120px;
}

/* Hoạ tiết sân pickleball mờ phía sau */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
  color: #e0f2fe;
  margin-bottom: 20px;
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.25);
}

.hero h1 {
  color: #fff;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 .hl {
  background: linear-gradient(90deg, #5eead4, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Thẻ "điểm trình" minh hoạ bên phải hero */
.hero-visual {
  position: relative;
}

.player-pass {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #e2e8f0;
}

.pass-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.pass-head .avatar { margin: 0; width: 56px; height: 56px; font-size: 20px; }
.pass-head b { color: #fff; font-size: 18px; display: block; }
.pass-head small { color: #94a3b8; }

.pass-level {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.pass-level strong {
  font-family: var(--font-display);
  font-size: 54px;
  color: #fff;
  line-height: 1;
}

.pass-level .badge { background: rgba(0, 200, 150, 0.2); color: #5eead4; }

.level-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 18px 0 8px;
}

.level-bar span {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
}

.level-bar span.on { background: linear-gradient(90deg, var(--accent), #5eead4); }

.level-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

.pass-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.pass-stats div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 12px;
}

.pass-stats b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
}

.floating-chip {
  position: absolute;
  background: #fff;
  color: var(--dark);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow-lift);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.floating-chip .icon-box { width: 34px; height: 34px; margin: 0; border-radius: 10px; }
.floating-chip .icon-box svg { width: 18px; height: 18px; }
.floating-chip small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.chip-a { top: -22px; right: -10px; }
.chip-b { bottom: -26px; left: -20px; }

@media (max-width: 900px) {
  .hero { padding: 64px 0 100px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
  .chip-a { right: 0; }
  .chip-b { left: 0; }
}

/* ---------- DẢI SỐ LIỆU ---------- */
.stats-strip {
  margin-top: -56px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border);
}

.stat {
  padding: 26px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child { border-right: 0; }

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  color: var(--dark);
}

.stat span { color: var(--muted); font-size: 14px; }

@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--border); }
}

/* ---------- BẢNG XẾP HẠNG + GIẢI THÍCH ĐIỂM TRÌNH ---------- */
.rank-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .rank-layout { grid-template-columns: 1fr; }
}

.levels-card h3 { font-size: 20px; }

.level-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.level-row:last-child { border-bottom: 0; }

.level-row .badge-level {
  min-width: 46px;
  justify-content: center;
  font-size: 14px;
}

.level-row small { display: block; color: var(--muted); font-size: 13px; }
.level-row b { color: var(--dark); font-size: 15px; }

/* ---------- TẢI APP ---------- */
.app-cta {
  background: linear-gradient(120deg, var(--dark) 0%, #0b3a6e 100%);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
  color: #cbd5e1;
  overflow: hidden;
  position: relative;
}

.app-cta h2 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); }
.app-cta ul { display: grid; gap: 10px; margin: 18px 0 26px; }
.app-cta li { display: flex; align-items: center; gap: 10px; }
.app-cta li svg { width: 20px; height: 20px; color: var(--accent); }

.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.2;
}

.store-btn:hover { background: #111827; border-color: rgba(255, 255, 255, 0.4); }
.store-btn b { display: block; font-size: 16px; }
.store-btn svg { width: 26px; height: 26px; }

.phone-mock {
  justify-self: center;
  width: 220px;
  height: 400px;
  border-radius: 36px;
  border: 8px solid #1e293b;
  background: linear-gradient(160deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  transform: rotate(6deg);
}

@media (max-width: 800px) {
  .app-cta { grid-template-columns: 1fr; padding: 32px 22px; }
  .phone-mock { display: none; }
}

/* ---------- KÊU GỌI THAM GIA ---------- */
.join-cta {
  text-align: center;
  padding: 72px 16px;
  background: radial-gradient(circle at 50% 0%, var(--primary-soft), transparent 60%);
}

.join-cta h2 { font-size: clamp(28px, 4vw, 42px); }
.join-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }
.join-cta .hero-actions { justify-content: center; }
