/* ============================================
   TOURNAMENT DETAIL PAGE - MODERN MINIMALIST
   ============================================ */

.page-section {
  background: var(--bg);
  min-height: 100vh;
  padding: 2rem 0;
}

.page-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   TWO-COLUMN LAYOUT
   ============================================ */

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.layout-primary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.layout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ============================================
   CONTENT BLOCKS
   ============================================ */

.content-block {
  background: var(--panel);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.sidebar-card {
  padding: 1.5rem;
}

/* Section Badge (top-right corner, aligned with title) */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  padding: 0.5rem 0.875rem;
  flex-shrink: 0;
}

.section-badge i {
  font-size: 0.875rem;
  color: white;
}

.section-badge span {
  font-size: 0.75rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Section Header (title + badge in same row) */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--borders);
}

/* Header content wrapper (title + description) */
.header-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0;
}

/* Section description (below title, inside header) */
.section-description {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* Sidebar card section header (no badge, smaller) */
.sidebar-card .section-header {
  padding-bottom: 0.875rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--borders);
}

.sidebar-card .section-title {
  font-size: 1.125rem;
}

/* Block Header (for calendar counter alignment) */
.block-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.block-header .section-header {
  flex: 1;
  margin-bottom: 1rem;
}

/* Sidebar block-header (for participants counter) */
.sidebar-card .block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--borders);
}

.sidebar-card .block-header .section-title {
  margin: 0;
}

.block-header i {
  font-size: 1rem;
  color: white;
  background: var(--accent);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.block-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0;
}

.block-subtitle {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.25rem 0 0 0;
}

.header-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
}

.header-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ============================================
   KEY DATES (SIDEBAR)
   ============================================ */

.dates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.date-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.date-item > i {
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.date-content {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  flex: 1;
}

.date-label {
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.date-value {
  font-size: 0.8125rem;
  color: var(--txt);
  font-weight: 500;
}

/* ============================================
   FORMATS GRID
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.interactive-card {
  background: var(--panel-2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.interactive-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.interactive-card .card-icon {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.interactive-card .card-icon i {
  font-size: 0.875rem;
  color: white;
}

.card-badge {
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
  background: var(--panel);
  padding: 0.25rem 0.625rem;
}

.interactive-card .card-body {
  flex: 1;
}

.interactive-card .card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 0.25rem 0;
}

.interactive-card .card-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
}

.link-text {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 500;
}

.card-footer i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* ============================================
   DATA LIST
   ============================================ */

.data-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.data-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.data-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.data-value {
  font-size: 0.75rem;
  color: var(--txt);
  font-weight: 600;
}

/* ============================================
   PRIZES
   ============================================ */

.stack-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.prize-card {
  background: var(--panel-2);
  padding: 1.5rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.prize-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.prize-rank {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rank-number {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}

.prize-info {
  flex: 1;
}

.prize-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 0.25rem 0;
}

.prize-count {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.prize-count i {
  color: var(--accent);
  font-size: 0.75rem;
}

/* ============================================
   DATA TABLE
   ============================================ */

.data-table {
  overflow-x: auto;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--panel);
}

.data-table th {
  padding: 0.75rem 0.875rem;
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.data-table td {
  padding: 0.875rem;
  font-size: 0.8125rem;
  color: var(--txt);
}

.table-cell-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.table-cell-icon i {
  color: var(--accent);
  font-size: 1rem;
}

.text-secondary {
  color: var(--muted);
}

.text-muted {
  color: var(--muted);
  font-style: italic;
}

.value-display {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.value-amount {
  font-size: 1rem;
  font-weight: 600;
  color: var(--txt);
}

.value-currency {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ============================================
   INFO BANNER
   ============================================ */

.info-banner {
  background: var(--panel);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-top: 1.25rem;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.03);
}

.banner-icon {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon i {
  font-size: 0.875rem;
  color: white;
}

.banner-content {
  flex: 1;
}

.banner-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0 0 0.25rem 0;
}

.banner-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   PARTICIPANTS
   ============================================ */

.count-badge {
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  min-width: 1.75rem;
  text-align: center;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item {
  background: var(--panel-2);
  padding: 0.75rem 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.list-item:hover {
  background: var(--hover);
}

.item-image {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel);
}

.item-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--txt);
  font-weight: 500;
}

.item-icon {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.empty-icon {
  width: 3rem;
  height: 3rem;
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon i {
  font-size: 1.5rem;
  color: var(--muted);
}

.empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--txt);
  margin: 0;
}

.empty-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================
   RULES BUTTONS
   ============================================ */

.rules-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.rule-button {
  background: var(--panel-2);
  padding: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: background 0.15s ease;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--txt);
}

.rule-button:hover {
  background: var(--hover);
}

.rule-icon {
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rule-icon i {
  font-size: 0.875rem;
  color: white;
}

.rule-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.rule-title {
  font-size: 0.875rem;
  color: var(--txt);
  font-weight: 500;
}

.rule-subtitle {
  font-size: 0.6875rem;
  color: var(--muted);
}

.rule-button > i {
  color: var(--muted);
  font-size: 0.75rem;
}

/* ============================================
   CALENDAR
   ============================================ */

.calendar-nav {
  background: var(--panel-2);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.nav-button {
  width: 2rem;
  height: 2rem;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  border: none;
  color: var(--txt);
}

.nav-button:hover {
  background: var(--hover);
}

.nav-button i {
  font-size: 0.75rem;
  color: var(--txt);
}

.nav-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}

.nav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--txt);
}

.nav-subtitle {
  font-size: 0.75rem;
  color: var(--muted);
}

.calendar-content {
  position: relative;
}

.calendar-day {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   MATCH CARDS
   ============================================ */

.match-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-card {
  background: var(--panel-2);
  padding: 1rem;
}

.match-card.state-live {
  background: var(--panel);
  box-shadow: 0 0 0 2px var(--accent);
}

.match-card.state-finished {
  opacity: 0.6;
}

.match-header {
  margin-bottom: 0.875rem;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.meta-item i {
  color: var(--accent);
  font-size: 0.75rem;
}

.match-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.team-logo {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--panel);
}

.team-name {
  flex: 1;
  font-size: 0.875rem;
  color: var(--txt);
  font-weight: 500;
}

.team-score {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--txt);
  min-width: 1.75rem;
  text-align: center;
}

.match-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0;
}

.match-divider span {
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 1px;
}

/* ============================================
   EDITOR CONTENT
   ============================================ */

.editor-content {
  color: var(--txt);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.editor-content p {
  margin: 0 0 1rem 0;
}

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  color: var(--txt);
  margin: 1.25rem 0 0.75rem 0;
  font-weight: 600;
}

.editor-content ul,
.editor-content ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.editor-content li {
  margin-bottom: 0.375rem;
}

.editor-content a {
  color: var(--accent);
  text-decoration: none;
}

.editor-content a:hover {
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }
  
  .layout-sidebar {
    order: -1;
  }
  
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 640px) {
  .page-container {
    padding: 0 1rem;
  }
  
  .content-block {
    padding: 1.5rem;
  }
  
  .sidebar-card {
    padding: 1.25rem;
  }
  
  .status-card {
    padding: 1.25rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .prize-card {
    padding: 1.25rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.625rem 0.5rem;
  }
}