/* ================================================
   LANDING PAGE - Entry Section Styles
   랜딩 페이지 Step1 진입점 전용 스타일

   NOTE: styles.css와 충돌 방지를 위해 .landing- 접두사 사용
   ================================================ */

/* ================================================
   LANDING HERO + ENTRY 통합 섹션
   헤드라인 + 업로드 UI (위아래 배치)
   ================================================ */

.landing-hero-entry-section {
  width: 100%;
  padding: 50px 0 60px;
  /* Nav와 동일하게 투명 (메인 그라데이션 배경 사용) */
  background: transparent;
}

.hero-text-area {
  text-align: center;
  margin-bottom: 40px;
}

.showcase-headline {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Hero-style headline: larger and more prominent */
.showcase-headline.showcase-headline--hero {
  font-size: 44px;
  margin-bottom: 16px;
}

/* Subheadline under the main headline */
.showcase-subheadline {
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.7;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .landing-hero-entry-section {
    padding: 30px 0 40px;
  }

  .hero-text-area {
    margin-bottom: 30px;
  }

  .showcase-headline,
  .showcase-headline.showcase-headline--hero {
    font-size: 28px;
  }

  .showcase-subheadline {
    font-size: 15px;
  }
}

.showcase-headline .highlight {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.transformation-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.transform-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 240px;
}

.transform-step-image {
  width: 80%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-bg-gradient);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.transform-step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.transform-step-image .placeholder-text {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 20px;
}

.transform-step-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.transform-arrow {
  font-size: 32px;
  color: var(--purple);
  flex-shrink: 0;
  opacity: 0.7;
}

/* Responsive Transformation Steps */
@media (max-width: 768px) {
  .transformation-showcase-section {
    padding: 60px 0;
  }

  .transformation-showcase-section.hero-style {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .showcase-headline {
    font-size: 32px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .showcase-headline.showcase-headline--hero {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .showcase-subheadline {
    font-size: 16px;
    margin-bottom: 40px;
    padding: 0 20px;
  }

  .transformation-steps {
    flex-direction: column;
    gap: 16px;
  }

  .transform-step {
    max-width: 200px;
  }

  .transform-arrow {
    transform: rotate(90deg);
    font-size: 24px;
  }
}

/* ================================================
   LANDING ENTRY SECTION (Section wrapper only)
   Step 1 스타일은 step1.css로 분리됨
   ================================================ */

.landing-entry-section {
  width: 100%;
  padding: 60px 0 80px;
  /* Entry: 따뜻한 크림색 */
  background: #FFF8DB;
}

/* Responsive Entry Section */
@media (max-width: 768px) {
  .landing-entry-section {
    padding: 60px 0 80px;
  }

  .landing-entry-section .section-title {
    font-size: 28px;
  }

  .landing-entry-section .section-subtitle {
    font-size: 16px;
    padding: 0 20px;
  }
}

/* ================================================
   LANDING PREVIEW SECTION (업로드 후)
   upload-section 숨기고 preview-section만 가운데 표시
   ================================================ */

/* Landing 전용: step-main-content 레이아웃 */
.step1-landing-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* Landing 전용: upload-section 가운데 정렬 + 페이드 아웃 */
.step1-landing-wrapper .upload-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* upload-image-wrapper 가운데 정렬 */
.step1-landing-wrapper .upload-image-wrapper {
  margin: 0 auto;
}

/* Landing 전용: sample-character border-radius 제거 */
.step1-landing-wrapper .sample-character {
  border-radius: 0;
}

/* Landing 전용: 개인정보 보호 안내 문구 (우측 상단) */
.step1-landing-wrapper .upload-privacy-notice {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 13px;
  color: #dc3545;
  font-weight: 500;
  z-index: 10;
}

.step1-landing-wrapper .upload-section.fade-out {
  opacity: 0;
  transform: scale(0.95);
}

/* Landing 전용: preview-section 가로 배치 (이미지 왼쪽, 입력 오른쪽) */
/* 초기 상태: 완전히 숨김 (공간 차지 안함) */
.step1-landing-wrapper .preview-section {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin: 0 auto;
  width: 900px;
  max-width: 900px;
  transform: scale(0.95);
  opacity: 0;
}

/* 업로드 후: 표시 + 페이드인 애니메이션 */
.step1-landing-wrapper .preview-section.fade-in {
  display: flex;
  /* ✅ styles.css의 visibility: hidden 오버라이드 (PC에서 필수) */
  visibility: visible !important;
  /* opacity와 transform은 animation에서만 처리 (초기값 유지) */
  animation: previewFadeIn 0.5s ease forwards;
}

@keyframes previewFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Landing 전용: name-input-section (오른쪽 영역) */
.step1-landing-wrapper .name-input-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  width: 480px;
  max-width: 480px;
}

/* 타이틀 스타일 */
.step1-landing-wrapper .name-input-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  text-align: center;
}

/* 이름 사용 안내 (input 위) */
.step1-landing-wrapper .name-usage-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
  white-space: pre-line;
}

/* 이름 입력 input */
.step1-landing-wrapper .character-name-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 18px;
  font-weight: 500;
  transition: var(--transition-normal);
  background: var(--white);
}

.step1-landing-wrapper .character-name-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(185, 126, 245, 0.15);
}

/* 이름 미리보기 텍스트 */
.step1-landing-wrapper .name-preview-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 4px;
  text-align: center;
}

/* Landing 전용: preview-image-container 크기 조정 */
.step1-landing-wrapper .preview-image-container {
  width: 400px;
  height: 400px;
}

/* Landing 전용: step1-next-btn (preview-section 아래 가운데) */
.step1-landing-wrapper .step1-next-btn {
  display: none;
  margin: 40px auto 0;
}

.step1-landing-wrapper .step1-next-btn.show {
  display: block;
}

/* 모바일 반응형 */
@media (max-width: 900px) {
  .step1-landing-wrapper .preview-section {
    flex-direction: column;
    gap: 32px;
  }

  .step1-landing-wrapper .name-input-section {
    align-items: center;
    text-align: center;
  }

  .step1-landing-wrapper .name-input-title {
    font-size: 24px;
  }
}
