/* 꿈해몽 AI — 앱과 맞춘 다크 그라데이션 + 글래스 모피즘 */

:root {
  --grad-a: #0f0c29;
  --grad-b: #302b63;
  --grad-c: #24243e;
  --glass-fill: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --accent: #7c6cf9;
  --text: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-muted: rgba(255, 255, 255, 0.52);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic",
    sans-serif;
  line-height: 1.65;
  color: var(--text-soft);
  background: linear-gradient(
    145deg,
    var(--grad-a) 0%,
    var(--grad-b) 42%,
    var(--grad-c) 100%
  );
  background-attachment: fixed;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* 상단 글래스 내비 */
.glass-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.25rem;
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 0.75rem;
  z-index: 20;
}

.glass-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.glass-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.glass-nav a[aria-current="page"] {
  background: rgba(124, 108, 249, 0.38);
  border-color: rgba(184, 174, 255, 0.45);
  color: #fff;
}

/* 본문 글래스 패널 */
.glass-panel {
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 1.5rem 1.35rem 1.65rem;
  box-shadow: var(--glass-shadow);
}

.brand-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.55rem 0 0.45rem;
  color: rgba(255, 255, 255, 0.95);
}

h2:first-of-type {
  margin-top: 0.75rem;
}

p {
  margin: 0.55em 0;
}

ul {
  margin: 0.5em 0;
  padding-left: 1.25em;
}

li {
  margin: 0.4em 0;
}

strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 1.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer a {
  color: rgba(184, 174, 255, 0.95);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
