/* ========================================
   Finale Event Page Styles
   ======================================== */

/* Fade-in Animation
   ======================================== */
@keyframes finaleFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* KV 로드 애니메이션 (페이지 진입 시) */
.finale-kv-text .finale-kv-logo {
  opacity: 0;
  animation: finaleFadeInUp 1s 0.3s ease forwards;
}

.finale-kv-text h1 {
  opacity: 0;
  animation: finaleFadeInUp 1s 0.5s ease forwards;
}

.finale-kv-text h2 {
  opacity: 0;
  animation: finaleFadeInUp 1s 0.7s ease forwards;
}

.finale-kv-text p {
  opacity: 0;
  animation: finaleFadeInUp 1s 0.9s ease forwards;
}

/* 스크롤 트리거 애니메이션 */
.finale-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.finale-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 딜레이 유틸리티 */
.finale-fade-in.delay-1 { transition-delay: 0.15s; }
.finale-fade-in.delay-2 { transition-delay: 0.3s; }
.finale-fade-in.delay-3 { transition-delay: 0.45s; }

/* Main Container
   ======================================== */
.finale-event-main {
  padding-top: var(--header-offset, 96px);
  background-color: #F7F0E6;
}

/* Section 1: Key Visual
   ======================================== */
.finale-kv {
  position: relative;
  width: 100%;
  height: 840px;
  overflow: hidden;
}

.finale-kv-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.finale-kv-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

.finale-kv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finale-kv-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 1400px;
  max-width: 90%;
  z-index: 2;
}

.finale-kv-text {
  width: 100%;
  color: #fff;
  text-align: center;
}

.finale-kv-logo {
  width: 265px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
}

.finale-kv-text h1 {
  font-family: "Cafe24Danjunghae", sans-serif;
  font-size: 54px;
  font-weight: 400;
  line-height: 1.1;
}

.finale-kv-text h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 28px;
}

.finale-kv-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 28px;
}

.finale-kv-text p br.mob {
  display: none;
}

.finale-kv-video {
  position: relative;
  width: 640px;
  flex-shrink: 0;
}

.finale-kv-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.finale-kv-fullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>') center/20px no-repeat;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.finale-kv-fullscreen:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.finale-kv-sound {
  position: absolute;
  right: 52px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>') center/20px no-repeat;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.finale-kv-sound:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.finale-kv-sound.is-muted {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>');
}

/* Tablet: 768px ~ 1400px */
@media (max-width: 1400px) and (min-width: 769px) {
  .finale-kv {
    height: auto;
    min-height: 700px;
  }

  .finale-kv-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .finale-kv-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .finale-kv-content {
    position: relative;
    flex-direction: column;
    gap: 40px;
    width: 90%;
    padding: 60px 0;
  }

  .finale-kv-text {
    width: 100%;
    max-width: 720px;
  }

  .finale-kv-text h1 {
    font-size: 48px;
  }

  .finale-kv-text h2 {
    font-size: 36px;
    margin-top: 24px;
  }

  .finale-kv-text p {
    font-size: 17px;
    margin-top: 24px;
  }

  .finale-kv-video {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .finale-event-main {
    padding-top: var(--header-offset, 60px);
  }

  .finale-kv {
    height: 652px;
  }

  .finale-kv-content {
    flex-direction: column;
    gap: 33px;
    width: 90%;
  }

  .finale-kv-logo {
    width: 136px;
  }

  .finale-kv-text {
    width: 100%;
  }

  .finale-kv-text h1 {
    font-size: 35px;
    font-weight: 400;
    line-height: 1.2;
  }

  .finale-kv-text h2 {
    font-size: 24px;
    line-height: 1.4;
    margin-top: 20px;
  }

  .finale-kv-text p {
    font-size: 16px;
    margin-top: 12px;
  }

  .finale-kv-text p br.mob {
    display: inline;
  }

  .finale-kv-video {
    width: 100%;
    max-width: 327px;
  }
}

/* Section 2: Events Slider
   ======================================== */
.finale-events {
  padding: 120px 0;
}

.finale-events-inner {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
  overflow: visible;
}

.finale-events-text {
  text-align: center;
}

.finale-events-text:last-child {
  margin-bottom: 0;
}

.finale-events-text h2 {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  margin-bottom: 30px;
}

.finale-events-text p {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #444;
}

.finale-events-text p + p {
  margin-top: 16px;
}

.finale-events-text br.mob {
  display: none;
}

.finale-events-text br.pc {
  display: inline;
}

.finale-swiper-wrap {
  position: relative;
  margin: 60px 0;
}

.finale-events-swiper {
  overflow: hidden;
}

.finale-events-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.finale-swiper-wrap .swiper-button-prev,
.finale-swiper-wrap .swiper-button-next {
  position: absolute;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -30px;
  cursor: pointer;
  z-index: 10;
}

.finale-swiper-wrap .swiper-button-prev::after,
.finale-swiper-wrap .swiper-button-next::after {
  display: none;
}

.finale-swiper-wrap .swiper-button-prev {
  background: url('/themes/ccw2/img/finale/left-btn.png') center/contain no-repeat;
  left: -32px;
}

.finale-swiper-wrap .swiper-button-next {
  background: url('/themes/ccw2/img/finale/right-btn.png') center/contain no-repeat;
  right: -32px;
}

.finale-events-swiper .swiper-pagination {
  display: none;
  position: static;
  margin-top: 20px;
}

.finale-events-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 1;
  margin: 0 4px;
}

