/* =========================================
   🏆 Tournament List Page Style
   (Harvard Debate unified design – 2025.11 FINAL)
========================================= */

/* 🏞 Hero Banner (공통 기본) */
.page-hero {
  width: 100%;
  height: 60vh;
  background: url('/img/main_banner.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

/* 🖼 Tournament 전용 실제 이미지 배너 */
.tournament-hero {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.tournament-hero .banner-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  background: #f8f8f8; /* 이미지 비율 여백 시 자연스러운 배경 */
}

/* ✅ 이미지 전체 보이기 + 중앙 정렬 */
.tournament-hero .banner-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 520px;         /* 🔸 영역 높이는 유지 */
  object-fit: contain;       /* ✅ 이미지 전체 보이기 */
  object-position: center;   /* ✅ 수직·수평 중앙 정렬 */
  border-radius: 0;
  position: relative;
  z-index: 1;
  background: #f8f8f8;
}


/* ✅ 헤더는 항상 최상단 */
.site-header {
  position: relative;
  z-index: 100;
}

/* =========================================
   📑 Section & Typography
========================================= */
main.container {
  max-width: 960px;
}
h1 {
  color: var(--burgundy);
  font-family: "Merriweather", serif;
  margin-bottom: 1.5rem;
}

/* =========================================
   🗂 Tabs
========================================= */
.nav-tabs {
  border-bottom: 2px solid var(--burgundy);
}
.nav-tabs .nav-link {
  color: var(--ink);
  font-weight: 600;
  border: none;
  border-radius: 0;
  padding: 0.75rem 1.25rem;
  transition: all 0.2s ease;
}
.nav-tabs .nav-link:hover {
  color: var(--burgundy);
  background: rgba(128,0,0,0.05);
}
.nav-tabs .nav-link.active {
  color: #fff;
  background: var(--burgundy);
  border: none;
}

/* =========================================
   📋 Tournament List Items
========================================= */
.list-group-item {
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 1.25rem 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  background: #fff;
}
.list-group-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.list-group-item h5 {
  color: var(--ink);
  font-family: "Merriweather", serif;
  font-weight: 700;
}
.list-group-item p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* 배지 스타일 */
.badge.bg-primary {
  background: #004aad !important;
}
.badge.bg-danger {
  background: var(--burgundy) !important;
}
.badge.bg-secondary {
  background: #777 !important;
}

/* =========================================
   🔘 Buttons
========================================= */
.btn-burgundy {
  background-color: var(--burgundy) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-burgundy:hover,
.btn-burgundy:focus {
  background-color: #5a0000 !important; /* 살짝 어두운 버건디 */
  border-color: #5a0000 !important;
  color: #fff !important;
}

.btn-burgundy:active,
.btn-burgundy.active {
  background-color: #480000 !important; /* 클릭 시 더 어두운 톤 */
  border-color: #480000 !important;
  color: #fff !important;
}

/* Bootstrap 우선순위 대응 (링크/버튼 모두 흰색 유지) */
a.btn-burgundy:hover,
button.btn-burgundy:hover {
  color: #fff !important;
}

/* =========================================
   📱 Responsive
========================================= */
@media (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  .nav-tabs .nav-link {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
  }
  .list-group-item {
    padding: 1rem;
  }
}
