/*
 * Kaal Chakra — Hindu Festivals & Vrats Page Styling
 * Harmonized with site palette: Neel, Majith, Haldi, Resist & Glassmorphism.
 */

:root {
  --fest-gold: #F4B21A;
  --fest-gold-dim: rgba(244, 178, 26, 0.18);
  --fest-gold-border: rgba(244, 178, 26, 0.35);
  --fest-dark-card: rgba(14, 22, 53, 0.78);
  --fest-card-border: rgba(255, 255, 255, 0.12);
  --fest-card-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

/* Page Container */
.fest-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 12%, rgba(43, 56, 112, 0.65) 0%, rgba(20, 28, 63, 0.95) 45%, #0d132b 100%), #141C3F;
  color: #ECEEF3;
  padding-bottom: 5rem;
  overflow-x: hidden;
}

/* Header Spacer */
.fest-header-spacer {
  height: 5.5rem;
}

/* Hero Section */
.fest-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
  text-align: center;
}

.fest-hero__deva {
  font-family: var(--f-display);
  font-size: 1.15rem;
  color: var(--fest-gold);
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(244, 178, 26, 0.4);
}

.fest-hero__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: #FFFFFF;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.fest-hero__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(236, 238, 243, 0.85);
  max-width: 820px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Search & Filter Toolbar */
.fest-toolbar {
  max-width: 1000px;
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.fest-toolbar {
  width: 100%;
  max-width: 760px;
  margin: 1.8rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fest-search-wrap {
  position: relative;
  width: 100%;
}

.fest-search-bar-unified {
  display: flex;
  align-items: center;
  background: rgba(14, 22, 53, 0.75);
  border: 1px solid var(--fest-gold-border);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
  overflow: hidden;
  height: 54px;
}

.fest-search-bar-unified:focus-within {
  border-color: var(--fest-gold);
  box-shadow: 0 0 0 3px rgba(244, 178, 26, 0.25), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.fest-search-type-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(244, 178, 26, 0.08);
  padding: 0 1rem 0 1.25rem;
  height: 100%;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.fest-search-type-wrapper:hover {
  background: rgba(244, 178, 26, 0.15);
}

.fest-search-type-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--fest-gold);
  font-family: var(--f-text);
  font-size: 0.96rem;
  font-weight: 600;
  padding-right: 1.4rem;
  cursor: pointer;
  outline: none;
  height: 100%;
}

.fest-search-type-select option {
  background: #0E1635;
  color: #FFFFFF;
  padding: 0.5rem;
}

.fest-search-type-chevron {
  position: absolute;
  right: 0.8rem;
  color: var(--fest-gold);
  pointer-events: none;
}

.fest-search-divider {
  width: 1px;
  height: 28px;
  background: rgba(244, 178, 26, 0.3);
  flex-shrink: 0;
}

.fest-search-field-container {
  flex: 1;
  position: relative;
  min-width: 0;
  height: 100%;
}

.fest-search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.fest-search-box .fest-search-input {
  width: 100%;
  height: 100%;
  padding: 0 3rem 0 3.2rem;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  color: #FFFFFF;
  font-family: var(--f-text);
  font-size: 1.02rem;
  outline: none;
}

.fest-search-box .fest-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fest-gold);
  pointer-events: none;
}

.fest-search-box .fest-search-clear {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  display: none;
  transition: color 0.2s ease;
}

.fest-search-box .fest-search-clear:hover {
  color: #FFFFFF;
}

/* Date picker input styling */
.fest-search-date-input {
  color-scheme: dark;
  cursor: pointer;
}

.fest-search-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(100%) saturate(400%) hue-rotate(5deg);
  cursor: pointer;
  margin-right: 0.4rem;
}

/* Responsive Search Bar */
@media (max-width: 640px) {
  .fest-search-bar-unified {
    height: 48px;
  }
  .fest-search-type-wrapper {
    padding: 0 0.6rem 0 0.8rem;
  }
  .fest-search-type-select {
    font-size: 0.86rem;
    padding-right: 1.2rem;
  }
  .fest-search-box .fest-search-input {
    font-size: 0.92rem;
    padding: 0 2.4rem 0 2.4rem;
  }
  .fest-search-box .fest-search-icon {
    left: 0.75rem;
    width: 16px;
    height: 16px;
  }
  .fest-search-box .fest-search-clear {
    right: 0.75rem;
  }
}