.finale-events-swiper .swiper-pagination-bullet-active {
  width: 20px;
  background: #D50032;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .finale-events {
    padding: 60px 0;
  }

  .finale-events-text h2 {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
  }

  .finale-events-text p {
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
  }

  .finale-events-text br.mob {
    display: inline;
  }

  .finale-events-text br.pc {
    display: none;
  }

  .finale-swiper-wrap {
    margin: 30px 0;
  }

  .finale-events-swiper .swiper-pagination {
    margin-top: 30px;
  }

  .finale-swiper-wrap .swiper-button-prev,
  .finale-swiper-wrap .swiper-button-next {
    display: none;
  }

  .finale-events-swiper .swiper-pagination {
    display: block;
  }

  .finale-events-inner {
    max-width: 100%;
    padding: 0 24px;
  }

  .finale-swiper-wrap {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
  }

  .finale-events-swiper {
    overflow: hidden;
  }
}

/* Section 3: Menu
   ======================================== */
.finale-menu {
  padding-top: 120px;
  background-color: #FFFAF2;
}

.finale-menu-inner {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}

.finale-menu-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.finale-menu-title .text-red {
  color: #D50032;
}

.finale-menu-title br.mob {
  display: none;
}

.finale-chef-title {
  width: 370px;
  margin: 60px auto 0;
}

.finale-chef-title .chef-line {
  display: block;
  width: 100%;
}

.finale-chef-title .chef-line.mob {
  display: none;
}

.finale-chef-title .chef-text {
  padding: 9px 0 8px;
}

.finale-chef-title .chef-name {
  font-family: "Cafe24Danjunghae", sans-serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
  color: #D50032;
}

.finale-chef-title .chef-sub {
  font-family: "ArtoisIsabella-Serif", serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 1.3;
  color: #D50032;
}

