/* nominees.css */

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, #12E6B4 25%, #1F2F98 100%);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  color: #fff;
  padding-top: 80px;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 0%;
  }
}
.categories-carousel-track,
.categories-nominee-cards {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: hidden;
}

/* Header */
.main-header {
  background: rgba(255, 255, 255, 0.3);             /* 반투명 흰색 */
  backdrop-filter: blur(10px);                      /* 💡 핵심: blur 효과 */
  -webkit-backdrop-filter: blur(10px);              /* Safari 대응 */
  border-bottom: 1px solid rgba(255, 255, 255, 1);
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  height: 50px;
  margin-left: 110px; /* ← 추가 */
}

.main-nav ul {
  margin-right: 110px;
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

/* 마우스 호버 시 흰색으로 변경 */
.main-nav a:hover,
.main-nav a.active {
  color: white;
}

/* === Hero Section === */
.hero-section {
  text-align: center;
  padding: 3rem 1rem 0.5rem;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 7px 14px rgba(51, 51, 51, 0.2);
}

/* === Category Header === */
.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1220px;
  margin: 2.5rem auto;
  padding: 1rem;
}

.section-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.2rem;
  font-weight: 600;
  color: #111;
  text-shadow: 0 7px 14px rgba(51, 51, 51, 0.2);
  text-align: center;
}

.arrow-nav {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--dark);
  gap: 0.5rem;
  position: relative;
  top: -1.5rem; /* 🔹 화살표를 위로 이동 */
}

.arrow-nav:hover {
  color: #111; /* 폰트색 검정 */
  opacity: 0.8;
}

.arrow {
  font-size: 1.6rem;
}

.label {
  font-size: 1.2rem;
  font-weight: 600;;
}

/* === Subcategory Tabs === */
.tab-section {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0.5rem auto;
}

.tab {
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;                     /* ⬅️ 기본은 흰색 */
  border-bottom: 4px solid white;   /* ⬅️ 흰색 선 */
  padding-bottom: 8px;
  cursor: pointer;
  width: 250px;                     /* ⬅️ 고정 넓이로 정렬 */
  text-align: center;
}

.tab:hover {
  color: #111;
}

.tab.active {
  font-weight: 600;
  color: #111;                     /* ⬅️ 선택된 탭은 검정 */
  border-bottom: 4px solid #111;   /* ⬅️ 하단 검정 바 */
}

/* === Nominee Grid === */
.nominee-grid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(312px, 1fr)); /* 카드 수에 맞춰 열 개수 변경 */
  gap: 3rem 2rem;
  justify-items: center; /* 각 칸의 아이템 중앙 정렬 */
}

.nominee-grid .award-card {
  width: 312px; /* 카드 고정 너비 */
}

.nominee-grid .award-card {
  width: 312px; /* 카드 고정 너비 */
}

.award-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 315px;
  height: auto;
  gap: 1rem;
  background: transparent;
  text-align: center;
  color: var(--white);
}

.award-card img {
  width: 100%;
  height: 100%;
  max-width: 315px;
  max-height: 315px;
  min-width: 315px;
  min-height: 315px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  display: block;
  margin: 0 auto;
  border-radius: 26.77px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}


.award-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.award-card p {
  font-size: 1rem;
  font-family: var(--font-alt);
  color: var(--light);
  margin: 0;
}

.custom-nominee {
  background: white;
  color: #333;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 500px;
  margin: 2rem auto;
}

.btn-vote {
  display: inline-block;
  margin-top: 1rem;
  background: #FF8009;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
}

.thumbnail-wrapper {
  width: 315px;
  height: 315px;
  border-radius: 26.77px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0; /* JS에서 자동 덮어씀 */
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 26.77px;
  display: block;
}

.thumbnail-img.cover-fit,
.tall-image {
  object-fit: fill !important;
}

.custom-layout {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  background: transparent;
  color: #333;
  padding: 3rem 2rem;
  border-radius: 20px;
  max-width: 1100px;
  margin: 2rem auto;
  gap: 4.38rem;
}

.custom-left img {
  width: 312px;
  height: 411px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.6);
}

.custom-layout .custom-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 600px;
}

.custom-layout .custom-right h2 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: 0;
  color: #333;
  margin: 0;
  text-shadow: 0px 7px 14px rgba(0, 0, 0, 0.3);
}

.custom-layout .custom-right p {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 2rem;
  letter-spacing: 0;
  color: #fff;
  margin: 0.5rem 0;
}

/* === Chrome Help Accordion (tweaks) === */
.browser-help {
  max-width: 40rem;
  margin: 0 auto 1.5rem auto;    /* 중앙 정렬 */
  padding: 0 0.5rem;
  position: relative;
  z-index: 1;                     /* 화살표와 겹침 방지 */
}

