/* ===== DASHBOARD PAGE — Tip Offs v2 ===== */

/* ── Hero ─────────────────────────────────────────────────────── */
.dash-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
}
.dash-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 32px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.dash-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.dash-hero-info {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.25);
  overflow: hidden;
}
.dash-greeting {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 4px;
}
.dash-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.dash-hero-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ── Body ─────────────────────────────────────────────────────── */
.dash-body {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}

/* ── Stat cards row ───────────────────────────────────────────── */
.dash-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stat-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.dash-stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.dash-stat-icon { font-size: 24px; line-height: 1; }
.dash-stat-num  { font-size: 28px; font-weight: 900; color: var(--primary); line-height: 1; }
.dash-stat-lbl  { font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Main + Sidebar grid ──────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}
.dash-sidebar {
  position: sticky;
  top: 76px;
}

/* ── Sections ─────────────────────────────────────────────────── */
.dash-section {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

/* ── Countdown ─────────────────────────────────────────────────── */
.countdown-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: #fff;
  margin-top: 16px;
}
.countdown-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); margin-bottom: 8px; }
.countdown-timer { font-size: 2.5rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 1px; }

/* ── My Competitions rows ─────────────────────────────────────── */
.dash-comp-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.1s;
  border-radius: 4px;
}
.dash-comp-row:last-child { border-bottom: none; }
.dash-comp-row:hover { background: #f7f9ff; }

.dash-comp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.dash-comp-info { flex: 1; min-width: 0; }
.dash-comp-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-comp-meta { font-size: 12px; color: var(--text3); }
.dash-comp-arrow { font-size: 16px; color: var(--text3); flex-shrink: 0; }

/* ── Recent Tips ──────────────────────────────────────────────── */
.dash-tip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.dash-tip-row:last-child { border-bottom: none; }
.dash-tip-match { flex: 1; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-tip-pick  { font-weight: 700; color: var(--primary); flex-shrink: 0; }
.tip-outcome {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.tip-outcome.correct   { background: #dcfce7; color: #16a34a; }
.tip-outcome.incorrect { background: #fef2f2; color: #dc2626; }
.tip-outcome.pending   { background: var(--bg); color: var(--text3); }

/* ── Empty states ─────────────────────────────────────────────── */
.dash-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--text2);
}
.dash-empty-icon { font-size: 36px; margin-bottom: 10px; }
.dash-empty p    { font-size: 14px; margin: 0 0 16px; }

/* ── Quick links ──────────────────────────────────────────────── */
.dash-quick-links { display: grid; }
.dash-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.dash-quick-link:last-child { border-bottom: none; }
.dash-quick-link:hover { background: #f7f9ff; }
.dash-quick-link-icon { font-size: 16px; flex-shrink: 0; }
.dash-quick-link-arrow { margin-left: auto; color: var(--text3); font-size: 14px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .dash-stat-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
}

@media (max-width: 640px) {
  .dash-hero { padding: 24px 16px 36px; }
  .dash-hero-inner { flex-direction: column; align-items: flex-start; }
  .dash-hero-actions { width: 100%; }
  .dash-stat-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .dash-body { padding: 16px 16px 40px; }
  .dash-section { padding: 16px; }
}
