/**
 * 메인 페이지 - 진행 중인 캠페인 목록 (링크인바이오 스타일)
 * lottewellfoodevent.store
 */
.campaign-list-page {
  min-height: 100vh;
  background-color: #F5F5F8;
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

.campaign-list-page *,
.campaign-list-page *::before,
.campaign-list-page *::after {
  box-sizing: border-box;
}

/* 헤더: 로고 + 타이틀 */
.campaign-list-header {
  padding: 48px 20px 24px;
  text-align: center;
}

.campaign-list-header .brand-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.campaign-list-header .brand-desc {
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #666;
}

/* 카드 그리드 */
.campaign-list-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

/* 리스트: 불릿 제거 */
.campaign-list-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.campaign-list-grid li {
  list-style: none;
}

/* 카드 한 장: 세로형 KV(상단 라운딩) + 하단 이벤트 설명 박스 */
.campaign-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-card:hover,
.campaign-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  color: inherit;
}

.campaign-card-inner {
  display: block;
}

/* 세로형 KV 이미지 영역: 상단 좌우만 라운딩, 이미지 여백 없이 꽉 참 */
.campaign-card-kv {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #f0f0f0;
}

.campaign-card-kv img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 종료된 이벤트: KV 위 검정 반투명 오버레이 + 텍스트 */
.campaign-card-kv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.campaign-card-ended-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  padding: 16px;
  z-index: 1;
  pointer-events: none;
}

/* 하단 이벤트 설명 박스 (관리자에서 설정한 색상 적용) */
.campaign-card-desc-wrap {
  padding: 16px 18px;
  text-align: center;
  background: var(--desc-bg, #fff);
  color: var(--desc-text, #1a1a1a);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: none;
  border-radius: 0 0 14px 14px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.campaign-card-desc {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
  line-height: 1.45;
}

/* 진행 중인 캠페인만: 마우스 오버 시 색상 변경 */
a.campaign-card:hover .campaign-card-desc-wrap,
a.campaign-card:focus .campaign-card-desc-wrap {
  background: var(--desc-bg-hover, #fff);
  color: var(--desc-text-hover, #E0381A);
}

/* 종료된 이벤트 카드용 배지가 설명 위에 올 때 */
.campaign-card-desc-wrap .campaign-card-ended-badge {
  display: block;
  width: 100%;
  margin-bottom: 4px;
}

/* 푸터 */
.campaign-list-footer {
  padding: 24px 20px 32px;
  text-align: center;
}

.campaign-list-footer .contact {
  font-size: 0.8125rem;
  color: #666;
  margin: 0;
}

.campaign-list-footer .contact strong {
  color: #1a1a1a;
}

.campaign-list-footer .contact a {
  color: #E0381A;
  text-decoration: none;
}

/* 섹션 제목 (진행 중 / 종료된 이벤트) */
.campaign-list-section-title {
  margin: 24px 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666;
}
.campaign-list-section-title:first-child {
  margin-top: 0;
}

/* 종료된 이벤트 카드: 링크 비활성화, 호버 효과 제거 */
.campaign-card--ended {
  cursor: default;
  pointer-events: none;
}
.campaign-card--ended:hover,
.campaign-card--ended:focus {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* 하단 박스 내 종료 배지(진행 중 카드에서 사용 시) */
.campaign-card-ended-badge {
  display: inline-block;
  margin-top: 0;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border-radius: 6px;
}

/* 캠페인 0개일 때 */
.campaign-list-empty {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .campaign-list-inner {
    max-width: 520px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .campaign-list-header {
    padding-top: 56px;
  }

  .campaign-list-header .brand-title {
    font-size: 1.375rem;
  }

  .campaign-card-desc-wrap {
    padding: 16px 20px;
  }

  .campaign-card-desc {
    font-size: 1rem;
  }
}
