/* index.php 전용 스타일 — inc/header.php의 전역 스타일과 분리됨 */

/* ─── 히어로 ─── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid oklch(from var(--accent) l c h / .25);
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.15; margin: 0 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: var(--ink-3); font-size: 17px; line-height: 1.65;
  max-width: 540px; margin: 0 auto 36px;
}
.hero-btns {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
/* ─── 통계 카드 섹션 ─── */
.stat-section { padding-top: 0 !important; padding-bottom: 32px !important; }
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}
.stat-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.stat-card:hover {
  border-color: oklch(from var(--accent) l c h / .45);
  box-shadow: var(--shadow-2);
}
.stat-num {
  font-size: 34px; font-weight: 700;
  color: var(--accent); letter-spacing: -0.03em;
  margin-bottom: 8px; line-height: 1;
}
.stat-label {
  font-size: 12px; color: var(--ink-4);
  font-weight: 500; letter-spacing: 0.02em;
}

/* ─── 학습 경로 ─── */
.path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.path-grid-center {
  max-width: 660px;
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}
.path-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 20px 12px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-l); text-decoration: none;
  color: var(--ink-2);
  box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.path-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px oklch(from var(--accent) l c h / .08), var(--shadow-2);
  color: var(--ink);
}
.path-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4);
  transition: color .15s;
}
.path-card:hover .path-label { color: var(--accent); }
.path-name { font-size: 12.5px; font-weight: 600; text-align: center; }

/* ─── Featured 카드 ─── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.featured-card {
  display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 18px 20px;
  box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.featured-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}
.featured-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 8px;
}
.featured-card h3 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em; line-height: 1.35;
  margin: 0 0 8px; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.featured-card p {
  font-size: 13px; color: var(--ink-3); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── 프롬프트 필터 ─── */
.prompt-filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 24px; align-items: center;
}
.prompt-filters input,
.prompt-filters select {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel); color: var(--ink);
  font-family: inherit; font-size: 13px;
  transition: border-color .15s;
  outline: none;
}
.prompt-filters input { flex: 1; min-width: 180px; }
.prompt-filters input:focus,
.prompt-filters select:focus { border-color: var(--accent); }
.prompt-filters select { min-width: 130px; }

/* ─── 프롬프트 그리드 ─── */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.prompt-card {
  display: flex; flex-direction: column;
  padding: 24px; position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
  box-shadow: var(--shadow-1);
  transition: border-color .15s, box-shadow .15s;
}
.prompt-card:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-2);
}
.prompt-card h3 {
  font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  color: var(--ink); margin-bottom: 12px; line-height: 1.4;
}
.prompt-card .purpose {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.6;
  margin-bottom: 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prompt-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; font-size: 11px; font-weight: 700; color: var(--ink-3);
}
.prompt-actions { display: flex; gap: 8px; align-items: center; }

/* ─── 자료실 ─── */
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.resource-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 22px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
}
.resource-card h3 {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  letter-spacing: -0.015em; margin: 0 0 10px;
}
.resource-card p { font-size: 13.5px; color: var(--ink-3); margin: 0 0 20px; flex: 1; }
.resource-links { display: flex; gap: 12px; }
.resource-link {
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.resource-link:hover { text-decoration: underline; }
.resource-link.muted { color: var(--ink-3); }

/* ─── 태그 클라우드 ─── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 32px; }
.tag-item {
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  padding: 4px 12px; border-radius: 100px;
  border: 1px solid var(--line); background: var(--panel);
  transition: color .12s, border-color .12s;
}
.tag-item:hover { color: var(--ink); border-color: var(--line-2); }

/* ─── LLM Lab CTA ─── */
.lab-cta {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 28px; padding: 60px 48px; text-align: center;
  box-shadow: var(--shadow-2);
  position: relative; overflow: hidden;
}
.lab-cta::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, oklch(from var(--accent) l c h / .12), transparent 70%);
  pointer-events: none;
}
.lab-cta h2 {
  font-family: var(--font-serif); font-size: 32px; font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 14px;
}
.lab-cta p {
  color: var(--ink-3); font-size: 15.5px; line-height: 1.65;
  max-width: 560px; margin: 0 auto 24px;
}
.site-notice {
  margin-top: 24px; padding: 16px 20px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: var(--radius-s); font-size: 13px;
  color: var(--ink-4); line-height: 1.7; text-align: center;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
.security-note {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-4);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 8px;
  margin-bottom: 28px;
}

/* ─── 페이지네이션 ─── */
#prompt-pagination {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center; margin-top: 32px;
}

/* ─── 모달 탭 / 결과 카드 ─── */
.modal-tab-btn {
  padding: 8px 16px; background: none; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -2px; cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--ink-3); transition: color .15s, border-color .15s;
}
.modal-tab-btn:hover { color: var(--ink); }
.modal-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.result-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 16px;
  background: var(--bg-2);
}
.result-model-badge {
  display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent); padding: 2px 8px;
  border-radius: 4px; margin-bottom: 8px;
}
.result-text-pre {
  font-size: 12px; color: var(--ink-2); line-height: 1.7; white-space: pre-wrap;
  word-break: break-word; max-height: 200px; overflow: hidden; position: relative;
}
.result-text-pre.expanded { max-height: none; }
.result-expand-btn {
  font-size: 11px; color: var(--accent); background: none; border: none;
  cursor: pointer; padding: 0; margin-top: 6px; font-weight: 700;
}
.result-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
}
.react-btn {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 10px; font-size: 12px;
  cursor: pointer; color: var(--ink-3); transition: background .15s, color .15s;
}
.react-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.react-btn.reacted { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.model-filter-btn {
  padding: 4px 12px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--ink-3);
  cursor: pointer; transition: all .15s;
}
.model-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── 모바일 ─── */
@media (max-width: 640px) {
  .hero { padding: 100px 0 60px; }
  .hero-btns { flex-direction: column; align-items: stretch; max-width: 280px; margin: 0 auto; }
  .hero-btns .btn { justify-content: center; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-num { font-size: 26px; }
  .path-grid-center { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-filters { flex-direction: column; }
  .prompt-filters input,
  .prompt-filters select { width: 100%; }
  .lab-cta { padding: 40px 24px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .mono-cards { grid-template-columns: 1fr; }
}
