
/* =========================
   1. 기본 설정
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f7f7f9;
  color: #f1ebfa;
  font-family: Arial, "Malgun Gothic", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid #cbb2f2;
  outline-offset: 4px;
}

.site-shell {
  width: calc(100% - 28px);
  max-width: 1480px;
  min-height: calc(100vh - 40px);
  margin: 20px auto;
  padding: 24px;
  background: #171923;
  border-radius: 24px;
}

.site-label {
  color: #b9b5c3;
  font-size: 14px;
  letter-spacing: 1px;
}

.banner-icon {
  color: #c8a6f2;
  font-size: 45px;
  line-height: 1;
}


/* =========================
   2. 메인 페이지 헤더
========================= */

.home-header {
  text-align: center;
  padding: 4px 0 18px;
}

.home-header h1 {
  margin-top: 24px;
  font-size: clamp(32px, 5vw, 50px);
  letter-spacing: 1px;
}

.korean-title {
  margin-top: 18px;
  font-size: 24px;
  color: #cbb5e8;
}

.home-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}

.home-nav a,
.sub-nav a {
  font-size: 16px;
  transition: color 0.2s;
}

.home-nav a:hover,
.sub-nav a:hover {
  color: #c8a6f2;
}


/* =========================
   3. 메인 작품 배너
========================= */

.home-banner {
  min-height: 245px;
  padding: 35px 20px;
  background: #2c2b42;
  border-radius: 17px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.home-banner h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.home-banner p {
  font-size: 22px;
  color: #c8c3d2;
}


/* =========================
   4. 메인 바로가기 카드
========================= */

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.shortcut-card {
  min-height: 150px;
  padding: 20px;
  border-radius: 16px;
  background: #2a293b;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition: background 0.2s, transform 0.2s;
}

.shortcut-card:hover {
  background: #3b3553;
  transform: translateY(-3px);
}

.shortcut-icon {
  color: #c8a6f2;
  font-size: 32px;
}

.shortcut-card h2 {
  font-size: 22px;
  font-weight: 400;
}

.shortcut-card p {
  color: #c6c0cc;
  font-size: 16px;
}


/* =========================
   5. 에피소드 페이지 헤더
========================= */

.sub-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
}

.sub-logo {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sub-logo strong {
  color: #d4b8f1;
  font-size: 16px;
}

.sub-logo span {
  font-size: 14px;
}

.sub-nav {
  display: flex;
  gap: 24px;
  padding-top: 8px;
}


/* =========================
   6. 에피소드 작품 배너
========================= */

.episode-hero {
  min-height: 480px;
  padding: 50px 24px 24px;
  border-radius: 24px;
  background: #29213c;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.episode-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.episode-hero h2 {
  font-size: 24px;
  font-weight: 400;
  color: #dfc9f6;
}

.hero-description {
  color: #c7bcd5;
  font-size: 19px;
}

.read-button {
  display: block;
  width: 100%;
  padding: 20px;
  margin-top: auto;

  background: #906eb9;
  border-radius: 15px;

  font-size: 20px;
  text-align: center;
  transition: background 0.2s;
}

.read-button:hover {
  background: #a785d1;
}


/* =========================
   7. 웹툰 회차 목록
========================= */

.episodes-section {
  padding: 36px 0;
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 28px;
}

.section-heading p {
  color: #c4becd;
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 15px;

  background: #272232;
  border-radius: 20px;
  transition: background 0.2s;
}

.episode-card:hover {
  background: #373047;
}

.episode-thumbnail {
  width: 190px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;

  background: #554269;
  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.episode-thumbnail span {
  color: #d2b9ee;
  font-size: 36px;
}

.episode-number {
  color: #d6b7f3;
  font-size: 16px;
}

.episode-info h3 {
  margin: 12px 0;
  font-size: 24px;
}

.episode-description {
  color: #c1bbc9;
  font-size: 15px;
}


/* =========================
   8. 푸터
========================= */

.footer {
  padding: 32px 0 8px;
  border-top: 1px solid #494050;
  text-align: center;
  color: #bfb5cb;
  font-size: 14px;
}


/* =========================
   9. 준비 중 페이지
========================= */

.coming-content {
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 25px;
}

.coming-content h1 {
  font-size: 36px;
}

.coming-content p {
  color: #c7bfd3;
  line-height: 1.9;
}

.back-button {
  padding: 15px 30px;
  border-radius: 8px;
  background: #906eb9;
}

.back-button:hover {
  background: #a785d1;
}


/* =========================
   10. 모바일 반응형
========================= */

@media (max-width: 768px) {

  .site-shell {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 16px;
    border-radius: 18px;
  }

  .home-header h1 {
    margin-top: 18px;
  }

  .home-nav {
    gap: 15px;
  }

  .home-nav a {
    font-size: 12px;
  }

  .home-banner p {
    font-size: 16px;
  }

  .shortcut-grid {
    grid-template-columns: 1fr;
  }

  .shortcut-card {
    min-height: 120px;
  }

  .sub-nav {
    gap: 12px;
  }

  .sub-nav a {
    font-size: 12px;
  }

  .episode-hero {
    min-height: 400px;
  }

  .hero-description {
    font-size: 15px;
  }

  .read-button {
    font-size: 16px;
  }

  .episode-thumbnail {
    width: 110px;
  }

  .episode-info h3 {
    font-size: 17px;
  }

  .episode-number,
  .episode-description {
    font-size: 12px;
  }

}


/* =========================
   전체 다크 테마 적용
========================= */

/* 브라우저 전체 배경 */
html,
body {
  background: #171923;
  min-height: 100%;
}

/* 홈페이지를 화면 전체로 확장 */
.site-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;

  margin: 0;
  padding: 30px 24px;

  border-radius: 0;
  background: #171923;
}

/* 콘텐츠는 중앙에 정렬 */
.site-shell > header,
.site-shell > main,
.site-shell > footer {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 모바일 화면 */
@media (max-width: 768px) {
  .site-shell {
    padding: 20px 16px;
  }
}
