/* ==========================================================================
   TJN Subpages Stylesheet (Tournaments Hub, Dedicated Recaps, JNC League, Rulebook)
   Extends index.css design tokens
   ========================================================================== */

/* ---------- Generic Page Layout ---------- */
.page-main {
  padding: 30px 0 80px 0;
  min-height: calc(100vh - 120px);
  position: relative;
  z-index: 1;
}

.page-hero {
  text-align: center;
  padding: 20px 0 40px;
  position: relative;
}

.page-hero .section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.page-hero .section-description {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.page-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Status Pills & Badges ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill i { font-size: 0.8rem; }

.st-upcoming {
  color: var(--color-clash-gold);
  background: rgba(255, 180, 14, 0.1);
  border-color: rgba(255, 180, 14, 0.4);
}
.st-registration {
  color: #3ddc84;
  background: rgba(61, 220, 132, 0.1);
  border-color: rgba(61, 220, 132, 0.45);
  animation: regPulse 2s ease-in-out infinite;
}
.st-ongoing {
  color: #ff5449;
  background: rgba(255, 84, 73, 0.12);
  border-color: rgba(255, 84, 73, 0.5);
  animation: ongoingPulse 1.6s ease-in-out infinite;
}
.st-completed {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

@keyframes regPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.25); }
  50% { box-shadow: 0 0 14px 2px rgba(61, 220, 132, 0.3); }
}
@keyframes ongoingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 73, 0.3); }
  50% { box-shadow: 0 0 14px 2px rgba(255, 84, 73, 0.35); }
}

/* ---------- Tournaments Hub Filter Bar ---------- */
.tournament-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: rgba(14, 17, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 8px 16px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 180, 14, 0.3);
}

.filter-tab.active {
  background: var(--color-clash-gold);
  color: #000;
  border-color: var(--color-clash-gold);
  box-shadow: 0 0 12px rgba(255, 180, 14, 0.3);
}

