/* Hindu festivals landing — interactive sacred calendar */

.hf-page {
  --hf-ink: var(--sp-ink, #1c1410);
  --hf-muted: var(--sp-muted, #5c534c);
  --hf-saffron: var(--sp-saffron, #b45309);
  --hf-deep: var(--sp-deep, #2a1c12);
  --hf-line: var(--sp-line, rgba(28, 20, 16, 0.12));
  --hf-display: var(--sp-display, Fraunces, Georgia, serif);
  --hf-body: var(--sp-body, Outfit, "Segoe UI", sans-serif);
}

.hf-wrap {
  max-width: 54rem;
}

.hf-count {
  margin: 0.85rem auto 0;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hf-saffron);
  font-weight: 600;
}

.hf-toolbar {
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.hf-search {
  position: relative;
}

.hf-search i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hf-muted);
}

.hf-search input {
  width: 100%;
  border: 1px solid var(--hf-line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.7rem 0.9rem 0.7rem 2.2rem;
  font: inherit;
  color: var(--hf-ink);
}

.hf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hf-tab {
  border: 1px solid var(--hf-line);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  color: var(--hf-muted);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hf-tab.is-active,
.hf-tab:hover {
  border-color: var(--hf-saffron);
  background: rgba(180, 83, 9, 0.1);
  color: var(--hf-saffron);
  font-weight: 600;
}

.hf-orbit {
  margin: 0 0 2rem;
  padding: 1.1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid rgba(180, 83, 9, 0.2);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(180, 83, 9, 0.1), transparent 55%),
    rgba(255, 252, 246, 0.9);
}

.hf-orbit-title {
  font-family: var(--hf-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--hf-deep);
}

.hf-orbit-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hf-orbit-chip {
  border: 1px solid rgba(180, 83, 9, 0.22);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  color: var(--hf-ink);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hf-orbit-chip.is-active,
.hf-orbit-chip:hover {
  background: rgba(180, 83, 9, 0.14);
  border-color: var(--hf-saffron);
  transform: translateY(-1px);
}

.hf-orbit-note {
  margin: 0.7rem 0 0;
  font-size: 0.88rem;
  color: var(--hf-muted);
}

.hf-category {
  margin: 0 0 2.4rem;
}

.hf-category.is-hidden {
  display: none;
}

.hf-category-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: start;
}

.hf-category-num {
  font-family: var(--hf-display);
  font-size: 1.1rem;
  color: var(--hf-saffron);
  font-weight: 700;
  margin: 0.15rem 0 0;
}

.hf-category-head h2 {
  font-family: var(--hf-display);
  font-size: 1.45rem;
  margin: 0 0 0.35rem;
  color: var(--hf-deep);
}

.hf-category-head p {
  margin: 0;
  color: var(--hf-muted);
  line-height: 1.55;
}

.hf-grid {
  display: grid;
  gap: 0.65rem;
}

.hf-card {
  border: 1px solid var(--hf-line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hf-card.is-open,
.hf-card.is-season {
  border-color: rgba(180, 83, 9, 0.4);
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.1);
}

.hf-card.is-dim {
  opacity: 0.28;
  pointer-events: none;
}

.hf-card-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.95rem 1rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.hf-glyph {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Noto Serif Devanagari", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--hf-saffron);
  background: rgba(180, 83, 9, 0.1);
  border: 1px solid rgba(180, 83, 9, 0.25);
}

.hf-card[data-theme="light"] .hf-glyph { color: #a16207; background: rgba(161, 98, 7, 0.12); }
.hf-card[data-theme="spring"] .hf-glyph { color: #9a3412; background: rgba(154, 52, 18, 0.12); }
.hf-card[data-theme="shiva"] .hf-glyph { color: #1e3a5f; background: rgba(30, 58, 95, 0.12); }
.hf-card[data-theme="shakti"] .hf-glyph { color: #9f1239; background: rgba(159, 18, 57, 0.12); }
.hf-card[data-theme="krishna"] .hf-glyph { color: #1d4ed8; background: rgba(29, 78, 216, 0.1); }
.hf-card[data-theme="ganesha"] .hf-glyph { color: #b45309; background: rgba(180, 83, 9, 0.12); }
.hf-card[data-theme="kumbh"] .hf-glyph { color: #0f766e; background: rgba(15, 118, 110, 0.12); }

.hf-card-title strong {
  display: block;
  font-family: var(--hf-display);
  font-size: 1.05rem;
  color: var(--hf-deep);
}

.hf-card-title em {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--hf-muted);
  margin-top: 0.15rem;
}

.hf-chevron {
  color: var(--hf-saffron);
  transition: transform 0.25s ease;
}

.hf-card.is-open .hf-chevron {
  transform: rotate(180deg);
}

.hf-card-body {
  padding: 0 1rem 1.1rem 1rem;
  border-top: 1px solid var(--hf-line);
  animation: hfFade 0.3s ease;
}

@keyframes hfFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.hf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.75rem;
}

.hf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 83, 9, 0.2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  color: var(--hf-ink);
}

.hf-chip i {
  color: var(--hf-saffron);
}

.hf-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hf-saffron);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hf-deity-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.hf-deity-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(61, 107, 79, 0.1);
  color: #3d6b4f;
  font-size: 0.82rem;
  font-weight: 500;
}

.hf-block h3 {
  font-family: var(--hf-display);
  font-size: 1rem;
  margin: 0 0 0.3rem;
  color: var(--hf-deep);
}

.hf-block p {
  margin: 0 0 0.75rem;
  color: var(--hf-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.hf-pooja-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--hf-saffron);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  margin-right: 1rem;
  margin-top: 0.35rem;
}

.hf-pooja-link:hover {
  text-decoration: underline;
}

.hf-empty {
  text-align: center;
  color: var(--hf-muted);
  padding: 1.5rem;
}

.hf-cta {
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hf-line);
}

.hf-cta h2 {
  font-family: var(--hf-display);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: var(--hf-deep);
}

.hf-cta > p {
  margin: 0 0 0.85rem;
  color: var(--hf-muted);
}

.hf-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hf-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 640px) {
  .hf-category-head {
    grid-template-columns: 1fr;
  }

  .hf-tab {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hf-reveal,
  .hf-card,
  .hf-orbit-chip,
  .hf-chevron,
  .hf-card-body {
    animation: none !important;
    transition: none !important;
  }

  .hf-reveal {
    opacity: 1;
    transform: none;
  }
}
