/* Non-critical styles, loaded deferred. Above-the-fold lives inline in layout.js */

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 1px solid rgba(77, 214, 232, 0.35);
  background: rgba(77, 214, 232, 0.05);
  color: var(--cyan);
  font-family: 'Cinzel', Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding: 12px 26px;
  border-radius: 4px;
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover {
  text-decoration: none;
  background: rgba(77, 214, 232, 0.12);
  border-color: rgba(77, 214, 232, 0.7);
  box-shadow: 0 0 18px rgba(77, 214, 232, 0.18);
}
.btn-primary {
  background: rgba(77, 214, 232, 0.14);
  border-color: rgba(77, 214, 232, 0.6);
}

/* ===== Hero ===== */
.hero {
  padding: 72px 0 48px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(20, 60, 80, 0.35), transparent 70%);
}
.hero h1 { font-size: clamp(26px, 4.5vw, 42px); max-width: 720px; margin: 0 auto 16px; }
.hero-sub { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 16px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Section titles ===== */
.sec-title { font-size: 21px; margin: 48px 0 20px; letter-spacing: 0.06em; }

/* ===== Sign grid (home) ===== */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.sign-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 20px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 20, 34, 0.5);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sign-card:hover {
  text-decoration: none;
  border-color: rgba(77, 214, 232, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(77, 214, 232, 0.12);
}
.sc-symbol { font-size: 30px; color: var(--cyan); line-height: 1; }
.sc-name { font-family: 'Cinzel', Georgia, serif; font-size: 14px; color: #eaf4f8; letter-spacing: 0.08em; }
.sc-dates { font-size: 11px; color: var(--muted); }

/* ===== Daily previews (home) ===== */
.preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.preview-card {
  display: block; padding: 18px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(8, 20, 34, 0.5); color: var(--ink);
}
.preview-card:hover { text-decoration: none; border-color: rgba(77, 214, 232, 0.5); }
.pc-head { display: block; font-family: 'Cinzel', Georgia, serif; color: var(--cyan); margin-bottom: 8px; letter-spacing: 0.06em; }
.preview-card p { font-size: 14px; color: var(--muted); }

/* ===== How it works ===== */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.how-card { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 20, 34, 0.4); }
.how-card span {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border: 1px solid rgba(77, 214, 232, 0.4); border-radius: 50%; color: var(--cyan);
  font-size: 13px; margin-bottom: 10px;
}
.how-card h3 { font-size: 15px; margin-bottom: 6px; }
.how-card p { font-size: 13.5px; color: var(--muted); }

/* ===== Sign page ===== */
.sign-page { padding-top: 28px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.sign-hero { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 30px; }
.sign-hero h1 { font-size: clamp(22px, 3.6vw, 32px); margin-bottom: 4px; }
.sign-sub { color: var(--gold); font-size: 14px; margin-bottom: 12px; }
.sign-facts { list-style: none; display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.sign-facts b { color: var(--ink); font-weight: 600; margin-right: 5px; }

.const-figure { flex-shrink: 0; }
.const-figure line { stroke: rgba(130, 225, 245, 0.6); stroke-width: 1.1; stroke-linecap: round; }
.const-figure circle { fill: #b5d8e8; opacity: 0.85; }
.const-figure circle.main { fill: #d6eefc; filter: drop-shadow(0 0 4px rgba(125, 232, 240, 0.7)); }

.horoscope-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 26px 28px;
  background: linear-gradient(180deg, rgba(10, 26, 42, 0.6), rgba(6, 16, 28, 0.6));
  margin-bottom: 24px;
}
.horoscope-box h2 { font-size: 17px; margin-bottom: 14px; color: var(--cyan); letter-spacing: 0.08em; }
.horoscope-box p { margin-bottom: 14px; font-size: 16px; line-height: 1.75; }
.stats-line {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--gold); letter-spacing: 0.03em;
}
.stale-note { font-size: 12px; color: var(--muted); font-style: italic; }

.cta-row { margin: 26px 0 10px; }

.sign-info { margin-top: 40px; }
.sign-info h2 { font-size: 19px; margin-bottom: 12px; }
.sign-info > p { color: var(--ink); margin-bottom: 20px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 20px; }
.info-grid > div { border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: rgba(8, 20, 34, 0.4); }
.info-grid h3 { font-size: 14px; color: var(--cyan); margin-bottom: 8px; letter-spacing: 0.06em; }
.info-grid p { font-size: 14px; color: var(--muted); }
.compat { font-size: 14px; color: var(--muted); }

.other-signs { margin-top: 44px; }
.other-signs h2 { font-size: 17px; margin-bottom: 14px; }
.others-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.others-grid a {
  font-size: 13px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: rgba(8, 20, 34, 0.4);
}
.others-grid a:hover { color: var(--cyan); border-color: rgba(77, 214, 232, 0.5); text-decoration: none; }

/* ===== Prose pages (about/faq/privacy/terms/404) ===== */
.prose { max-width: 720px; padding-top: 40px; }
.prose h1 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 22px; }
.prose h2 { font-size: 18px; margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; font-size: 15.5px; }
.prose .muted { color: var(--muted); font-size: 13px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-item summary { cursor: pointer; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 4px; top: 12px; color: var(--cyan); font-size: 20px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item summary h2 { display: inline; font-size: 16px; margin: 0; }
.faq-item p { padding-bottom: 16px; color: var(--muted); }
.nf { text-align: center; padding-top: 80px; }

@media (max-width: 680px) {
  .hero { padding: 44px 0 32px; }
  .sign-hero { gap: 18px; }
  .const-figure { width: 110px; height: 110px; }
  .horoscope-box { padding: 20px 18px; }
}
