/* =========================================
   📸 Harvard Debate Gallery – 2025 Unified Style
========================================= */

/* 🏞 Hero Banner */
.page-hero {
  width: 100%;
  height: 45vh;
  background: url('/uploads/banners/hcdu-korea-2025.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}
.page-hero h1 {
  position: relative;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  z-index: 2;
  text-align: center;
}

/* ================================
   🧭 Tournament Tabs (Harvard Style)
================================ */

/* 컨테이너 정렬 */
.nav-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* 모든 탭 기본 스타일 */
.nav-pills .nav-link {
  display: inline-block;
  border-radius: 30px;
  margin: 6px;
  padding: 8px 18px;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
  background: #fff;
  font-weight: 600;
  text-decoration: none !important;
  transition: all .25s ease;
}

/* 비활성 hover */
.nav-pills .nav-link:hover {
  background: rgba(128,0,0,0.08);
  color: var(--burgundy);
  transform: translateY(-1px);
}

/* 활성 탭 */
.nav-pills .nav-link.active {
  background: var(--burgundy) !important;
  color: #fff !important;
  border-color: var(--burgundy) !important;
  box-shadow: 0 3px 6px rgba(128,0,0,0.25);
  transform: translateY(-1px);
}

/* 비활성 탭 강제 리셋 (파란색 링크 제거) */
.nav-pills .nav-link:not(.active) {
  color: var(--burgundy) !important;
  border-color: var(--burgundy);
  background-color: #fff;
}


/* 📅 Day Heading */
.day-heading {
  display: inline-block;
  background: #f9f9f9;
  padding: 6px 16px;
  border-left: 5px solid var(--burgundy);
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 50px;
  margin-bottom: 24px;
  border-radius: 4px;
}

/* 🖼️ Gallery Images */
[id^="gallery-day"] {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
[id^="gallery-day"] .col-md-3 {
  transition: transform .25s ease, box-shadow .25s ease;
}
[id^="gallery-day"] .col-md-3:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
[id^="gallery-day"] img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* 🧾 Captions */
p.small.text-muted {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 0;
  text-align: center;
  color: #555;
}

/* 🌐 Responsive */
@media (max-width: 768px) {
  .page-hero { height: 30vh; }
  .page-hero h1 { font-size: 1.6rem; }
  .day-heading { font-size: 1.1rem; }
  .nav-pills .nav-link {
    font-size: 0.9rem;
    padding: 6px 14px;
  }
}

/* ==========================
   🖼️ Empty State (No Photos)
========================== */
.gallery-empty {
  text-align: center;
  padding: 80px 20px;
  color: #777;
  background: #fafafa;
  border-radius: 12px;
  border: 1px dashed #ccc;
  font-size: 1.1rem;
  font-weight: 500;
}
.gallery-empty::before {
  content: "📷";
  display: block;
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.4;
}
