/* ══════════════════════════════════════════════════════════
   JustinGambles — Tournaments Hub Page
══════════════════════════════════════════════════════════ */

.tr-page{ min-height: 80vh; max-width: 1400px; margin: 0 auto; padding: 0 20px 60px; }

/* ── Hero — compact glass card (matches site-wide new style) ── */
.tr-hero{
  position: relative;
  border-radius: 20px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(196,135,71,.18);
  box-shadow: 0 20px 60px rgba(0,0,0,.40);
  margin: 22px 0 28px;
  overflow: hidden;
}
.tr-hero::before{
  content: '';
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(560px 220px at 20% 0%, rgba(196,135,71,.12), transparent 65%),
    radial-gradient(560px 220px at 80% 30%, rgba(243,208,138,.07), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}
.tr-hero__card{
  border-radius: 20px;
  background: transparent;
  padding: 26px 32px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.tr-hero__badge{
  position: relative;
  z-index: 1;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: linear-gradient(145deg,rgba(255,215,122,.16),rgba(196,135,71,.06));
  border: 1px solid rgba(196,135,71,.35);
  box-shadow: 0 6px 18px rgba(196,135,71,.18), inset 0 1px 0 rgba(255,255,255,.06);
}
.tr-hero__eyebrow{
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(196,135,71,.85);
  background: rgba(196,135,71,.08);
  border: 1px solid rgba(196,135,71,.22);
  border-radius: 999px;
  padding: 4px 14px;
}
.tr-hero__title{
  position: relative;
  z-index: 1;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -.3px;
  margin: 0;
  line-height: 1.15;
  color: rgba(233,238,247,.97);
  text-shadow: 0 2px 40px rgba(196,135,71,.12);
}
.tr-hero__gold{
  background: linear-gradient(135deg,#ffd77a,#e0a030 50%,#ffd77a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tr-hero__sub{
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(170,180,197,.75);
  line-height: 1.55;
  margin: 0;
  max-width: 520px;
}

/* Stats strip */
.tr-hero__stats{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(196,135,71,.18);
  border-radius: 14px;
  padding: 10px 18px;
}
.tr-hstat{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0 16px;
}
.tr-hstat__val{
  font-size: 19px;
  font-weight: 950;
  color: rgba(255,210,120,.97);
  line-height: 1;
  white-space: nowrap;
}
.tr-hstat__label{
  font-size: 10px;
  color: rgba(170,180,197,.50);
  text-transform: uppercase;
  letter-spacing: .8px;
  white-space: nowrap;
}
.tr-hstat__div{
  width: 1px;
  height: 26px;
  background: linear-gradient(180deg,transparent,rgba(196,135,71,.25),transparent);
  flex-shrink: 0;
}

/* ── Shell / sections ── */
.tr-shell{ display: flex; flex-direction: column; gap: 40px; }

.tr-section__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.tr-section-title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
  color: rgba(233,238,247,.95);
}
.tr-section-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  font-size: 14px;
  background: rgba(196,135,71,.10);
  border: 1px solid rgba(196,135,71,.25);
  color: var(--gold2, #e0a030);
}
.tr-section-link{
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(196,135,71,.85);
  text-decoration: none;
  white-space: nowrap;
}
.tr-section-link:hover{ color: var(--gold2, #e0a030); }

.tr-empty{
  padding: 28px 20px;
  text-align: center;
  font-size: 13.5px;
  color: rgba(170,180,197,.55);
  background: rgba(255,255,255,.02);
  border: 1px dashed rgba(255,255,255,.08);
  border-radius: 14px;
}

/* ── Tile grid ── */
.tr-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.tr-tile{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.tr-tile:hover{
  border-color: rgba(196,135,71,.30);
  background: rgba(255,255,255,.035);
  transform: translateY(-2px);
}

.tr-tile__head{ display: flex; }

.tr-status{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.tr-status::before{
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tr-status--running,
.tr-status--active{
  color: #4ee08a;
  background: rgba(78,224,138,.12);
}
.tr-status--lobby,
.tr-status--setup{
  color: #ffd77a;
  background: rgba(255,215,122,.12);
}
.tr-status--bracket{
  color: #7db8ff;
  background: rgba(125,184,255,.12);
}

.tr-tile__title{
  font-size: 15px;
  font-weight: 850;
  color: rgba(233,238,247,.95);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tr-tile__meta{
  font-size: 12px;
  color: rgba(170,180,197,.75);
}

.tr-tile__cta{
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: rgba(196,135,71,.9);
}
.tr-tile:hover .tr-tile__cta{ color: var(--gold2, #e0a030); }

/* ── Responsive ── */
@media (max-width: 767px){
  .tr-hero{ border-radius: 14px; }
  .tr-hero__card{ padding: 18px 16px; border-radius: 12px; }
  .tr-hero__title{ font-size: 19px; }
  .tr-hstat{ padding: 0 8px; }
  .tr-hstat__val{ font-size: 16px; }
  .tr-hstat__label{ font-size: 9px; letter-spacing: .5px; }
  .tr-hero__stats{ padding: 8px 8px; }
  .tr-grid{ grid-template-columns: 1fr; }
}
