/* Todaki — design tokens v3 (토닥이 스타일).
   순백 배경 / 절제된 핫핑크 액센트 / 큰 타이포 위계 / 600px 본문 폭. */

:root {
  /* ── Surface ─────────────────────────────────────── */
  --bg:        #FFFFFF;          /* page bg, pure white */
  --bg-2:      #FAFAFA;          /* section divider strip */
  --bg-3:      #F5F5F7;          /* card hover, subtle */
  --bg-card:   #FFFFFF;

  /* ── Ink (text) — neutral, no warm tint ─────────── */
  --ink:       #111111;          /* high emphasis */
  --ink-2:     #424247;          /* body */
  --ink-3:     #8A8D93;          /* meta */
  --ink-4:     #B8BBC2;          /* placeholder, disabled */
  --ink-5:     #E5E7EB;          /* divider strong */

  /* ── Lines ───────────────────────────────────────── */
  --line:      #1F1F1F;
  --line-soft: rgba(17, 17, 17, 0.10);
  --line-softer: rgba(17, 17, 17, 0.06);

  /* ── Accent — Todaki hot pink + secondary coral ── */
  --pink:      #FF6680;          /* primary accent (토닥이 톤) */
  --pink-50:   #FFF0F4;
  --pink-100:  #FFD9E2;
  --pink-300:  #FF99AD;
  --pink-500:  #FF6680;
  --pink-600:  #ED4868;
  --pink-700:  #D63756;

  --coral:     #FF6680;          /* alias — 통일 */
  --coral-500: #FF6680;
  --coral-50:  #FFF0F4;
  --coral-100: #FFD9E2;
  --coral-300: #FF99AD;
  --coral-600: #ED4868;
  --coral-soft: var(--pink-50);

  /* ── Wellness pastel circle backgrounds (category icons) ── */
  --pastel-rose:    #FFE4EC;
  --pastel-mint:    #E0F4EC;
  --pastel-sky:     #E3F0FB;
  --pastel-cream:   #FFF4DD;
  --pastel-violet:  #EFE5FA;

  --sage:      #5CB390;
  --lavender:  #9B85D0;
  --gold:      #C68B3E;

  /* ── Shadows — minimal, elevation only ─────────── */
  --shadow-card:       0 1px 3px rgba(17, 17, 17, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(17, 17, 17, 0.08);
  --shadow-pill:       0 2px 8px rgba(17, 17, 17, 0.06);
  --shadow-fab:        0 6px 20px rgba(255, 102, 128, 0.34);

  /* ── Radius ───────────────────────────────────── */
  --r-sm:  6px;
  --r:     10px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-full: 999px;

  /* ── Typography ───────────────────────────────── */
  --font-kr:   "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont,
               "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-num:  "Pretendard Variable", -apple-system, system-ui, sans-serif;

  /* Type scale (토닥이식 위계) */
  --t-display: 700 28px/1.25 var(--font-kr);
  --t-h1:      700 22px/1.3  var(--font-kr);
  --t-h2:      700 18px/1.35 var(--font-kr);
  --t-h3:      600 16px/1.4  var(--font-kr);
  --t-body:    400 14px/1.55 var(--font-kr);
  --t-meta:    400 12px/1.5  var(--font-kr);
  --t-caption: 400 11px/1.4  var(--font-kr);

  /* ── Layout ───────────────────────────────────── */
  --max-w: 600px;          /* 토닥이 본문 폭 */
  --pad:   16px;

  /* ── Transitions ──────────────────────────────── */
  --t-fast:  120ms ease;
  --t-base:  180ms ease;
  --t-slow:  280ms ease;
}

/* ─────────────────────── Base ─────────────────────── */
html, body {
  margin: 0;
  font-family: var(--font-kr);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
* { box-sizing: border-box; }
button { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─────────────────────── Atoms ─────────────────────── */

.todaki-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--bg);
  color: var(--ink-2);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.todaki-chip:hover { background: var(--bg-3); color: var(--ink); }
.todaki-chip--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.todaki-chip--solid:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.todaki-chip--coral,
.todaki-chip--pink {
  background: var(--pink-50);
  color: var(--pink-600);
  border-color: var(--pink-100);
  font-weight: 600;
}
.todaki-chip--coral:hover,
.todaki-chip--pink:hover { background: var(--pink-100); }

.todaki-vip {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.todaki-stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.todaki-stars::before {
  content: "★";
  color: var(--pink);
  font-size: 13px;
}

.todaki-label-en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.todaki-label-kr {
  font: var(--t-h2);
  color: var(--ink);
  margin-top: 4px;
  letter-spacing: -0.02em;
}

/* Buttons — 토닥이식 round-rect */
.todaki-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink-5);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
  letter-spacing: -0.012em;
}
.todaki-btn:hover { background: var(--bg-3); }
.todaki-btn:active { transform: scale(0.98); }
.todaki-btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.todaki-btn--solid:hover { background: var(--ink-2); border-color: var(--ink-2); }
.todaki-btn--coral,
.todaki-btn--pink {
  background: var(--pink);
  color: var(--bg);
  border-color: var(--pink);
  font-weight: 700;
}
.todaki-btn--coral:hover,
.todaki-btn--pink:hover { background: var(--pink-600); border-color: var(--pink-600); }
.todaki-btn--full { width: 100%; }

/* Section ribbon */
.todaki-section-divider {
  height: 8px;
  background: var(--bg-2);
  margin: 0;
}

/* ─────── Image placeholder — neutral, refined ─────── */
.todaki-thumb-placeholder {
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
.todaki-thumb-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B8BBC2' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='2' ry='2'/><circle cx='8.5' cy='8.5' r='1.5'/><polyline points='21 15 16 10 5 21'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 26px;
  opacity: 0.7;
  pointer-events: none;
}

/* Animations */
@keyframes todaki-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
@keyframes todaki-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes todaki-heart-pop {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.3); }
  60%      { transform: scale(0.92); }
}
.todaki-heart-pop { animation: todaki-heart-pop 320ms cubic-bezier(0.34, 1.56, 0.64, 1); }

