/* index.css - Home/dashboard specific styles (lean, theme-friendly) */

.index-hero {
  background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(124,58,237,.08));
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 16px;
  padding: 28px 22px;
  margin: 18px auto 24px;
  text-align: center;
  max-width: 980px;
}
.index-hero .title {
  font: 800 2rem/1.1 'Orbitron', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #60a5fa, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.index-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}
.index-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.index-card .card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
}
.index-card .card-title i { color: #60a5fa; }
.index-card .badge-pill {
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: .75rem;
}
.badge-live { background: #ef4444; color: #fff; }
.badge-off { background: #6b7280; color: #fff; }
.badge-neutral { background: rgba(255,255,255,.12); color: #cbd5e1; }

.index-twitch .ratio { border-radius: 10px; overflow: hidden; }
.index-card.narrow { max-width: 660px; margin-left: auto; margin-right: auto; padding: 14px; }
.index-card.compact .card-title { font-size: 1rem; }
.index-card.compact .meta { font-size: .82rem; }
.index-card.compact .match-item { padding: 10px; }
.index-card.compact .team-logo { width: 24px; height: 24px; }
.index-card.compact .team-name { font-size: .95rem; }
.index-card.compact .vs { padding: 2px 8px; font-size: .75rem; }
.index-card.compact .badge-pill { padding: 3px 8px; font-size: .7rem; }
.index-twitch.narrow .ratio { max-width: 640px; margin: 0 auto; }

/* Tighter column gutter and inner-edge alignment */
.tight-cols { --bs-gutter-x: .5rem; }
.col-left .index-card.narrow { margin-left: auto; margin-right: 0; }
.col-right .index-card.narrow { margin-left: 0; margin-right: auto; }
@media (max-width: 991px) {
  .col-left .index-card.narrow,
  .col-right .index-card.narrow { margin-left: auto; margin-right: auto; }
}

/* Centered shelf to keep equal outer margins */
.middle-wrap { max-width: 860px; margin: 0 auto; }
.index-twitch .offline {
  height: 0; padding-bottom: 56.25%; position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
}
.index-twitch .offline > .center {
  position: absolute; inset: 0; display: grid; place-items: center;
  gap: 10px;
}

.match-list .match-item {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  transition: transform .2s ease, background .2s ease;
}
.match-list .match-item:hover { transform: translateY(-2px); background: rgba(59,130,246,.08); }
.match-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-logo { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.team-name { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.vs { background: linear-gradient(135deg,#60a5fa,#7c3aed); color: #fff; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.meta { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: .9rem; }
.status { font-weight: 700; }
.status-live { color: #ef4444; }
.status-live .live-dot {
  font-size: 0.6rem;
  animation: pulse 2s infinite;
}
.status-scheduled, .status-pending { color: #60a5fa; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tournament-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tournament-item {
  padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1); transition: transform .2s ease, background .2s ease;
}
.tournament-item:hover { transform: translateY(-2px); background: rgba(124,58,237,.08); }
.tournament-name { color: #fff; font-weight: 700; margin: 0 0 6px 0; }
.tournament-info { display: flex; align-items: center; justify-content: space-between; color: #94a3b8; font-size: .9rem; }
.type-badge { border-radius: 10px; padding: 2px 8px; font-size: .7rem; font-weight: 700; }
.type-5v5 { background: linear-gradient(135deg,#10b981,#059669); color: #fff; }
.type-2v2 { background: linear-gradient(135deg,#8b5cf6,#7c3aed); color: #fff; }
.type-1v1 { background: linear-gradient(135deg,#f97316,#ea580c); color: #fff; }

.profile-card { text-align: center; padding: 18px; }
.avatar {
  width: 110px; height: 110px; border-radius: 50%; object-fit: cover;
  border: 4px solid rgba(59,130,246,.35); margin-bottom: 12px;
}
.profile-name { font-size: 1.25rem; font-weight: 800; margin: 0; }
.admin-tag { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 10px; font-size: .75rem; font-weight: 700; background: linear-gradient(135deg,#fda085,#f6d365); color: #111827; }
.team-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 10px; }
.team-card { padding: 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; gap: 10px; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 980px; margin: 18px auto 0; }
.stat { text-align: center; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(59,130,246,.10), rgba(124,58,237,.10)); border: 1px solid rgba(59,130,246,.25); }
.stat .num { font: 900 1.6rem/1 Inter, system-ui; background: linear-gradient(135deg,#60a5fa,#7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: #94a3b8; font-weight: 600; font-size: .9rem; }

/* Button enhancements (scoped to index) */
.index-card .btn, .index-hero .btn {
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.index-card .btn:hover, .index-hero .btn:hover { transform: translateY(-1px); }
.btn-pill { border-radius: 999px !important; }
.btn-gradient {
  color: #fff !important;
  background: linear-gradient(135deg, #60a5fa, #7c3aed);
  border: 1px solid rgba(99,102,241,.5);
  box-shadow: 0 6px 18px rgba(99,102,241,.25);
}
.btn-gradient:hover { box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.index-card .btn-outline-primary {
  color: #93c5fd;
  border-color: rgba(99,102,241,.5);
  background: rgba(59,130,246,.06);
}
.index-card .btn-outline-primary:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(96,165,250,.35), rgba(124,58,237,.35));
  border-color: rgba(99,102,241,.7);
}

/* Remove underline on links around cards/titles */
a.text-decoration-none, a.text-decoration-none:hover { text-decoration: none !important; }
.match-list a, .match-list a:hover { text-decoration: none; color: inherit; }
.team-list a, .team-list a:hover { text-decoration: none; color: inherit; }

@media (max-width: 991px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
  .team-name { max-width: 140px; }
}
@media (max-width: 576px) {
  .index-hero { padding: 18px 14px; border-radius: 12px; }
  .index-hero .title { font-size: 1.5rem; }
  .stats-row { grid-template-columns: 1fr; }
}
