/* ===========================
   HOROSCOPES PAGE STYLES
   =========================== */

.horoscopes-shell {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

/* match index.html H1 look */
.hero-page-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.horoscopes-title { margin: 0; }

/* ===========================
   TABS
   =========================== */
.horoscope-tabs {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 0.3rem;
  position: relative;
}
.horoscope-tabs .tab-pill {
  background: transparent;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(15, 59, 59, 0.5);
  cursor: pointer;
  padding: 0.25rem 0;
  position: relative;
}
.horoscope-tabs .tab-pill.is-active { color: var(--teal-dark); }
.horoscope-tabs .tab-pill.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.9rem;
  width: 100%;
  height: 3px;
  background: var(--teal-dark);
  border-radius: 999px;
}

/* ===========================
   SIGN BOARD
   =========================== */
.sign-board {
  background: rgba(151, 205, 202, 0.12);
  border-radius: 1.15rem;
  padding: 2.35rem 1.1rem 2.35rem;
  margin-top: 0;
}

/* 12 sign grid */
.sign-grid--horoscope {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}
.sign-grid--horoscope .sign-card {
  width: 100%;
  cursor: pointer;
}

/* Active state glow by element */
.sign-card.is-active {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}
.sign-card.fire.is-active {
  outline: 2px solid #c94a1a;
  box-shadow: 0 8px 22px rgba(201, 74, 26, 0.3);
}
.sign-card.earth.is-active {
  outline: 2px solid #5e7b5e;
  box-shadow: 0 8px 22px rgba(94, 123, 94, 0.3);
}
.sign-card.air.is-active {
  outline: 2px solid #6c5cb5;
  box-shadow: 0 8px 22px rgba(108, 92, 181, 0.3);
}
.sign-card.water.is-active {
  outline: 2px solid #2a7a88;
  box-shadow: 0 8px 22px rgba(42, 122, 136, 0.3);
}

/* ===========================
   HOROSCOPE PANEL
   =========================== */
.horoscope-panel {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  background: rgba(245, 243, 239, 0.98);
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 59, 59, 0.04);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.035);
  margin-top: 1.2rem;
  overflow: visible;
}

/* LEFT sticky column */
.horoscope-panel-left {
  position: sticky;
  top: 19rem;               /* adjust to clear your header */
  flex: 0 0 210px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-left: 3rem;        /* nudge away from card edge */
  z-index: 1;
}

/* zodiac artwork box */
.horoscope-panel-art {
  width: 100%;
  min-height: 320px;
  border-radius: 0.9rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(151,205,202,0.15);
  transition: opacity .25s ease; /* optional smooth swap */
}
.horoscope-panel-art.is-fading { opacity: 0; }

/* zodiac artwork bindings — one image per sign */
.horoscope-panel.is-aries .horoscope-panel-art { background-image: url("../images/horoscope-aries-side.jpg"); }
.horoscope-panel.is-taurus .horoscope-panel-art { background-image: url("../images/horoscope-taurus-side.jpg"); }
.horoscope-panel.is-gemini .horoscope-panel-art { background-image: url("../images/horoscope-gemini-side.jpg"); }
.horoscope-panel.is-cancer .horoscope-panel-art { background-image: url("../images/horoscope-cancer-side.jpg"); }
.horoscope-panel.is-leo .horoscope-panel-art { background-image: url("../images/horoscope-leo-side.jpg"); }
.horoscope-panel.is-virgo .horoscope-panel-art { background-image: url("../images/horoscope-virgo-side.jpg"); }
.horoscope-panel.is-libra .horoscope-panel-art { background-image: url("../images/horoscope-libra-side.jpg"); }
.horoscope-panel.is-scorpio .horoscope-panel-art { background-image: url("../images/horoscope-scorpio-side.jpg"); }
.horoscope-panel.is-sagittarius .horoscope-panel-art { background-image: url("../images/horoscope-sagittarius-side.jpg"); }
.horoscope-panel.is-capricorn .horoscope-panel-art { background-image: url("../images/horoscope-capricorn-side.jpg"); }
.horoscope-panel.is-aquarius .horoscope-panel-art { background-image: url("../images/horoscope-aquarius-side.jpg"); }
.horoscope-panel.is-pisces .horoscope-panel-art { background-image: url("../images/horoscope-pisces-side.jpg"); }

/* RIGHT content */
.horoscope-panel-body {
  flex: 1 1 auto;
  max-width: 720px;
  padding-left: 2.5rem;
  position: relative;
  z-index: 2;
}

.horoscope-panel-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 .4rem;
  line-height: 1.2;
}
.horoscope-date {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(15,59,59,.7);
}

/* faint teal divider */
.horoscope-divider {
  width: 100%;
  height: 1px;
  background: rgba(151, 205, 202, 0.4);
  margin: 0.8rem 0 0.6rem;
  border-radius: 1px;
}

/* content text */
.horoscope-content-inner {
  margin-top: 1.1rem;
  padding-right: 0.25rem;
}
.horoscope-content-inner h3 {
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  color: var(--teal-dark);
  letter-spacing: 0.01em;
}
.horoscope-content-inner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: #2f3434;
}

