/* ===== Weather&Pick 공유 스타일 ===== */
:root {
  --blue: #2b6cb0;
  --blue-light: #4a90d9;
  --blue-soft: #83b9e8;
  --bg: #eef3f9;
  --ink: #1b2a3a;
  --muted: #5a6b7d;
  --card: #ffffff;
  --line: #e2e9f1;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(30, 60, 100, 0.12);
  --max: 1000px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Malgun Gothic", "맑은 고딕", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--blue); }

/* ===== 헤더 / 내비게이션 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 18px; flex-wrap: wrap;
}
.brand {
  font-size: 1.15rem; font-weight: 800; color: var(--ink);
  text-decoration: none; letter-spacing: -0.3px;
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 6px 10px; border-radius: 10px;
}
.site-nav a:hover, .site-nav a.active { color: var(--blue); background: #eaf2fb; }

/* ===== 공통 레이아웃 ===== */
main { flex: 1 0 auto; width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 18px; }
.section { padding: 40px 0; }

/* ===== 홈 히어로 ===== */
.hero {
  background: linear-gradient(160deg, #4a90d9 0%, #83b9e8 45%, #cfe4f7 100%);
  color: #fff; text-align: center; padding: 54px 18px 40px;
}
.hero h1 { font-size: 2.1rem; letter-spacing: -0.5px; }
.hero p { margin-top: 10px; font-size: 1rem; opacity: 0.95; }
.hero .cta { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 26px; text-decoration: none;
  font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer;
}
.btn.primary { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.btn.outline { background: rgba(255,255,255,0.15); color: #fff; border: 1.5px solid rgba(255,255,255,0.7); }

/* ===== 섹션 제목 ===== */
.section-head { text-align: center; margin-bottom: 24px; }
.section-head h2 { font-size: 1.5rem; }
.section-head p { color: var(--muted); margin-top: 6px; }

/* ===== 날씨 카드 그리드 ===== */
#updated { font-size: 0.82rem; color: var(--muted); text-align: center; margin-bottom: 14px; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px; width: 100%;
}
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px 12px;
  text-align: center; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(30, 60, 100, 0.22); }
.card.today { outline: 3px solid #ffd166; }
.card .day { font-weight: 700; font-size: 1.02rem; }
.card .day.sun { color: #e63946; }
.card .day.sat { color: #1d6fd8; }
.card .date { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.card .icon { font-size: 2.5rem; line-height: 1.1; margin: 4px 0; }
.card .desc { font-size: 0.8rem; color: #405060; min-height: 2.2em; margin-bottom: 8px; }
.card .temp { font-size: 1.02rem; font-weight: 600; }
.card .temp .max { color: #e63946; }
.card .temp .min { color: #1d6fd8; }
.card .rain { margin-top: 6px; font-size: 0.78rem; color: #1d6fd8; }
.state { text-align: center; color: var(--muted); margin-top: 16px; }
.state button {
  margin-top: 12px; padding: 8px 18px; border: none; border-radius: 20px;
  background: var(--blue); color: #fff; font-weight: 600; cursor: pointer;
}

/* ===== 동물상 테스트 ===== */
.animal-test {
  width: 100%; max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: 22px; padding: 28px 24px;
  box-shadow: var(--shadow); text-align: center; border: 1px solid var(--line);
}
.animal-test h2 { font-size: 1.4rem; margin-bottom: 6px; }
.animal-test .sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.at-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.at-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: 24px; cursor: pointer;
  background: var(--blue-light); color: #fff; font-size: 0.95rem; font-weight: 600;
}
.at-btn.ghost { background: #eef4fb; color: var(--blue); }
.at-btn:disabled { opacity: 0.5; cursor: default; }
#at-media { display: flex; justify-content: center; margin-bottom: 16px; }
#at-media img, #at-media canvas, #at-media video {
  max-width: 280px; max-height: 280px; border-radius: 16px; object-fit: cover;
  box-shadow: 0 4px 14px rgba(30, 60, 100, 0.18);
}
#at-result { min-height: 1.4em; font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; color: var(--ink); }
#at-result .emoji { font-size: 1.5rem; }
.at-bar { text-align: left; margin: 8px 0; }
.at-bar .lbl { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 3px; color: #405060; }
.at-bar .track { background: #e6edf5; border-radius: 8px; height: 12px; overflow: hidden; }
.at-bar .fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--blue-light), var(--blue-soft)); transition: width .4s ease; }
.at-bar.top .fill { background: linear-gradient(90deg, #ff8c42, #ffd166); }
#at-status { font-size: 0.82rem; color: var(--muted); margin-top: 12px; min-height: 1.2em; }
.privacy-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; }

/* ===== 콘텐츠(아티클) ===== */
.article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 30px; margin: 28px auto; max-width: 800px;
}
.article h1 { font-size: 1.9rem; line-height: 1.3; margin-bottom: 10px; }
.article .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 1.35rem; margin: 30px 0 12px; padding-left: 12px; border-left: 4px solid var(--blue-light); }
.article h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.article p { margin: 12px 0; }
.article ul, .article ol { margin: 12px 0 12px 22px; }
.article li { margin: 6px 0; }
.article .lead { font-size: 1.08rem; color: #33475b; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
.article th, .article td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.article th { background: #f2f7fc; }
.article blockquote {
  margin: 16px 0; padding: 12px 16px; background: #f2f7fc;
  border-left: 4px solid var(--blue-soft); border-radius: 8px; color: #33475b;
}
.callout {
  margin: 18px 0; padding: 14px 16px; border-radius: 12px;
  background: #eaf6ee; border: 1px solid #cdead6; color: #1f5132;
}
.card-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.link-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.link-card:hover { transform: translateY(-4px); }
.link-card .emoji { font-size: 1.8rem; }
.link-card h3 { margin: 8px 0 6px; font-size: 1.1rem; }
.link-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== 광고 슬롯 ===== */
.ad-slot { max-width: 800px; margin: 22px auto; text-align: center; min-height: 90px; }
.ad-slot small { display: block; color: #9aa9b8; font-size: 0.72rem; margin-bottom: 4px; letter-spacing: 1px; }

/* ===== 푸터 ===== */
.site-footer {
  flex-shrink: 0; margin-top: 30px; background: #16324f; color: #cdd9e6;
  padding: 28px 18px; text-align: center; font-size: 0.85rem;
}
.site-footer .foot-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .copy { opacity: 0.8; }

/* ===== 반응형 ===== */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.7rem; }
  .article { padding: 24px 18px; }
  .brand { font-size: 1.05rem; }
}
