/* Horoscopes Island (#daily-horoscopes)
 * Homepage horoscope grid only. Edit this file for island UI changes.
 * Sign pages (/baran) use global .hero/.zcard in assets/css/styles.css.
 */

#daily-horoscopes.home-section--horoscopes {
  padding-top: 0;
  padding-bottom: 0;
  border-top: none;
}

#daily-horoscopes .star-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
#daily-horoscopes .star {
  position: absolute;
  border-radius: 50%;
  background: #f0ede7;
  background: oklch(95% 0.01 82);
  animation: twinkle var(--dur, 4s) ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: var(--base-op, 0.4); transform: scale(1); }
  50%       { opacity: 0.08; transform: scale(0.6); }
}


#daily-horoscopes .app {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: clip;
}

/* ── Hero ─────────────────────────────────────────────────────── */
#daily-horoscopes .hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(60px, 8vw, 100px) clamp(24px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 520px;
}
@media (max-width: 860px) {
  #daily-horoscopes .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  #daily-horoscopes .hero-content { min-width: 0; }
  #daily-horoscopes .hero-visual { display: flex; justify-content: center; }
}
#daily-horoscopes .hero-eyebrow {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 20px;
}
#daily-horoscopes .hero-title {
  font-family: var(--font-h);
  font-size: clamp(26px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, var(--text) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
#daily-horoscopes .hero-week {
  font-family: var(--font-b);
  font-size: clamp(17px, 2.2vw, 22px);
  font-style: italic;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
#daily-horoscopes .hero-intro {
  color: var(--text-dim);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.9;
  font-weight: 400;
  font-style: italic;
  text-wrap: pretty;
}
@media (max-width: 860px) {
  #daily-horoscopes .hero-intro {
    max-width: 100%;
    font-size: clamp(12px, 4.2vw, 16px);
  }
}

/* ── Celestial Wheel ──────────────────────────────────────────── */
#daily-horoscopes .wheel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
#daily-horoscopes .wheel-svg {
  width: min(420px, 100%);
  height: auto;
  animation: slowSpin 120s linear infinite;
  filter: drop-shadow(0 0 40px rgba(200, 168, 76, 0.15));
  filter: drop-shadow(0 0 40px oklch(72% 0.14 78 / 0.15));
}
@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Emblem SVG ───────────────────────────────────────────────── */
#daily-horoscopes .emblem-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px var(--accent, oklch(72% 0.14 78)));
}

/* ── Bento grid ───────────────────────────────────────────────── */
#daily-horoscopes .grid-wrap {
  max-width: var(--max-w);
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px) 88px;
}
#daily-horoscopes .bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 16px;
}

/* ── Zodiac card ──────────────────────────────────────────────── */
#daily-horoscopes .zcard {
  background: rgba(32, 26, 52, 0.85);
  background: oklch(20% 0.07 272 / 0.85);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent, var(--gold-dim));
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
#daily-horoscopes .zcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(7, 5, 14, 0.6), 0 0 0 1px var(--accent, var(--gold-dim));
  box-shadow: 0 12px 48px oklch(5% 0.05 270 / 0.6), 0 0 0 1px var(--accent, var(--gold-dim));
  border-color: var(--accent, var(--gold-dim));
}
#daily-horoscopes .zcard-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 15% 50%, var(--accent, var(--gold)) 0%, transparent 65%);
  mix-blend-mode: screen;
  filter: blur(32px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

/* ── Emblem column ────────────────────────────────────────────── */
#daily-horoscopes .zcard-emblem {
  flex-shrink: 0;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px 24px 20px;
  background: rgba(32, 26, 52, 0.85);
  background: oklch(20% 0.07 272 / 0.85);
  border-right: 1px solid var(--border-soft);
}
#daily-horoscopes .zcard-emblem svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px var(--accent, oklch(72% 0.14 78)));
}
#daily-horoscopes .zcard-content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 860px) {
  #daily-horoscopes .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
  #daily-horoscopes .zcard {
    flex-direction: column;
    border-left: 1px solid var(--border-soft);
    border-top: 3px solid var(--accent, var(--gold-dim));
  }
  #daily-horoscopes .zcard-emblem {
    width: 100%;
    padding: 20px 24px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }
  #daily-horoscopes .zcard-emblem svg { width: 100px; }
  #daily-horoscopes .zcard-content {
    padding: 20px 20px 24px;
  }
  #daily-horoscopes .zcard-name {
    font-size: clamp(28px, 8vw, 43px);
  }
  #daily-horoscopes .zcard-text {
    font-size: clamp(15px, 4vw, 17px);
  }
}
#daily-horoscopes .zcard-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
#daily-horoscopes .zcard-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-h);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.meta-sep { opacity: 0.4; }
.meta-element { color: var(--accent, var(--gold-dim)); }
#daily-horoscopes .zcard-dates {
  font-family: var(--font-b);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-style: italic;
}
#daily-horoscopes .zcard-name {
  font-family: var(--font-h);
  font-size: var(--card-name-size, 43px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
  margin-bottom: 12px;
}
#daily-horoscopes .zcard-rule { margin-bottom: 14px; }
#daily-horoscopes .zcard-rule span {
  display: block;
  width: 32px;
  height: 2px;
  border-radius: 1px;
  opacity: 0.7;
}
#daily-horoscopes .zcard-text {
  font-family: var(--font-b);
  font-size: var(--card-text-size, 17px);
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.78;
  text-wrap: pretty;
}

/* ── Ad card ──────────────────────────────────────────────────── */
#daily-horoscopes .adcard {
  background: rgba(16, 14, 24, 0.7);
  background: oklch(11% 0.04 272 / 0.7);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  min-height: 160px;
  backdrop-filter: blur(8px);
}
#daily-horoscopes .adcard-label {
  font-family: var(--font-h);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
}
.adcard-icon { font-size: 24px; color: var(--text-muted); opacity: 0.3; }
.adcard-title { font-family: var(--font-b); font-size: 17px; color: var(--text-muted); font-style: italic; }
.adcard-sub { font-size: 13px; color: var(--text-muted); opacity: 0.45; font-family: monospace; }

/* ── Bookmark button ──────────────────────────────────────────── */
#daily-horoscopes .bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  background: oklch(100% 0 0 / 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 16px 15px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#daily-horoscopes .hero-content .bm-btn { margin-top: 16px; }
#daily-horoscopes .bm-btn:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
  background: oklch(100% 0 0 / 0.08);
  border-color: var(--gold-dim);
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #daily-horoscopes .wheel-svg { animation: none; }
  #daily-horoscopes .star { animation: none; }
  #daily-horoscopes .zcard { transition: none; }
  #daily-horoscopes .zcard:hover { transform: none; }
  #daily-horoscopes .zcard-glow { transition: none; }
}
