@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&family=Nunito:wght@400;600;700;800&family=Quicksand:wght@600;700&display=swap');

:root {
  --bg-cream: #FFFBF5;
  --bg-card: #FFFFFF;
  --peach-soft: #FFE8D6;
  --sakura-soft: #FADADD;
  --lavender-soft: #EFE7FA;
  --mint-soft: #E5F4EC;
  --accent-rose: #E07A8B;
  --accent-rose-dark: #C85E71;
  --accent-peach: #F2A679;
  --text-main: #3D2C2E;
  --text-muted: #7A6366;
  --border-soft: #F3E3DC;
  --shadow-soft: 0 10px 30px rgba(176, 120, 112, 0.10);
  --shadow-hover: 0 16px 38px rgba(176, 120, 112, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: 'Quicksand', 'Noto Sans KR', sans-serif;
  color: var(--text-main);
  line-height: 1.3;
}
.korean { font-family: 'Noto Sans KR', sans-serif; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 251, 245, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-container {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Quicksand', sans-serif; font-size: 1.45rem; font-weight: 700;
  color: var(--accent-rose-dark); letter-spacing: -0.02em;
}
.brand-badge {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--sakura-soft), var(--peach-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 4px 12px rgba(224, 122, 139, 0.2);
}
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.95rem; font-weight: 700; color: var(--text-muted);
  transition: all 0.2s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--sakura-soft); color: var(--accent-rose-dark);
}
.mobile-menu-btn {
  display: none; background: var(--peach-soft); border: none;
  width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem;
  cursor: pointer; color: var(--text-main);
}

.container {
  max-width: 1160px; width: 100%; margin: 0 auto;
  padding: 28px 24px 64px; flex: 1;
}

/* Hero Banner */
.hero-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 360px; display: flex; align-items: flex-end;
  box-shadow: var(--shadow-soft); margin-bottom: 40px;
  background: linear-gradient(135deg, #FFE8D6, #FADADD);
}
.hero-banner.sub-hero { min-height: 260px; margin-bottom: 30px; }
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 1;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(61, 44, 46, 0.78) 0%, rgba(61, 44, 46, 0.32) 55%, rgba(255, 232, 214, 0.08) 100%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3; padding: 36px 40px; color: #FFFFFF; max-width: 740px;
}
.hero-pill {
  display: inline-block; background: rgba(255, 251, 245, 0.94);
  color: var(--accent-rose-dark); padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 800; margin-bottom: 12px; letter-spacing: 0.03em;
}
.hero-content h1 {
  color: #FFFFFF; font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 10px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}
.hero-content p { font-size: 1.04rem; color: rgba(255, 251, 245, 0.95); margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-pill);
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.96rem;
  cursor: pointer; border: none; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-peach));
  color: #FFFFFF; box-shadow: 0 6px 18px rgba(224, 122, 139, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(224, 122, 139, 0.45); }
.btn-soft { background: rgba(255, 251, 245, 0.96); color: var(--text-main); }
.btn-soft:hover { background: #FFFFFF; }
.btn-outline { background: #FFFFFF; color: var(--accent-rose-dark); border: 2px solid var(--sakura-soft); }
.btn-outline:hover { background: var(--sakura-soft); }
.btn-audio {
  background: var(--peach-soft); color: var(--text-main);
  padding: 7px 14px; font-size: 0.86rem; border-radius: var(--radius-pill);
  border: none; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.18s ease;
}
.btn-audio:hover { background: var(--sakura-soft); transform: scale(1.03); }

/* Section Headers */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 24px; gap: 12px; flex-wrap: wrap;
}
.section-header h2 { font-size: 1.65rem; }
.section-header p { color: var(--text-muted); font-size: 0.98rem; }

/* Card Grid */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px; margin-bottom: 36px;
}
.menu-card {
  background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card-thumb-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--peach-soft);
}
.card-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.menu-card:hover .card-thumb { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 251, 245, 0.94); color: var(--accent-rose-dark);
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 800; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.24rem; margin-bottom: 8px; color: var(--text-main); }
.card-body p { font-size: 0.94rem; color: var(--text-muted); margin-bottom: 16px; flex: 1; }
.card-cta { font-weight: 800; font-size: 0.92rem; color: var(--accent-rose-dark); display: inline-flex; align-items: center; gap: 6px; }