.tournament-count {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ---------- Row-Based Tournaments List ---------- */
.tournaments-list-section {
  padding-bottom: 60px;
}

.tournaments-row-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tournament-row-card {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: linear-gradient(180deg, rgba(21, 26, 41, 0.7) 0%, rgba(14, 17, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tournament-row-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 180, 14, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.tournament-row-card.is-active {
  border-left: 4px solid var(--color-clash-gold);
}

.tournament-row-card.is-completed {
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.row-media {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 240px;
}

.row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tournament-row-card:hover .row-media img {
  transform: scale(1.05);
}

.row-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(14, 17, 26, 0.9) 100%);
  pointer-events: none;
}

.row-league-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(6px);
}

.row-content {
  display: flex;
  flex-direction: column;
  padding: 24px 28px;
  gap: 14px;
  justify-content: center;
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.row-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.row-title {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.row-league-name {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-top: 2px;
}

.row-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.row-champion-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 180, 14, 0.08);
  border: 1px solid rgba(255, 180, 14, 0.25);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #fff;
}

.row-champion-highlight .trophy-icon {
  color: var(--color-clash-gold);
  font-size: 1.1rem;
}

.row-meta-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.meta-chip i { font-size: 0.75rem; color: var(--text-muted); }

.meta-chip.chip-gold {
  background: rgba(255, 180, 14, 0.1);
  border-color: rgba(255, 180, 14, 0.3);
  color: var(--color-clash-gold);
}
.meta-chip.chip-gold i { color: var(--color-clash-gold); }

.row-date {
  font-family: var(--font-accent);
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.row-date i { color: var(--color-clash-gold); }
.row-date strong { color: #fff; }

.row-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tournament-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(14, 17, 26, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.tournament-empty-state i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.tournament-empty-state h3 {
  font-family: var(--font-header);
  font-size: 1.2rem;
  margin-bottom: 6px;
}
.tournament-empty-state p { color: var(--text-muted); }

/* ---------- Dedicated Tournament Recap Pages ---------- */
.recap-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.breadcrumb-link {
  color: var(--color-clash-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--transition-fast);
}
.breadcrumb-link:hover { opacity: 0.8; }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-secondary); }

.recap-hero {
  text-align: center;
  padding: 10px 0 36px;
}

.recap-hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.recap-title {
  font-family: var(--font-header);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.recap-subtitle {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

/* Podium Grid */
.podium-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.podium-card {
  background: linear-gradient(180deg, rgba(21, 26, 41, 0.8) 0%, rgba(14, 17, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.podium-card.champion-card {
  border-color: rgba(255, 180, 14, 0.4);
  box-shadow: 0 0 35px rgba(255, 180, 14, 0.08);
  background: linear-gradient(180deg, rgba(40, 30, 15, 0.6) 0%, rgba(14, 17, 26, 0.98) 100%);
}

.podium-crown {
  position: absolute;
  top: -16px;
  right: 24px;
  font-size: 1.8rem;
  color: var(--color-clash-gold);
  filter: drop-shadow(0 0 10px rgba(255, 180, 14, 0.5));
}

.podium-rank {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-clash-gold);
  margin-bottom: 8px;
}

.podium-card.runnerup-card .podium-rank {
  color: #9ca3af;
}

.podium-team {
  font-family: var(--font-header);
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.podium-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.podium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  background: rgba(255, 180, 14, 0.15);
  border: 1px solid rgba(255, 180, 14, 0.35);
  color: var(--color-clash-gold);
}

.podium-badge.runner {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: #d1d5db;
}

/* Flags Showcase Card */
.flags-showcase-card {
  background: rgba(14, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 36px;
}

.flags-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.flags-title i { color: var(--color-clash-gold); }

.flags-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
}
.flag-icon { font-size: 1.2rem; }

/* Content Grid */
.recap-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.recap-media-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recap-image-card {
  background: rgba(14, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
}

.card-section-title {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-section-title i { color: var(--color-clash-gold); }

.recap-img-wrapper {
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.recap-img {
  width: 100%;
  height: auto;
  display: block;
}

.recap-info-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recap-card {
  background: rgba(14, 17, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 24px;
}

.recap-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.recap-text:last-child { margin-bottom: 0; }

.stats-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px;
  border-radius: 6px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-accent);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-clash-gold);
  display: block;
}

.stat-label {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.recap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recap-list li {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.recap-list li i {
  color: #3ddc84;
  margin-top: 4px;
  flex-shrink: 0;
}

.cta-card {
  background: linear-gradient(135deg, rgba(192, 20, 10, 0.15) 0%, rgba(255, 180, 14, 0.08) 100%);
  border-color: rgba(255, 180, 14, 0.3);
}

.cta-card h3 {
  font-family: var(--font-header);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

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

/* ==========================================================================
   Mobile-First Structured HTML Rulebook Styles
   ========================================================================== */
.rulebook-layout-container {
  max-width: 900px;
}

.rb-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(21, 26, 41, 0.8) 0%, rgba(14, 17, 26, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.rb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-clash-gold);
  background: rgba(255, 180, 14, 0.1);
  border: 1px solid rgba(255, 180, 14, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.rb-title {
  font-family: var(--font-header);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.rb-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.rb-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Search Bar */
.rb-search-bar-wrap {
  margin-bottom: 20px;
}

.rb-search-box {
  display: flex;
  align-items: center;
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 16px;
  gap: 12px;
  transition: border-color var(--transition-fast);
}

.rb-search-box:focus-within {
  border-color: var(--color-clash-gold);
  box-shadow: 0 0 16px rgba(255, 180, 14, 0.2);
}

.rb-search-box i {
  color: var(--text-muted);
  font-size: 1rem;
}

.rb-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 0;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.rb-search-box input:focus { outline: none; }

.rb-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
}
.rb-clear-btn.hidden { display: none; }

/* Navigation Chips */
.rb-nav-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.rb-chip {
  display: inline-block;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 14px;
  border-radius: 20px;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.rb-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 180, 14, 0.3);
}

.rb-chip.active {
  background: var(--color-clash-gold);
  color: #000;
  border-color: var(--color-clash-gold);
}

.rb-chip.highlight-chip {
  border-color: rgba(255, 180, 14, 0.35);
  color: var(--color-clash-gold);
}

.rb-chip.alert-chip {
  border-color: rgba(192, 20, 10, 0.4);
  color: #ff5449;
}

/* Sections */
.rb-content-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rb-section-card {
  background: rgba(14, 17, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 28px;
  scroll-margin-top: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rb-sec-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.rb-sec-num {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--color-clash-gold);
  display: block;
  margin-bottom: 4px;
}

.rb-sec-title {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 800;
}

.rb-subcard {
  margin-bottom: 24px;
}
.rb-subcard:last-child { margin-bottom: 0; }

.rb-subcard h3 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.rb-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.rb-bullet-list, .rb-numbered-list {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rb-bullet-list strong, .rb-numbered-list strong { color: #fff; }

/* Tables */
.rb-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin: 14px 0;
  background: #0d1017;
}

.rb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}

.rb-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 16px;
  font-family: var(--font-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.rb-table tr:last-child td { border-bottom: none; }
.rb-table td strong { color: #fff; }

.timed-attack-table td {
  font-family: var(--font-accent);
  font-size: 0.9rem;
}

.penalty-table td {
  vertical-align: middle;
}

.rb-order-badge {
  display: inline-block;
  background: rgba(255, 180, 14, 0.1);
  border: 1px solid rgba(255, 180, 14, 0.25);
  color: var(--color-clash-gold);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.rb-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rb-pill.st-compulsory {
  background: rgba(61, 220, 132, 0.15);
  color: #81c784;
  border: 1px solid rgba(61, 220, 132, 0.3);
}

.rb-pill.st-penalty {
  background: rgba(255, 180, 14, 0.15);
  color: #ffb74d;
  border: 1px solid rgba(255, 180, 14, 0.3);
}

.rb-pill.st-dq {
  background: rgba(192, 20, 10, 0.2);
  color: #ef9a9a;
  border: 1px solid rgba(192, 20, 10, 0.4);
}

/* Callouts */
.rb-callout {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 16px 0;
  align-items: flex-start;
}

.rb-callout i {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.callout-danger {
  background: rgba(192, 20, 10, 0.12);
  border: 1px solid rgba(192, 20, 10, 0.35);
  color: #fca5a5;
}
.callout-danger i { color: #ef4444; }

.callout-warning {
  background: rgba(255, 180, 14, 0.1);
  border: 1px solid rgba(255, 180, 14, 0.3);
  color: #fef08a;
}
.callout-warning i { color: var(--color-clash-gold); }

.callout-info {
  background: rgba(0, 56, 147, 0.15);
  border: 1px solid rgba(0, 56, 147, 0.4);
  color: #bfdbfe;
}
.callout-info i { color: #60a5fa; }

.rb-prizes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

@media (max-width: 600px) {
  .rb-prizes-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.rb-prize-box {
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rb-prize-box.champion {
  background: linear-gradient(135deg, rgba(255, 180, 14, 0.18) 0%, rgba(21, 26, 41, 0.95) 100%);
  border: 1px solid rgba(255, 180, 14, 0.4);
  box-shadow: 0 4px 20px rgba(255, 180, 14, 0.1);
}

.rb-prize-box.runner-up {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.15) 0%, rgba(21, 26, 41, 0.95) 100%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 4px 20px rgba(148, 163, 184, 0.06);
}

.rb-prize-val {
  font-family: var(--font-header);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-clash-gold);
}

.rb-prize-box.runner-up .rb-prize-val {
  color: #cbd5e1;
}

.rb-prize-lbl {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.rb-bottom-cta {
  background: rgba(14, 17, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  margin-top: 36px;
}

.rb-bottom-cta h3 {
  font-family: var(--font-header);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.rb-bottom-cta p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.rb-bottom-cta .cta-actions {
  justify-content: center;
}

/* ==========================================================================
   JNC League Showcase Section Styles
   ========================================================================== */
.season-showcase-section {
  margin: 10px 0 50px;
}

.season-showcase-card {
  display: grid;
  grid-template-columns: 380px 1fr;
  background: linear-gradient(180deg, rgba(21, 26, 41, 0.8) 0%, rgba(14, 17, 26, 0.98) 100%);
  border: 1px solid rgba(255, 180, 14, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 180, 14, 0.06);
}

.season-card-poster {
  position: relative;
  overflow: hidden;
  background: #000;
  min-height: 380px;
}

.season-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.season-showcase-card:hover .season-poster-img {
  transform: scale(1.04);
}

.season-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 65%, rgba(14, 17, 26, 0.95) 100%);
}

.season-edition-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid var(--color-clash-gold);
  color: var(--color-clash-gold);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.season-card-content {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.season-status-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.season-card-title {
  font-family: var(--font-header);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.2;
}

.season-card-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.season-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 6px 0;
}

.spec-cell {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 12px 8px;
  text-align: center;
}

.spec-val {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-clash-gold);
  display: block;
}

.spec-lbl {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.season-registration-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
}

.season-reg-date {
  font-family: var(--font-accent);
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.season-reg-date i { color: var(--color-clash-gold); }
.season-reg-date strong { color: #fff; }

.countdown-box {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.count-unit {
  flex: 1;
  background: #090c13;
  border: 1px solid rgba(255, 180, 14, 0.2);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
}

.count-num {
  font-family: var(--font-header);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-clash-gold);
  display: block;
  line-height: 1.1;
}

.count-lbl {
  font-family: var(--font-accent);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.season-actions-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Event Information & Schedule Panel */
.event-info-panel {
  background: rgba(8, 11, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.event-info-badge {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-clash-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ccn-live-link {
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 600;
  color: #70b0ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.ccn-live-link:hover {
  color: #fff;
  text-decoration: underline;
}

.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 16px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.info-lbl {
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-lbl i {
  color: var(--color-clash-gold);
  font-size: 0.75rem;
}

.info-val {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: right;
}

.highlight-txt {
  color: var(--color-clash-gold);
}

/* Features Grid */
.features-section {
  padding: 30px 0 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(14, 17, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 24px;
  transition: all var(--transition-fast);
}

.feature-card:hover {
  background: rgba(21, 26, 41, 0.9);
  border-color: rgba(255, 180, 14, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 180, 14, 0.1);
  border: 1px solid rgba(255, 180, 14, 0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-clash-gold);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-header);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- PDF Page Viewer Mode ---------- */
.rb-view-mode-toggle {
  display: flex;
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px;
  gap: 4px;
}

.view-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.view-mode-btn:hover {
  color: #fff;
}

.view-mode-btn.active {
  background: var(--color-clash-gold);
  color: #000;
}

.pdf-pages-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pdf-page-item {
  position: relative;
  width: 100%;
  max-width: 820px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  background: #11141d;
}

.pdf-page-item img {
  width: 100%;
  height: auto;
  display: block;
}

.pdf-page-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Responsive Styles for Tournaments Hub, JNC, Rulebook & Recaps
   ========================================================================== */

@media (max-width: 992px) {
  .tournament-row-card {
    grid-template-columns: 320px 1fr;
  }
  .row-content {
    padding: 20px 22px;
  }
  .podium-grid {
    grid-template-columns: 1fr;
  }
  .recap-content-grid {
    grid-template-columns: 1fr;
  }
  .rulebook-layout {
    grid-template-columns: 1fr;
  }
  .rb-sidebar-nav {
    position: static;
    top: auto;
    margin-bottom: 24px;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .tournament-row-card {
    grid-template-columns: 1fr;
  }
  .row-media {
    height: 220px;
    min-height: unset;
  }
  .row-media-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(14, 17, 26, 0.96) 100%);
  }
  .season-showcase-card {
    grid-template-columns: 1fr;
  }
  .season-card-poster {
    height: 240px;
    min-height: unset;
  }
  .season-poster-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(14, 17, 26, 0.98) 100%);
  }
  .season-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  /* Page Hero & Headers */
  .page-hero {
    padding: 24px 0 20px;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .section-description {
    font-size: 0.88rem;
    line-height: 1.6;
  }
  .page-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .page-hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Tournaments Hub Filter Bar */
  .tournament-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 20px;
  }
  .filter-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    width: 100%;
  }
  .filter-tab {
    padding: 8px 6px;
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
    gap: 4px;
    letter-spacing: 0;
  }
  .filter-tab i {
    font-size: 0.75rem;
  }
  .tournament-count {
    text-align: center;
    font-size: 0.75rem;
  }

  /* Tournament Row Cards on Mobile */
  .tournaments-row-container {
    gap: 18px;
  }
  .tournament-row-card {
    border-radius: 8px;
  }
  .row-media {
    height: 180px;
  }
  .row-content {
    padding: 16px 14px;
    gap: 12px;
  }
  .row-title-wrap {
    gap: 10px;
  }
  .row-logo {
    width: 36px;
    height: 36px;
  }
  .row-title {
    font-size: 1.15rem;
    line-height: 1.25;
  }
  .row-league-name {
    font-size: 0.68rem;
  }
  .row-desc {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .row-champion-highlight {
    font-size: 0.8rem;
    padding: 6px 10px;
    gap: 8px;
  }
  .row-meta-chips {
    gap: 6px;
  }
  .meta-chip {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
  .row-date {
    font-size: 0.76rem;
  }
  .row-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 2px;
  }
  .row-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  /* Season Showcase (JNC Page) on Mobile */
  .season-card-content {
    padding: 18px 14px;
    gap: 14px;
  }
  .season-card-title {
    font-size: 1.3rem;
  }
  .season-card-desc {
    font-size: 0.86rem;
    line-height: 1.55;
  }
  .season-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .spec-cell {
    padding: 10px 8px;
  }
  .spec-val {
    font-size: 1.15rem;
  }
  .spec-lbl {
    font-size: 0.65rem;
  }
  .season-actions-row {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .season-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Feature Grid on Mobile */
  .features-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .feature-card {
    padding: 18px 16px;
  }

  /* Rulebook Page on Mobile */
  .rb-header-title {
    font-size: 1.45rem;
  }
  .rb-header-desc {
    font-size: 0.85rem;
  }
  .rb-view-mode-toggle {
    width: 100%;
    display: flex;
  }
  .view-mode-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .rb-quick-chips {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .rb-chip {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .rb-section-card {
    padding: 18px 14px;
  }
  .rb-section-card h2 {
    font-size: 1.15rem;
  }
  .rb-table {
    font-size: 0.78rem;
  }
  .rb-table th, .rb-table td {
    padding: 8px 10px;
  }
  .pdf-pages-view {
    gap: 14px;
  }

  /* Tournament Recap Pages on Mobile */
  .recap-title {
    font-size: 1.85rem;
  }
  .recap-subtitle {
    font-size: 0.85rem;
  }
  .podium-card {
    padding: 18px 16px;
  }
  .podium-team {
    font-size: 1.35rem;
  }
  .flags-list {
    gap: 8px;
  }
  .flag-chip {
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .stats-matrix {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-box {
    padding: 10px 8px;
  }
  .stat-number {
    font-size: 1.3rem;
  }
}


