/* ============================================================
   BESTHORO Signs Widget — Light Theme CSS
   File: besthoro-signs.css
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────── */
.bh-widget {
  font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: #fff;
  padding: 0 1.5rem 1.5rem;   /* no top margin */
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

/* ── Header ──────────────────────────────────────── */
.bh-widget__header {
  text-align: center;
  margin-bottom: 1rem;
  padding-top: 1rem;
}
.bh-widget__title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  color: #333;
  letter-spacing: .01em;
  line-height: 1.2;
  margin: 0 0 4px;
  padding: 0;
  border: none;
}
.bh-widget__title svg { flex-shrink: 0; }
.bh-widget__sub {
  font-size: 14px;
  font-weight: 400;
  color: #666;
  margin-top: 4px;
}

/* ── Period buttons ───────────────────────────────── */
.bh-periods {
  display: flex;
  justify-content: center;
  gap: 16px;            /* wider gap on desktop */
  margin-bottom: 1rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bh-periods::-webkit-scrollbar { display: none; }

.bh-period {
  font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;     /* was 700, now normal */
  letter-spacing: .02em;
  padding: 8px 22px;
  border-radius: 30px;
  border: 1.5px solid #9c27b0;
  background: #fff;
  color: #9c27b0;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.bh-period:hover {
  background: #9c27b0;
  color: #fff;
}

/* ── Date-of-birth row ───────────────────────────── */
.bh-dob {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}
.bh-dob__row {
  display: flex;
  gap: 8px;
}
.bh-dob__select {
  font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;     /* was 700 */
  background: #fff;
  border: 1.5px solid #ddd;
  color: #444;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.bh-dob__select:focus { border-color: #9c27b0; }
.bh-dob__select option { background: #fff; color: #444; }

.bh-dob__btn {
  font-family: Montserrat, Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 9px 22px;
  border-radius: 8px;
  border: none;
  background: #9c27b0;
  color: #fff;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  text-transform: uppercase;
}
.bh-dob__btn:hover { background: #7b1fa2; }

/* ── Divider ─────────────────────────────────────── */
.bh-sep {
  height: 1px;
  background: #f0f0f0;
  margin: 0 0 1.2rem;
}

/* ── Signs grid ──────────────────────────────────── */
.bh-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.bh-sign {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.bh-circle {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .18s, box-shadow .18s;
  width: 72px;
  height: 72px;
}
.bh-sign:hover .bh-circle { transform: scale(1.08); }
.bh-sign.is-active .bh-circle {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #9c27b0;
}
.bh-sign__name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #444;
  text-align: center;
  line-height: 1.2;
}
.bh-sign__dates {
  font-size: 10px;
  font-weight: 400;
  color: #888;
  text-align: center;
  line-height: 1.3;
}
.bh-sign:hover .bh-sign__name { color: #9c27b0; }
.bh-sign.is-active .bh-sign__name { color: #9c27b0; }

/* ── Hint ────────────────────────────────────────── */
.bh-hint {
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: #999;
  margin-top: 1rem;
  min-height: 16px;
}

/* ── MOBILE  (≤ 600px) ───────────────────────────── */
@media (max-width: 600px) {
  .bh-widget { padding: 0 .75rem 1.25rem; }

  /* H1 — force single line */
  h1.bh-widget__title,
  .bh-widget__title {
    font-size: 20px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    gap: 6px !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
  }
  h1.bh-widget__title svg,
  .bh-widget__title svg {
    width: 16px !important;
    height: 16px !important;
  }

  .bh-widget__sub { font-size: 12px; }

  /* Period buttons — CSS grid, 4 equal columns, zero scroll */
  .bh-periods {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px !important;
    overflow: visible !important;
  }
  .bh-period {
    font-size: 10px !important;
    padding: 7px 2px !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-width: 0 !important;
  }

  .bh-dob {
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
  }
  .bh-dob__row { display: flex; gap: 6px; }
  .bh-dob__select { flex: 1; font-size: 13px; }
  .bh-dob__btn    { width: 100%; text-align: center; padding: 11px; }

  .bh-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .bh-circle { width: 58px; height: 58px; }
  .bh-sign__name  { font-size: 10px; }
  .bh-sign__dates { display: none; }
}

/* ── TINY  (≤ 380px) ─────────────────────────────── */
@media (max-width: 380px) {
  .bh-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .bh-circle { width: 52px; height: 52px; }
}