.finale-menu-list {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.finale-menu-item {
  width: 100%;
  height: clamp(300px, 35vw, 500px);
  position: sticky;
  background-color: #FFFAF2;
}

.finale-menu-item:nth-child(1) { top: clamp(110px, calc(9.6vw - 24.5px), 160px); z-index: 1; }
.finale-menu-item:nth-child(2) { top: clamp(140px, calc(11.5vw - 21.5px), 200px); z-index: 2; background-color: #F7F0E6; }
.finale-menu-item:nth-child(3) { top: clamp(170px, calc(13.5vw - 18.5px), 240px); z-index: 3; background: linear-gradient(rgba(163, 150, 101, 0.08), rgba(163, 150, 101, 0.08)), #F7F0E6; }
.finale-menu-item:nth-child(4) { top: clamp(200px, calc(15.4vw - 15.5px), 280px); z-index: 4; background: linear-gradient(rgba(163, 150, 101, 0.2), rgba(163, 150, 101, 0.2)), #F7F0E6; }
.finale-menu-item:nth-child(5) { top: clamp(230px, calc(17.3vw - 12.5px), 320px); z-index: 5; background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), #DE0C3D; }
.finale-menu-item:nth-child(6) { top: clamp(260px, calc(19.2vw - 9px), 360px); z-index: 6; background-color: #FFFAF2; }

.finale-menu-item:nth-child(5) .menu-content {
  width: 100%;
  max-width: 100%;
}

.finale-menu-item:nth-child(5) .menu-title,
.finale-menu-item:nth-child(5) .menu-sub {
  color: #fff;
}

.finale-menu-item:nth-child(6) .menu-text.align-left {
  width: 460px;
  text-align: center;
}

.finale-menu-item .menu-content {
  position: relative;
  width: 1200px;
  max-width: 90%;
  height: 100%;
  margin: 0 auto;
}

.finale-menu-item .menu-bg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.finale-menu-item .menu-bg.mob {
  display: none;
}

.finale-menu-item .menu-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.finale-menu-item .menu-text.align-left {
  left: 0;
  text-align: left;
}

.finale-menu-item .menu-text.align-right {
  right: 0;
  text-align: right;
}

.finale-menu-item .menu-text.align-center {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.finale-menu-item .menu-title {
  font-family: "ArtoisIsabella-Serif", serif;
  font-size: clamp(40px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1;
  color: #D50032;
}

.finale-menu-item .menu-title sup {
  font-size: clamp(30px, 4vw, 60px);
  letter-spacing: -0.02em;
  vertical-align: top;
}

.finale-menu-item .menu-sub {
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 700;
  color: #444;
  margin-top: clamp(12px, 1.7vw, 24px);
  text-align: center;
}

.finale-menu-item .menu-sub .menu-divider {
  height: 14px;
  margin: 0 12px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .finale-menu {
    padding-top: 60px;
    background-color: #FFFAF2;
  }

  .finale-menu-title {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.04em;
  }

  .finale-menu-title br.mob {
    display: inline;
  }

  .finale-chef-title {
    width: 160px;
    margin-top: 30px;
  }

  .finale-chef-title .chef-name {
    font-size: 18.38px;
  }

  .finale-chef-title .chef-sub {
    font-size: 21px;
  }

  .finale-chef-title .chef-line.pc {
    display: none;
  }

  .finale-chef-title .chef-line.mob {
    display: block;
  }

  .finale-menu-item {
    position: static;
    height: auto;
  }

  .finale-menu-item .menu-content {
    max-width: 100%;
  }

  .finale-menu-item .menu-title {
    font-size: clamp(22px, 6vw, 32px);
    letter-spacing: -0.02em;
  }

  .finale-menu-item .menu-title sup {
    font-size: clamp(16px, 4.5vw, 22px);
  }

  .finale-menu-item .menu-sub {
    font-size: clamp(10px, 2.8vw, 14px);
    margin-top: clamp(6px, 2vw, 12px);
  }

  .finale-menu-item .menu-sub .menu-divider {
    margin: 0 clamp(4px, 1.2vw, 8px);
  }

  .finale-menu-item:nth-child(1) .menu-text {
    padding-left: clamp(24px, calc(25.7vw - 72px), 125px);
  }

  .finale-menu-item:nth-child(2) .menu-text {
    padding-right: clamp(24px, calc(25.7vw - 72px), 125px);
  }

  .finale-menu-item:nth-child(6) .menu-text.align-left {
    width: auto;
    padding-left: clamp(40.5px, calc(43.1vw - 121px), 210px);
  }

  .finale-menu-item .menu-bg.pc {
    display: none;
  }

  .finale-menu-item .menu-bg.mob {
    display: block;
  }
}

/* Section 4: Vertical Video
   ======================================== */
.finale-vertical-video {
  padding: 120px 0;
  background-color: #F7F0E6;
}

.finale-vertical-inner {
  width: 1200px;
  max-width: 90%;
  margin: 0 auto;
  text-align: center;
}

.finale-vertical-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
}

.finale-vertical-player {
  position: relative;
  display: inline-block;
  margin-top: 60px;
}

.finale-vertical-player video {
  width: 360px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.finale-vertical-sound {
  position: absolute;
  right: 52px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/></svg>') center/20px no-repeat;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.finale-vertical-sound:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.finale-vertical-sound.is-muted {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/></svg>');
}

.finale-vertical-fullscreen {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5) url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>') center/20px no-repeat;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.finale-vertical-fullscreen:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .finale-vertical-video {
    padding: 60px 0;
  }

  .finale-vertical-title {
    font-size: 24px;
  }

  .finale-vertical-player video {
    width: 327px;
  }
}

/* Back to List
   ======================================== */
.finale-back-to-list {
  position: absolute;
  top: 24px;
  left: calc(50% - 676px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 20px;
  font-family: "Artois", sans-serif;
  z-index: 10;
  transition: opacity 0.2s;
}

@media (max-width: 1400px) {
  .finale-back-to-list {
    left: 5%;
  }
}

.finale-back-to-list:hover {
  opacity: 0.7;
}

.finale-back-to-list img {
  width: 20px;
  height: auto;
}

.finale-back-to-list span {
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}

@media (max-width: 768px) {
  .finale-back-to-list {
    top: 16px;
    left: 16px;
    font-size: 14px;
  }

  .finale-back-to-list img {
    width: 14px;
  }
}
