/* details.css - Premium Glassmorphism Theme (Immersive Dark) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --ocean-900: #050a0e;  /* HYPER main background color */
  --ocean-700: #08121a;
  --ocean-500: #1a4a6b;
  --accent: #ff2828;     /* Fast track red */
  --accent-blue: #0078ff; /* Basic tour blue */
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.15);
}

body {
  background-color: var(--ocean-900);
  background-image: none; /* Removed radial gradient to match HYPER solid dark */
  color: var(--white);
  font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Common Detail Container */
.detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Detail Header Navigation */
.detail-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  background: rgba(4, 16, 24, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--glass-border);
}
.detail-nav-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}
.theme-red .detail-nav-title { color: var(--accent); }
.detail-nav-close {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}
.detail-nav-close:hover { color: var(--white); }

/* Hero Section */
.detail-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}
/* 추가: 히어로 배경 이미지와 오버레이 */
.detail-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,10,14,0.3) 0%, rgba(5,10,14,0.9) 100%);
  z-index: 1;
}
.detail-hero-content {
  text-align: center;
  width: 100%;
  max-width: 600px;
  z-index: 2;
  padding: 0 24px;
}
.hero-title-word {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -2px;
  margin-bottom: 40px;
  text-transform: uppercase;
}
.theme-red .hero-title-word {
  text-shadow: 0 0 40px rgba(255, 40, 40, 0.8), 0 0 80px rgba(255, 40, 40, 0.4);
}
.theme-blue .hero-title-word {
  text-shadow: 0 0 40px rgba(0, 120, 255, 0.8), 0 0 80px rgba(0, 120, 255, 0.4);
}

.hyper-btn-detail {
  display: inline-block;
  padding: 14px 40px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #050a0e;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transition: all 0.3s;
}
.hyper-btn-detail:hover {
  background: transparent;
  color: #fff;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
  transform: scale(1.05);
}
.theme-blue .hyper-btn-detail {
  background: #ffb26b;
  border-color: #ffb26b;
  box-shadow: 0 0 20px rgba(255, 178, 107, 0.4);
}
.theme-blue .hyper-btn-detail:hover {
  background: transparent;
  color: #ffb26b;
  box-shadow: 0 0 40px rgba(255, 178, 107, 0.8);
}

  width: 70px;
  height: 70px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px;
}
.thumb-item:hover, .thumb-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}
.theme-red .thumb-item.active { border-color: var(--accent); }
.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3));
}

/* Learn Section (Grid) */
.learn-section {
  padding: 100px 0;
  text-align: center;
}
.learn-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 60px;
  text-transform: uppercase;
}
.learn-title span { font-weight: 300; opacity: 0.8; }
.theme-red .learn-title { color: var(--accent); }
.theme-red .learn-title span { color: var(--white); }

.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.learn-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: 320px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learn-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.1);
}
.learn-card-img {
  flex: 1;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.hyper-img-placeholder {
  width: 100%;
  height: 100%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.2);
}
.learn-card-text {
  flex: 1;
  padding: 40px;
  text-align: left;
}
.learn-card-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  color: var(--white);
}

/* Carousel Section */
.carousel-section {
  padding: 120px 0;
  text-align: center;
  background: rgba(0,0,0,0.2);
}
.carousel-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 60px;
}
.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.4;
  transform: scale(0.85);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.carousel-item.active {
  opacity: 1;
  transform: scale(1.1);
}
.carousel-item img {
  width: 280px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}
.carousel-item h4 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.carousel-item a {
  color: #12d8fa;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-bottom: 2px solid  justify-content: center;
  align-items: center;
}
.theme-red .carousel-item a p { color: var(--accent); }
.theme-blue .carousel-item a p { color: var(--accent-blue); }

/* ── 새로 추가: 2단 레이아웃 (메인 컨텐츠 + 오른쪽 고정 예약 탭) ── */
.detail-content-wrap {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  align-items: flex-start; /* sticky 작동을 위해 필수 */
}
.detail-main {
  flex: 1;
  min-width: 0;
}
.detail-sidebar {
  width: 320px;
  position: sticky;
  top: 100px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.detail-sidebar-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--white);
}
.detail-sidebar .hyper-btn-detail {
  width: 100%;
  padding: 16px 0;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .detail-content-wrap {
    flex-direction: column;
  }
  .detail-sidebar {
    width: 100%;
    position: static;
  }
}

/* ── 새로 추가: 세로형 카드 (이미지 위, 텍스트 아래) ── */
.learn-grid-vertical {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
@media (max-width: 600px) {
  .learn-grid-vertical {
    grid-template-columns: 1fr;
  }
}
.learn-card-vertical {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.learn-card-vertical:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  background: rgba(255, 255, 255, 0.1);
}
.learn-card-vertical-img {
  height: 200px;
  padding: 16px;
}
.learn-card-vertical-text {
  padding: 24px;
  text-align: center;
}
.learn-card-vertical-text h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  color: var(--white);
}

/* ── 새로 추가: 진행과정 타임라인 (.-.-.-.) ── */
.timeline-wrap {
  position: relative;
  margin-bottom: 60px;
  padding-left: 20px;
}
.timeline-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 27px; /* 점의 중앙 */
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 40px;
  display: flex;
  align-items: stretch;
  gap: 20px;
}
.timeline-dot {
  position: absolute;
  left: 1px;
  top: 24px; /* 카드와 정렬되도록 조정 */
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  z-index: 2;
}
.theme-red .timeline-dot { background: var(--accent); box-shadow: 0 0 10px rgba(255, 40, 40, 0.8); }
.theme-blue .timeline-dot { background: var(--accent-blue); box-shadow: 0 0 10px rgba(0, 120, 255, 0.8); }

.timeline-content {
  flex: 1;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}
@media (max-width: 600px) {
  .timeline-content {
    flex-direction: column;
    text-align: center;
  }
}
.timeline-img {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}
.timeline-text {
  flex: 1;
}
.timeline-text h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--white);
}
.timeline-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}
.carousel-item a:hover { border-bottom-color: currentColor; }

/* Buttons */
.bottom-cta {
  margin-top: 100px;
  text-align: center;
  padding-bottom: 60px;
}
.bottom-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.btn-buy {
  background: linear-gradient(135deg, #1fa2ff 0%, #12d8fa 100%);
  color: #fff;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  display: inline-block;
  box-shadow: 0 10px 20px rgba(18, 216, 250, 0.3);
  transition: all 0.3s;
}
.theme-red .btn-buy {
  background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
  box-shadow: 0 10px 20px rgba(255, 71, 87, 0.3);
}
.btn-buy:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255,255,255,0.2); }

/* Responsive */
@media (max-width: 768px) {
  .hero-thumbnails { display: none; }
  .learn-grid { grid-template-columns: 1fr; }
  .carousel-wrapper { flex-direction: column; gap: 40px; }
  .carousel-item { transform: scale(1); opacity: 1; }
  .learn-card { flex-direction: column; height: auto; text-align: center; }
  .learn-card-text { text-align: center; }
}