.help-accordion {
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* 제목 영역: 더 큼 + 흰색 글자 + 중앙정렬 */
.help-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;        /* 중앙 정렬 */
  gap: .5rem;
  color: #fff;                    /* 제목은 흰색 유지 */
  background: rgba(0,0,0,0.25);   /* 대비 확보 */
  font-weight: 800;
  /* 기존보다 약 1.5배 크게 */
  font-size: clamp(1rem, 3vw, 1rem);
  position: relative;
}

/* 기본 마커(▶) 제거: 크로스브라우저 */
.help-accordion > summary::-webkit-details-marker { display: none; }
.help-accordion > summary::marker { content: ""; }

.help-title { text-align: center; }

.chevron {
  position: absolute;
  right: 1rem;
  transition: transform .25s ease;
}

.help-accordion[open] .chevron { transform: rotate(180deg); }

/* 본문: 검정 텍스트로 */
.help-content {
  padding: 1rem 1.25rem 1.25rem;
  color: #111;                    /* ← 검정계열 텍스트 */
  background: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.help-content a { color: #000; text-decoration: underline; }
.help-content p { margin: 0 0 .75rem 0; }

.help-content ol,
.help-content ul { margin: 0 0 0 1.25rem; padding: 0; }

.help-content li { margin: .5rem 0; }
.help-content em { font-style: normal; opacity: .9; }


/* Footer */
footer {
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 1);
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-content h1 {
    font-size: 42px;
    line-height: 54px;
  }
  .about-gallery img {
    width: 45%;
    height: auto;
  }
}

@media (max-width: 640px) {
  .about-gallery img {
    width: 100%;
  }

  .category-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; /* 1행: 타이틀, 2행: 좌/우 네비 */
    align-items: center;
    row-gap: .25rem;
  }

    /* 같은 줄(2행)에 고정 */
  #arrow-left  { grid-row: 2; grid-column: 1; }
  #arrow-right { grid-row: 2; grid-column: 2; }


  /* 타이틀: 그리드 1행 전체 차지 */
  .section-title {
    position: static;            /* absolute 해제 */
    transform: none;
    grid-column: 1 / -1;         /* 1행 전체 */
    text-align: center;
    font-size: clamp(1.2rem, 4.5vw, 1.6rem);
    margin-bottom: .25rem;
  }

    .main-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
    padding: 0;
  }

  .main-nav ul li:nth-child(1),
  .main-nav ul li:nth-child(3) {
    justify-self: center;
    padding-left: 4rem;
  }

  .main-nav ul li:nth-child(2),
  .main-nav ul li:nth-child(4) {
    justify-self: end;
    padding-left: 4rem;
  }

  /* 좌/우 네비: 2행 왼쪽/오른쪽 */
  .arrow-nav {
    position: static;
    justify-self: start;
    align-self: center;     /* 세로 중앙 */
    gap: .35rem;
    margin-top: 0;          /* 높이 보정 제거 */
  }

  .arrow-nav.right { justify-self: end; }

  /* 텍스트 숨김(모바일) */
  .arrow-nav .label { display: none; }

  .arrow-nav .arrow {
    display: block;
    line-height: 2rem;
    font-size: clamp(4rem, 6vw, 4rem);
  }

  .label  {
    font-size: clamp(4rem, 4vw, 4rem);
    max-width: 36vw;               /* 길면 말줄임 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .95;
  }

    /* 탭 바: 가로 스크롤 + 스냅, 자동 너비, 터치 친화적 패딩 */
  .tab-section {
    display: grid;                 /* 가로 스크롤 대신 2줄 그리드 */
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 1행 최대 3개 */
    gap: .5rem .5rem;
    margin: 1rem auto 1.25rem;
    padding: 0 1rem;
    overflow: visible;             /* 넘침 제거 */
  }
  .tab-section::-webkit-scrollbar { display: none; }

  .tab {
    background: #fff;
    color: #333;
    width: 100%;                   /* 그리드 셀 꽉 채움 */
    padding: .5rem .8rem;
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    border-width: 2px;             /* 모바일선 얇게 */
    border-radius: 999px;
    text-align: center;
  }

  .tab.active {
    background: #333;
    color: #fff;
    border-color: #333;
  }

  /* 섹션 타이틀도 살짝 축소해 겹침 예방(필요 시) */
  .section-title {
    font-size: clamp(1.1rem, 4.5vw, 1.6rem);
  }

  .main-header {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-left: 0;
  }

  .main-nav a {
    font-size: 1rem;
  }

  /* 더 작은 폰(≤480px): 2열로 줄여 가독성 유지 */
  @media (max-width: 480px) {
    .tab-section {
      grid-template-columns: repeat(2, minmax(0, 1fr)); /* 자동으로 3+2 → 2+2+1 */
    }
  }


/* 모바일 가독성 */
@media (max-width: 640px) {
  .browser-help { margin-bottom: 1rem; }
  .help-accordion > summary { padding: 1rem 1.1rem; }
  .help-content { padding: .9rem 1rem 1.1rem; }
}

}