/* SVG icon container */
.todaki-icon { display: inline-flex; vertical-align: middle; flex-shrink: 0; align-items: center; justify-content: center; }
.todaki-icon svg { display: block; width: 100%; height: 100%; }

/* Skeleton */
@keyframes todaki-skel {
  0%   { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.todaki-skel {
  background: linear-gradient(90deg, var(--bg-2) 0%, var(--bg-3) 50%, var(--bg-2) 100%);
  background-size: 200px 100%;
  animation: todaki-skel 1.6s ease-in-out infinite;
  border-radius: 4px;
}

/* Coral text aliases */
.coral-text { color: var(--pink); }
.coral-text-strong { color: var(--pink-600); font-weight: 700; }

/* ─────────────── Empty state atom ─────────────── */
.todaki-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
  gap: 12px;
}
.todaki-empty-state__emoji {
  font-size: 48px;
  filter: grayscale(0.3);
  opacity: 0.85;
}
.todaki-empty-state__title {
  font: var(--t-h3);
  color: var(--ink);
  letter-spacing: -0.02em;
}
.todaki-empty-state__desc {
  font: var(--t-meta);
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 280px;
}

/* ─── Suppress Hello Elementor parent header/footer ─── */
body[class*="todaki-"] .site-header,
body[class*="todaki-"] .site-footer,
body[class*="todaki-"] header#site-header,
body[class*="todaki-"] footer#colophon,
body[class*="todaki-"] footer#site-footer {
  display: none !important;
}
body[class*="todaki-"] .site-main,
body[class*="todaki-"] main#content,
body[class*="todaki-"] #content {
  padding: 0;
  max-width: none;
}

/* Modal scroll lock */
body.todaki-no-scroll { overflow: hidden; }

