/*
 * Component Utilities
 * Reusable utility classes for common patterns
 */

/* ========================================
   BOXED CONTAINERS
   ======================================== */
.boxed-narrow {
  max-width: 1196px;
  margin-left: auto;
  margin-right: auto;
}

.boxed-medium {
  --width: 1080px;
}

/* ========================================
   BACKGROUND GRADIENTS
   ======================================== */
.bg-gradient-blue {
  --bg: linear-gradient(180deg, #FFFFFF 25.48%, #A4D4FF 100%);
}

/* ========================================
   ROW GUTTER UTILITIES
   ======================================== */
.gutter-2rem {
  --bs-gutter-x: 2rem;
}

/* ========================================
   SECTION BACKGROUNDS - STATIC
   ======================================== */
.bg-learn-play {
  background-image: url('/img/thumb/photo-1920x950.jpg');
}

.bg-whats-new {
  background-image: url('/img/thumb/photo-1920x1280--1.jpg');
}

.bg-objective {
  background-image: url('/img/thumb/photo-1920x931.jpg');
}

/* ========================================
   NEWS CARD BACKGROUNDS
   ======================================== */
.bg-news-1 {
  background-image: url('/img/thumb/photo-800x600--1.webp');
}

.bg-news-2 {
  background-image: url('/img/thumb/photo-800x600--2.webp');
}

.bg-news-3 {
  background-image: url('/img/thumb/photo-800x600--3.webp');
}

/* ========================================
   ARTICLE CARD BACKGROUNDS  
   ======================================== */
.bg-article-large {
  background-image: url('/img/thumb/photo-1000xx750--1.jpg');
}

.bg-article-1 {
  background-image: url('/img/thumb/photo-535x400--1.jpg');
}

.bg-article-2 {
  background-image: url('/img/thumb/photo-535x400--2.jpg');
}

.bg-article-3 {
  background-image: url('/img/thumb/photo-535x400--3.jpg');
}

/* ========================================
   PAIRINGS TABLE (Tournament)
   ======================================== */
.pairings-section {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.pairings-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid #dee2e6;
}

.pairings-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 2px;
  color: #333;
}

.pairings-round-info {
  font-size: 1.05rem;
  color: #555;
  margin: 0;
}

.pairings-table {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.pairings-table thead tr {
  background-color: #c8d4e0;
}

.pairings-table thead th {
  color: #335;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-bottom: 2px solid #b0bec5;
  white-space: nowrap;
}

.pairings-table tbody tr:nth-child(even) {
  background-color: #f5f7fa;
}

.pairings-table tbody tr:nth-child(odd) {
  background-color: #fff;
}

.pairings-table tbody td {
  padding: 8px 12px;
  vertical-align: middle;
  color: #335;
  border-top: none;
  border-bottom: 1px solid #e8ecf0;
}

.pairings-result {
  font-weight: 600;
  white-space: nowrap;
}

.pairings-result.draw {
  color: #888;
}

.pairings-elo-chip {
  display: inline-block;
  background: #e8ecf0;
  color: #335;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  margin: 0 4px;
  vertical-align: middle;
}
