/* /css/guild-battle.css - scoped to /guild-battle-ranking
   Shared page furniture (.container, .white-box, .page-title, .page-subtitle)
   comes from style.css; everything here is prefixed .gb- so it cannot leak. */

.gb-section {
  margin-top: 1.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
}

.gb-h2 {
  margin: 0 0 .25rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.gb-sub {
  margin: 0 0 1rem;
  opacity: .72;
  font-size: .92rem;
}

/* ---------- headline numbers ---------- */
.gb-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .75rem;
  margin-top: 1.25rem;
}

.gb-stat {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 10px;
  padding: .9rem .75rem;
  text-align: center;
}

.gb-stat-n {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
}

.gb-stat-l {
  display: block;
  margin-top: .2rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .7;
}

/* ---------- tables ---------- */
.gb-tablewrap {
  /* Wide tables scroll inside their own box rather than pushing the page. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
  min-width: 640px;
}

.gb-table thead th {
  text-align: left;
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .68;
  padding: .5rem .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  white-space: nowrap;
}

.gb-table tbody td {
  padding: .55rem .6rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  vertical-align: middle;
}

.gb-table tbody tr:hover {
  background: rgba(255, 255, 255, .035);
}

.gb-table .gb-n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gb-table .gb-rank {
  width: 3rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  opacity: .6;
}

.gb-strong { font-weight: 700; }
.gb-dim    { opacity: .62; }

/* Podium tint - subtle, and it never carries meaning on its own: the rank
   number is always there in text for anyone who cannot see the colour. */
.gb-table tbody tr.gb-top1 { background: rgba(255, 205, 90, .10); }
.gb-table tbody tr.gb-top2 { background: rgba(200, 210, 225, .07); }
.gb-table tbody tr.gb-top3 { background: rgba(205, 140, 90, .07); }
.gb-table tbody tr.gb-top1 .gb-rank,
.gb-table tbody tr.gb-top2 .gb-rank,
.gb-table tbody tr.gb-top3 .gb-rank { opacity: 1; font-weight: 700; }

/* ---------- empty state ---------- */
.gb-empty {
  margin-top: 1.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.gb-empty h2 {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
}

.gb-empty p {
  margin: .4rem auto;
  max-width: 62ch;
  opacity: .8;
}

/* ---------- misc ---------- */
.gb-list {
  margin: .5rem 0 1rem;
  padding-left: 1.1rem;
}

.gb-list li {
  margin: .4rem 0;
  line-height: 1.55;
}

.gb-scheduleline { margin: 1rem 0 0; }

.gb-btn {
  display: inline-block;
  padding: .5rem .95rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease;
}

.gb-btn:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .32);
}

@media (max-width: 640px) {
  .gb-stat-n { font-size: 1.35rem; }
  .gb-table  { font-size: .87rem; }
}
