/* AstroTheme — horoscope hub (/horoscope/<period>) and sign pages
   (/horoscope/<period>/<sign>). Loaded after base.css + pages.css + sky.css. */


/* ── Hub: star of the period ─────────────────────────────────────────────── */
.as-star-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px;
  max-width: 820px; margin: 0 auto 34px; padding: 26px 30px; background: #fff; border-radius: 22px; text-decoration: none;
  color: var(--as-text); box-shadow: 0 18px 40px rgba(28, 39, 87, .16); border: 1px solid #f1e3c4; transition: transform .2s; }
.as-star-card:hover { transform: translateY(-3px); }
.as-star-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 6px 16px;
  border-radius: 30px; background: linear-gradient(#e2a63a, #c98a1e); color: #fff; font-size: 12.5px; font-weight: 600;
  box-shadow: 0 6px 14px rgba(201, 138, 30, .35); }
.as-star-art { display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #f0d79c, 0 10px 26px rgba(201, 138, 30, .3); }
.as-star-body { display: flex; flex-direction: column; gap: 6px; }
.as-star-body strong { font: 700 30px/1.1 var(--as-display); color: var(--as-ink); }
.as-star-meta { font-size: 13px; font-weight: 600; color: var(--as-gold); }
.as-star-text { font-size: 15px; line-height: 1.6; }

/* ── Hub: sign cards ─────────────────────────────────────────────────────── */
.as-hs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 16px 0 10px; }
.as-hs-grid-ad { grid-column: 1 / -1; }
.as-hs-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: 18px; text-decoration: none;
  color: var(--as-text); border: 1px solid var(--as-line); transition: transform .2s, box-shadow .2s; }
.as-hs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(28, 39, 87, .14); }
.as-hs-card-top { position: relative; display: grid; place-items: center; height: 118px; }
.as-hs-card-top .as-zimg { transition: transform .3s; }
.as-hs-card:hover .as-hs-card-top .as-zimg { transform: scale(1.08) rotate(-4deg); }
.as-hs-mood { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, .85); color: var(--as-ink); }
.as-hs-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.as-hs-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font: 700 19px var(--as-serif); color: var(--as-ink); }
.as-hs-name small { font: 400 11.5px var(--as-sans); color: var(--as-muted); white-space: nowrap; }
.as-hs-excerpt { font-size: 13.5px; line-height: 1.55; flex: 1; }
.as-hs-more { font-size: 13px; font-weight: 600; color: var(--as-gold); }

/* ── Sign page hero ──────────────────────────────────────────────────────── */
.as-sky-sign { text-align: left; padding: 40px 0 100px; }
.as-sky-sign-grid { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 44px; }
.as-sky-sign h1 { margin: 6px 0 12px; }
.as-sky-sign h1 span { display: block; font-size: .5em; font-weight: 600; color: #f3c160; letter-spacing: .5px; margin-top: 4px; }
.as-portrait { position: relative; width: 230px; height: 230px; }
.as-portrait-art { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .9), 0 0 0 8px #f0c060, 0 0 60px 10px rgba(243, 193, 96, .45); }
.as-portrait-orbit { position: absolute; inset: -22px; border-radius: 50%; border: 1.5px dashed rgba(243, 193, 96, .55);
  animation: as-orbit 40s linear infinite; }
.as-portrait-orbit::after { content: ''; position: absolute; top: 50%; left: -6px; width: 11px; height: 11px; border-radius: 50%;
  background: #f3c160; box-shadow: 0 0 12px 3px rgba(243, 193, 96, .8); }
@keyframes as-orbit { to { transform: rotate(360deg); } }
.as-sky-sign .as-sky-link { display: block; }

/* Previous / next sign */
.as-sign-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.as-sign-pager a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--as-line);
  border-radius: 16px; text-decoration: none; color: var(--as-ink); font: 700 17px var(--as-serif); transition: border-color .15s, transform .15s; }
.as-sign-pager a:hover { border-color: var(--as-gold); transform: translateY(-2px); }
.as-sign-pager a.is-next { justify-content: flex-end; text-align: right; }
.as-sign-pager small { display: block; font: 500 12px var(--as-sans); color: var(--as-muted); }

/* Other signs strip */
.as-sign-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.as-sign-strip a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px 4px 6px; border-radius: 30px;
  text-decoration: none; color: var(--as-ink); font-weight: 600; font-size: 13.5px; border: 1px solid rgba(0, 0, 0, .04); transition: transform .15s; }
.as-sign-strip a:hover { transform: translateY(-2px); }
.as-sign-strip .as-zimg-sm { width: 32px; height: 28px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .as-hs-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .as-hs-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .as-sky-sign-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 30px; }
  .as-sign-facts { justify-content: center; }
  .as-portrait { width: 180px; height: 180px; }
  .as-portrait-art .as-zimg-xl { width: 120px; height: 100px; }
  .as-star-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 30px 20px 22px; }
  .as-star-art { width: 112px; height: 112px; }
}
@media (max-width: 480px) {
  .as-hs-card-top { height: 96px; }
  .as-hs-card-top .as-zimg { width: 70px; height: 58px; }
  .as-hs-name { flex-direction: column; gap: 0; }
  .as-hs-excerpt { display: none; }
  .as-sign-pager a { font-size: 15px; padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .as-portrait-orbit { animation: none; }
}