/* footer + button */
.horoscope-panel-footer {
  margin-top: 1.4rem;
  padding-top: 0;
  text-align: center;
  border-top: none;
}
.horoscope-foot-note {
  font-size: .78rem;
  color: rgba(15, 59, 59, 0.7);
  margin-bottom: .6rem;
}

/* tarot promo card under the horoscope art */
.horoscope-side-card {
  background: #f5f3ef;
  border: 1px solid rgba(151, 205, 202, 0.55);
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(15, 59, 59, 0.12);
  overflow: hidden;
  text-align: left;
  padding: 0 0.9rem 1rem; /* no top padding, image comes first */
}
.horoscope-side-card__img {
  display: block;
  width: calc(100% + 1.8rem);   /* stretch to ignore horizontal padding */
  margin: 0 -0.9rem 0.75rem;    /* touch left/right edges */
  height: auto;
  object-fit: cover;
  border-top-left-radius: 0.9rem;
  border-top-right-radius: 0.9rem;
}
.horoscope-side-card__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 0.3rem;
}
.horoscope-side-card__text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(15,59,59,0.85);
  margin: 0 0 0.6rem;
}
.horoscope-side-card__link {
  font-size: 0.9rem;
  font-weight: 900;
  color: #6d4869; /* plum accent */
  text-decoration: none;
}
.horoscope-side-card:hover {
  border-color: #97cdca;
  box-shadow:
    0 0 0 1px rgba(151,205,202,0.35),
    0 0 14px rgba(151,205,202,0.25),
    0 8px 22px rgba(15,59,59,0.08);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.horoscope-side-card:hover .horoscope-side-card__link { color: #b38aaf; }

/* ===========================
   RESPONSIVE
   =========================== */

/* ≤1100px: 4-across sign grid */
@media (max-width: 1100px) {
  .sign-grid--horoscope {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ≤900px: allow right column to fill width */
@media (max-width: 900px) {
  .horoscope-panel-body { max-width: 100%; }
}

/* ≤780px: mobile layout */
@media (max-width: 780px) {
  /* Tabs tighten */
  .horoscope-tabs { gap: 1.1rem; }

  /* Force TWO across on mobile */
  .sign-grid--horoscope {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Stack the panel */
  .horoscope-panel {
    flex-direction: column;
    padding: 1.1rem 1rem 1.2rem;
  }

  /* Left column becomes full width, below content */
  .horoscope-panel-left {
    display: block;
    position: static;
    top: auto;
    flex: none;
    width: 100%;
    margin-left: 0;
    margin-top: 1.25rem;
    order: 3;
  }

  /* Right/body first & full width */
  .horoscope-panel-body {
    order: 1;
    padding-left: 0;        /* remove desktop left padding on mobile */
    max-width: 100%;
  }

  /* Artwork full width */
  .horoscope-panel-art {
    display: block;
    width: 100%;
    min-height: 190px;
    border-radius: 0.9rem;
    background-size: cover;
    background-position: center;
  }

  /* Tarot card under the image */
  .horoscope-side-card {
    width: 100%;
    margin-top: 0.9rem;
  }

  /* Mobile glyph above title: content from JS data-glyph */
  .horoscope-panel-body::before {
    content: attr(data-glyph);
    display: block;
    text-align: center;
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.4rem;
    text-shadow: 0 0 3px rgba(0,0,0,0.04);
  }

  /* Glyph color by SIGN (element tones) */
  /* Fire */
  .horoscope-panel.is-aries .horoscope-panel-body::before,
  .horoscope-panel.is-leo .horoscope-panel-body::before,
  .horoscope-panel.is-sagittarius .horoscope-panel-body::before {
    color: #8b3418; /* warm rust */
  }
  /* Earth */
  .horoscope-panel.is-taurus .horoscope-panel-body::before,
  .horoscope-panel.is-virgo .horoscope-panel-body::before,
  .horoscope-panel.is-capricorn .horoscope-panel-body::before {
    color: #4a5f45; /* earthy green-brown */
  }
  /* Air */
  .horoscope-panel.is-gemini .horoscope-panel-body::before,
  .horoscope-panel.is-libra .horoscope-panel-body::before,
  .horoscope-panel.is-aquarius .horoscope-panel-body::before {
    color: #5b4d92; /* muted indigo/lilac */
  }
  /* Water */
  .horoscope-panel.is-cancer .horoscope-panel-body::before,
  .horoscope-panel.is-scorpio .horoscope-panel-body::before,
  .horoscope-panel.is-pisces .horoscope-panel-body::before {
    color: #275a63; /* deep teal-blue */
  }
}

@media (max-width: 780px) and (-webkit-min-device-pixel-ratio: 2) {
  .horoscope-panel-body::before {
    font-size: 4.8rem;
    /* optional: slight stroke for crisper glyphs on iOS */
    -webkit-text-stroke: 0.4px rgba(0,0,0,0.25);
  }
}

/* ===== MOBILE: center the title + date ===== */
@media (max-width: 780px) {
  .horoscope-panel-title,
  .horoscope-date {
    text-align: center;
    display: block;
    width: 100%;
  }
}


/* Make anchor jumps to the reading clear the sticky header */
#reading {
  scroll-margin-top: 110px;  /* adjust 90–130px to taste */
}