/* Panels & Inputs */
.panel {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px 30px; border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft); margin-bottom: 26px;
}
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; align-items: center; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-soft); background: #FFFFFF;
  color: var(--text-muted); font-weight: 700; font-size: 0.9rem;
  cursor: pointer; transition: all 0.2s ease;
}
.chip:hover, .chip.active { background: var(--accent-rose); border-color: var(--accent-rose); color: #FFFFFF; }
.search-input, .name-input {
  padding: 12px 18px; border-radius: var(--radius-pill);
  border: 2px solid var(--border-soft); background: #FFFFFF;
  font-family: inherit; font-size: 1rem; color: var(--text-main); outline: none;
}
.name-input { flex: 1; min-width: 240px; font-weight: 700; }
.search-input:focus, .name-input:focus { border-color: var(--accent-rose); }

/* Name Generator Result */
.name-result-card {
  background: linear-gradient(135deg, #FFF7F0, #FFF0F3);
  border: 2px solid var(--sakura-soft); border-radius: var(--radius-lg);
  padding: 30px; text-align: center; margin-top: 20px;
}
.name-hangul-big {
  font-family: 'Noto Sans KR', sans-serif; font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700; color: var(--accent-rose-dark); margin-bottom: 4px;
}
.name-roman { font-size: 1.45rem; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.match-reason-pill {
  display: inline-block; background: #FFFFFF; color: var(--accent-rose-dark);
  border: 1px solid var(--sakura-soft); padding: 6px 16px; border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 700; margin-bottom: 16px;
}
.syllable-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; max-width: 540px; margin: 16px auto 20px;
}
.syllable-box { background: #FFFFFF; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--border-soft); }
.syllable-char { font-family: 'Noto Sans KR', sans-serif; font-size: 1.65rem; font-weight: 700; color: var(--accent-rose-dark); }
.runner-up-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 20px;
}
.runner-up-card {
  background: #FFFFFF; border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 6px;
}

/* Inline TOPIK Quiz Cards */
.quiz-sticky-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, #FFF3EB, #FFF0F3);
  border: 1.5px solid var(--sakura-soft); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 24px;
}
.quiz-q-card {
  background: #FFFFFF; border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 18px;
  box-shadow: 0 6px 20px rgba(176, 120, 112, 0.07);
}
.quiz-options-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px; margin-top: 14px;
}
.quiz-option {
  text-align: left; padding: 13px 16px; border-radius: 14px;
  border: 2px solid var(--border-soft); background: #FFFFFF;
  font-size: 0.98rem; font-weight: 700; color: var(--text-main);
  cursor: pointer; transition: all 0.18s ease;
}
.quiz-option:hover:not(:disabled) { border-color: var(--accent-rose); background: #FFF7F8; }
.quiz-option.correct { border-color: #4CAF7D; background: #E9F8F0; color: #1F6B46; }
.quiz-option.wrong { border-color: #E06C75; background: #FDEEEF; color: #9A2B35; }
.explanation-box {
  background: var(--lavender-soft); padding: 13px 16px; border-radius: 12px;
  margin-top: 12px; font-size: 0.92rem;
}

/* K-Drama Cards */
.kdrama-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.kdrama-card {
  background: #FFFFFF; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.kdrama-img-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: var(--peach-soft); position: relative; }
.kdrama-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.kdrama-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.speech-box {
  background: var(--bg-cream); border: 1px solid var(--border-soft);
  border-radius: 14px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.speech-label { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent-rose-dark); }

/* K-Culture YouTube */
.video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius-md); overflow: hidden; background: #2B2123; margin-bottom: 16px;
}
.video-wrap iframe { width: 100%; height: 100%; border: none; }

/* Hangul Interactive Grid */
.hangul-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; margin-top: 14px; }
.hangul-tile {
  background: #FFFFFF; border: 1.5px solid var(--border-soft); border-radius: 14px;
  padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.18s ease;
}
.hangul-tile:hover { background: var(--sakura-soft); border-color: var(--accent-rose); transform: translateY(-2px); }
.hangul-tile .char { font-family: 'Noto Sans KR', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--text-main); }
.hangul-tile .rom { font-size: 0.78rem; color: var(--text-muted); font-weight: 700; }

/* Badges */
.price-badge { display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 800; }
.price-free { background: var(--mint-soft); color: #216E4E; }
.price-paid { background: var(--peach-soft); color: #9C4E1F; }

/* Pagination Bar */
.pagination-bar {
  display: flex; justify-content: center; align-items: center; gap: 8px;
  margin: 34px 0 10px; flex-wrap: wrap;
}
.page-btn {
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: var(--radius-pill); border: 1.5px solid var(--border-soft);
  background: #FFFFFF; color: var(--text-main); font-weight: 800; font-size: 0.92rem;
  cursor: pointer; transition: all 0.18s ease; display: inline-flex; align-items: center; justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--accent-rose); background: #FFF5F7; color: var(--accent-rose-dark); }
.page-btn.active { background: var(--accent-rose); border-color: var(--accent-rose); color: #FFFFFF; box-shadow: 0 4px 12px rgba(224,122,139,0.3); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* AdSense Container */
.ad-slot-wrapper { display: none; margin: 28px 0; text-align: center; min-height: 90px; }

/* Footer (Zero Admin Links) */
.site-footer {
  background: #FFF3EB; border-top: 1px solid var(--border-soft);
  padding: 36px 24px; text-align: center; color: var(--text-muted); font-size: 0.9rem;
}
.footer-brand { font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--accent-rose-dark); margin-bottom: 8px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 12px 0; }
.footer-links a:hover { color: var(--accent-rose-dark); }

@media (max-width: 820px) {
  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg-cream); flex-direction: column; padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-soft);
  }
  .nav-links.open { display: flex; }
  .hero-content { padding: 24px; }
  .hero-banner { min-height: 280px; }
}