/* ─────────────── 19+ Age Gate ─────────────── */
.todaki-age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  background: rgba(247, 248, 250, 0.94);
  contain: layout paint style;
  isolation: isolate;
}
.todaki-age-gate[hidden] { display: none !important; }
.todaki-age-gate__backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}
.todaki-age-gate__card {
  position: relative;
  background: var(--bg);
  border: 1px solid rgba(255, 102, 128, 0.14);
  border-radius: 18px;
  padding: 28px 22px 24px;
  width: min(100%, 360px);
  min-height: 318px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.14);
  contain: layout paint;
}
.todaki-age-gate__emoji {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: var(--pink-50);
  color: var(--pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.todaki-age-gate__title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  color: var(--ink);
}
.todaki-age-gate__desc {
  font: var(--t-body);
  color: var(--ink-2);
  margin: 0 0 20px;
}
.todaki-age-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.todaki-age-gate__legal {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 16px;
  line-height: 1.5;
}


/* ── Public footer (rendered globally) ─────────────────────── */
.todaki-footer{
	margin-top:32px;
	padding:24px 16px 96px;   /* extra bottom space so dock doesn't overlap */
	background:#FFF6F0;
	border-top:1px solid #FFE7EB;
	color:#666;
	font-size:12.5px;
	line-height:1.65;
}
.todaki-footer__inner{
	max-width:600px;
	margin:0 auto;
	display:flex; flex-direction:column; gap:14px;
}
.todaki-footer__brand{ display:flex; flex-direction:column; gap:4px; }
.todaki-footer__logo{
	font-family:'Noto Serif KR', serif;
	font-size:18px; font-weight:700;
	color:#FF6680;
	text-decoration:none;
}
.todaki-footer__tagline{ margin:0; color:#888; font-size:12px; }
.todaki-footer__nav{
	display:flex; flex-wrap:wrap; gap:14px;
	font-size:13px;
}
.todaki-footer__nav a{
	color:#444; text-decoration:none; font-weight:500;
	padding:4px 0;
}
.todaki-footer__nav a:hover{ color:#FF6680; }
.todaki-footer__legal{
	display:flex; flex-wrap:wrap; align-items:center; gap:6px;
	color:#888; font-size:12px;
	padding-top:8px; border-top:1px dashed #FFE7EB;
}
.todaki-footer__legal a{ color:#666; text-decoration:none; }
.todaki-footer__legal a:hover{ color:#FF6680; text-decoration:underline; }
.todaki-footer__age{
	display:inline-flex; align-items:center; justify-content:center;
	min-width:32px; height:20px; padding:0 6px;
	background:#FF6680; color:#fff;
	border-radius:10px; font-size:11px; font-weight:700;
	margin-right:4px;
}
.todaki-footer__copy{
	color:#999; font-size:11.5px; line-height:1.6;
}

/* Hide footer when 19+ age gate is active or auth screens */
.todaki-age-gate-active .todaki-footer,
body.todaki-auth .todaki-footer{ display:none; }

/* Hide level character span */
.todaki-level-char{
	display:inline-flex; align-items:center; justify-content:center;
	border-radius:50%;
	box-shadow: inset 0 0 0 2px #fff, 0 2px 8px rgba(255,102,128,.15);
	line-height:1;
}
/* MyPage avatar wrapper for character mode */
.todaki-mp__avatar--character{
	background:transparent !important;
	display:flex; align-items:center; justify-content:center;
}
/* Logout button (replaces gear) */
.todaki-mp__logout{
	display:inline-flex; align-items:center; gap:4px;
	color:#FF6680;
	font-size:12px; font-weight:600;
	text-decoration:none;
	padding:6px 8px;
	border-radius:8px;
	transition:background .15s;
}
.todaki-mp__logout:hover{ background:#FFE7EB; color:#FF6680; }
.todaki-mp__logout svg{ stroke:currentColor; }