/* ================= FEATURED / TODAY'S FESTIVAL CARD ================= */
.fest-featured-wrap {
  max-width: 1100px;
  margin: 0 auto 3.5rem;
  padding: 0 1.2rem;
}

.fest-card--featured {
  background: linear-gradient(145deg, rgba(30, 42, 90, 0.65) 0%, rgba(14, 22, 53, 0.85) 100%);
  border: 2px solid var(--fest-gold);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(244, 178, 26, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
}

.fest-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #F4B21A, #D2664F, #F4B21A);
}

/* Featured Header */
.fest-featured__header {
  padding: 2.2rem 2.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(244, 178, 26, 0.08) 0%, transparent 100%);
}

.fest-featured__badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.fest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fest-badge--today {
  background: #A33A2C;
  color: #FFFFFF;
  box-shadow: 0 0 12px rgba(163, 58, 44, 0.4);
  animation: pulse-badge 2s infinite ease-in-out;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

.fest-badge--tithi {
  background: rgba(244, 178, 26, 0.15);
  color: var(--fest-gold);
  border: 1px solid var(--fest-gold-border);
}

.fest-featured__date {
  font-size: 1.15rem;
  color: var(--fest-gold);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.fest-featured__name {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
  color: #FFFFFF;
  margin-bottom: 0.6rem;
  font-family: var(--f-display);
  line-height: 1.2;
}

.fest-name-prefix {
  font-weight: 600;
}

.fest-name-prefix--today {
  color: var(--fest-gold);
}

.fest-name-prefix--upcoming {
  color: #F4B21A;
}

.fest-name-prefix--past {
  color: rgba(236, 238, 243, 0.7);
}

.fest-switch-today-wrap {
  margin-top: 1rem;
}

.fest-switch-today-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(163, 58, 44, 0.4) 0%, rgba(210, 102, 79, 0.25) 100%);
  border: 1px solid rgba(244, 178, 26, 0.5);
  color: #FFFFFF;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-family: var(--f-text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fest-switch-today-btn:hover {
  background: linear-gradient(135deg, rgba(163, 58, 44, 0.6) 0%, rgba(210, 102, 79, 0.45) 100%);
  border-color: var(--fest-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 178, 26, 0.2);
}

.fest-featured__deity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(236, 238, 243, 0.85);
  font-size: 1.05rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Featured Body */
.fest-featured__body {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Intro Paragraph */
.fest-section-intro {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.2);
  padding: 1.4rem 1.6rem;
  border-radius: 12px;
  border-left: 4px solid var(--fest-gold);
}

/* Section Subheadings */
.fest-subheading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.35rem;
  color: var(--fest-gold);
  margin-bottom: 1.2rem;
  font-family: var(--f-display);
  border-bottom: 1px solid rgba(244, 178, 26, 0.25);
  padding-bottom: 0.5rem;
}

.fest-subheading svg {
  color: var(--fest-gold);
  flex-shrink: 0;
}

/* ================= SHUBH MUHURAT TIMINGS BOX ================= */
.fest-muhurat-box {
  background: rgba(14, 22, 53, 0.65);
  border: 1px solid var(--fest-gold-border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.25);
}

.fest-muhurat-lead {
  font-size: 1rem;
  color: rgba(236, 238, 243, 0.85);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.fest-muhurat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.fest-muhurat-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.fest-muhurat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(244, 178, 26, 0.4);
}

.fest-muhurat-item--highlight {
  background: linear-gradient(145deg, rgba(244, 178, 26, 0.15) 0%, rgba(217, 164, 65, 0.05) 100%);
  border-color: var(--fest-gold);
}

.fest-muhurat-label {
  font-size: 0.88rem;
  color: var(--fest-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fest-muhurat-time {
  font-size: 1.05rem;
  color: #FFFFFF;
  font-weight: 500;
}

/* ================= SPIRITUAL SIGNIFICANCE ================= */
.fest-significance-box {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  border-left: 4px solid #D2664F;
  font-size: 1.08rem;
  line-height: 1.75;
  color: rgba(236, 238, 243, 0.95);
}

/* ================= IMPACT ON ONE'S LIFE ================= */
.fest-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.fest-impact-card {
  background: rgba(14, 22, 53, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fest-impact-card:hover {
  transform: translateY(-3px);
  border-color: var(--fest-gold);
}

.fest-impact-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fest-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fest-impact-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(236, 238, 243, 0.88);
}

/* ================= HOW TO CELEBRATE ACCORDING TO SCRIPTURES ================= */
.fest-scriptures-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(236, 238, 243, 0.88);
  margin-bottom: 1.4rem;
}

.fest-steps-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fest-step-item {
  display: flex;
  gap: 1.2rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.3rem;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.fest-step-item:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(244, 178, 26, 0.35);
}

.fest-step-num {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #F4B21A, #D2664F);
  color: #141C3F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(244, 178, 26, 0.3);
}

.fest-step-content {
  flex: 1;
}

.fest-step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 0.4rem;
}

.fest-step-detail {
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(236, 238, 243, 0.88);
}

/* ================= MANTRA BOX ================= */
.fest-mantra-box {
  background: radial-gradient(circle at center, rgba(244, 178, 26, 0.12) 0%, rgba(14, 22, 53, 0.6) 100%);
  border: 1px dashed var(--fest-gold);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  text-align: center;
}

.fest-mantra-sanskrit {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--fest-gold);
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.fest-mantra-meaning {
  font-size: 0.95rem;
  color: rgba(236, 238, 243, 0.85);
  font-style: italic;
  line-height: 1.5;
}

/* ================= UPCOMING FESTIVALS SECTION ================= */
.fest-upcoming-section {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.fest-upcoming-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.fest-upcoming-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #FFFFFF;
  font-family: var(--f-display);
}

.fest-upcoming-count {
  font-size: 0.95rem;
  color: var(--fest-gold);
  background: rgba(244, 178, 26, 0.12);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  border: 1px solid var(--fest-gold-border);
}

/* Upcoming Grid */
.fest-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.fest-card {
  background: rgba(14, 22, 53, 0.72);
  border: 1px solid var(--fest-card-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  box-shadow: var(--fest-card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.fest-card:hover {
  transform: translateY(-4px);
  border-color: var(--fest-gold);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 16px rgba(244, 178, 26, 0.15);
}

.fest-card.is-selected {
  border-color: var(--fest-gold);
  box-shadow: 0 0 0 2px var(--fest-gold), 0 16px 36px rgba(0, 0, 0, 0.4);
}

.fest-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.fest-card__date {
  font-size: 0.92rem;
  color: var(--fest-gold);
  font-weight: 600;
}

.fest-card__days-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #ECEEF3;
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-weight: 500;
}

.fest-card__title {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin: 0.3rem 0;
  font-family: var(--f-display);
  line-height: 1.25;
}

.fest-card__tithi {
  font-size: 0.88rem;
  color: rgba(236, 238, 243, 0.7);
  margin-bottom: 0.6rem;
}

.fest-card__desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(236, 238, 243, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fest-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fest-card__deity {
  font-size: 0.82rem;
  color: rgba(244, 178, 26, 0.9);
}

.fest-card__action-btn {
  background: transparent;
  border: 1px solid var(--fest-gold-border);
  color: var(--fest-gold);
  font-family: var(--f-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.fest-card:hover .fest-card__action-btn {
  background: var(--fest-gold);
  color: #141C3F;
}

/* Empty State */
.fest-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* City Indicator Bar */
.fest-city-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: rgba(236, 238, 243, 0.75);
  margin-bottom: 1.5rem;
}

.fest-city-bar strong {
  color: var(--fest-gold);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fest-featured__header {
    padding: 1.5rem;
  }
  .fest-featured__body {
    padding: 1.5rem;
    gap: 1.8rem;
  }
  .fest-muhurat-grid {
    grid-template-columns: 1fr;
  }
  .fest-impact-grid {
    grid-template-columns: 1fr;
  }
  .fest-step-item {
    gap: 0.8rem;
    padding: 1rem;
  }
}

