/**
 * DaysAndDates.com - Hero Section & Bento Grid Styles
 * Linear / Apple / Stripe style ambient gradient mesh & glass bento
 */

.hero-section {
  position: relative;
  padding-top: clamp(2.5rem, 2rem + 2vw, 4.5rem);
  padding-bottom: clamp(3rem, 2.5rem + 2vw, 5rem);
  overflow: hidden;
}

/* Ambient Backdrop Glows - Infused with Logo Colors */
.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-negative);
  overflow: hidden;
}

.hero-mesh-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.65;
  will-change: transform;
}

.hero-mesh-glow-indigo {
  top: -10%;
  left: 10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.24) 0%, transparent 70%);
  animation: floatSlow 12s ease-in-out infinite alternate;
}

.hero-mesh-glow-gold {
  top: 15%;
  right: 8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.22) 0%, transparent 70%);
  animation: floatGentle 9s ease-in-out infinite alternate;
}

.hero-mesh-glow-coral {
  bottom: 5%;
  left: 25%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(232, 89, 66, 0.18) 0%, transparent 70%);
  animation: floatSlow 14s ease-in-out infinite alternate-reverse;
}

.hero-mesh-glow-cyan {
  bottom: 10%;
  right: 20%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, transparent 70%);
  animation: floatGentle 11s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-mesh-glow-indigo {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32) 0%, transparent 70%);
}

[data-theme="dark"] .hero-mesh-glow-gold {
  background: radial-gradient(circle, rgba(251, 191, 36, 0.26) 0%, transparent 70%);
}

[data-theme="dark"] .hero-mesh-glow-coral {
  background: radial-gradient(circle, rgba(251, 113, 133, 0.24) 0%, transparent 70%);
}

[data-theme="dark"] .hero-mesh-glow-cyan {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.20) 0%, transparent 70%);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

[data-theme="dark"] .hero-grid-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

/* Hero Showcase Split Layout (Editorial Left, Photographic Right) */
.hero-showcase-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 2.2vw, 3rem);
  align-items: stretch;
  margin-bottom: clamp(1.5rem, 2vw, 2.5rem);
}

@media (min-width: 992px) {
  .hero-showcase-row {
    grid-template-columns: minmax(0, 5.7fr) minmax(0, 4.3fr);
    gap: clamp(1.75rem, 2.2vw, 2.75rem);
    align-items: stretch;
  }
}

@media (min-width: 1200px) {
  .hero-showcase-row {
    grid-template-columns: minmax(0, 5.65fr) minmax(0, 4.35fr);
    gap: clamp(2rem, 2.5vw, 3.25rem);
  }
}

@media (min-width: 1440px) {
  .hero-showcase-row {
    grid-template-columns: minmax(0, 5.6fr) minmax(0, 4.4fr);
    gap: clamp(2.25rem, 2.8vw, 3.75rem);
  }
}

.hero-intro-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-editorial-title {
  margin-bottom: var(--space-3);
  letter-spacing: var(--ls-tight);
}

.hero-title-eyebrow {
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.hero-title-day {
  font-size: clamp(2.35rem, 1.6rem + 2.5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-title-date {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.hero-editorial-lead {
  font-size: clamp(0.95rem, 0.9rem + 0.15vw, 1.08rem);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 520px;
}

.hero-visual-col {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin-left: auto;
}

@media (min-width: 992px) {
  .hero-visual-col {
    width: 100%;
    min-width: 0;
    margin-left: auto;
  }
}

.hero-visual-col .hero-spotlight-card,
.hero-visual-col .hero-story-slider {
  flex: 1;
  width: 100%;
  height: 530px;
  min-height: 450px;
  max-height: 545px;
}

@media (max-width: 991.98px) {
  .hero-visual-col {
    max-width: 580px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual-col .hero-spotlight-card,
  .hero-visual-col .hero-story-slider {
    height: 490px;
    min-height: 470px;
    max-height: 510px;
  }
}

@media (max-width: 575.98px) {
  .hero-visual-col {
    max-width: 100%;
  }

  .hero-visual-col .hero-spotlight-card,
  .hero-visual-col .hero-story-slider {
    height: 470px;
    min-height: 450px;
    max-height: 495px;
  }
}

/* Secondary Hero Bento Deck (Moon Phase & Year Progress) */
.hero-bento-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 1.2vw, 1.75rem);
}

@media (min-width: 768px) {
  .hero-bento-subgrid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Eyebrow & Live Time Pill */
.hero-eyebrow-row {
  margin-bottom: var(--space-4);
}

.hero-date-ordinal {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--text-secondary);
}

.live-time-pill {
  box-shadow: var(--shadow-xs);
  padding: 0.45rem 1rem;
}

.live-clock-time {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-primary);
}

/* Spotlight Card Styles */
.hero-spotlight-card {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Photographic Hero Spotlight Card - Modern Editorial Flat Luxury */
.hero-spotlight-card.is-photo-mode {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl, 28px);
  color: #ffffff;
  padding: clamp(1.25rem, 1.6vw, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  isolation: isolate;
  box-shadow: 0 16px 44px -8px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(245, 158, 11, 0.16);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  transform: none !important;
}

.hero-spotlight-card.is-photo-mode:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 52px -8px rgba(0, 0, 0, 0.52), 0 0 24px rgba(245, 158, 11, 0.2);
  transform: none !important;
}

.hero-spotlight-card.is-photo-mode .hero-spotlight-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-spotlight-card.is-photo-mode .hero-spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-spotlight-card.is-photo-mode:hover .hero-spotlight-media img {
  transform: scale(1.05);
}

.hero-spotlight-card.is-photo-mode .hero-spotlight-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 18, 0.72) 0%,
    rgba(5, 8, 18, 0.58) 30%,
    rgba(5, 8, 18, 0.78) 60%,
    rgba(5, 8, 18, 0.96) 100%
  );
  transition: background 300ms ease;
}

.hero-spotlight-card.is-photo-mode:hover .hero-spotlight-shade {
  background: linear-gradient(
    180deg,
    rgba(5, 8, 18, 0.76) 0%,
    rgba(5, 8, 18, 0.64) 30%,
    rgba(5, 8, 18, 0.82) 60%,
    rgba(5, 8, 18, 0.97) 100%
  );
}

.hero-spotlight-card.is-photo-mode .spotlight-header,
.hero-spotlight-card.is-photo-mode .spotlight-body,
.hero-spotlight-card.is-photo-mode .spotlight-footer {
  position: relative;
  z-index: 2;
}

.hero-spotlight-card.is-photo-mode .spotlight-title {
    color: #ffffff;
    font-size: clamp(1.7rem, 2.2vw, 2.6rem);
    line-height: 1.16;
    margin-bottom: 0.45rem;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-spotlight-card.is-photo-mode .spotlight-desc {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  font-size: 0.9375rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-spotlight-card.is-photo-mode .spotlight-impact-callout {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  padding: 0.6rem 0.95rem;
  margin-bottom: 0.85rem;
}

.hero-spotlight-kicker {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.spotlight-title {
  font-size: clamp(1.4rem, 1.25rem + 0.8vw, 2rem);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.spotlight-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 1.25rem;
}

.spotlight-impact-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
}

.celebrated-in-tags {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.country-pill-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* Astronomy Card Styles */
.hero-astronomy-card {
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.moon-visual-wrapper {
  flex-shrink: 0;
}

.moon-svg {
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.25));
  transition: transform var(--transition-spring);
}

.hero-astronomy-card:hover .moon-svg {
  transform: rotate(5deg) scale(1.05);
}

.moon-meta-group {
  flex-grow: 1;
}

.moon-phase-name {
  color: var(--text-primary);
  line-height: 1.2;
}

.illumination-bar-wrapper {
  height: 6px;
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.illumination-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-celestial) 0%, var(--brand-cyan) 100%);
  border-radius: var(--radius-pill);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.solar-mini-stat {
  padding: 0.6rem 0.85rem;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* Metrics & Year Progress Card */
.hero-metrics-card {
  padding: clamp(1.25rem, 1rem + 0.8vw, 1.85rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-big-number {
  font-size: clamp(2.2rem, 1.8rem + 1.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
}

.metric-percent-symbol {
  font-size: 0.55em;
  color: var(--brand-primary);
  margin-left: 2px;
}

.progress-ring-wrapper {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-ring-fill {
  transition: stroke-dashoffset 1.2s var(--ease-spring);
}

.ring-center-icon {
  position: absolute;
  font-size: 1.4rem;
  color: var(--brand-primary);
}

.progress-bar-track {
  height: 5px;
  background: var(--surface-muted);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-pill);
}

/* Hero Quick Actions Bar */
.hero-quick-actions-bar {
  padding: 0.85rem 1.25rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}

.quick-chip-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.quick-chip-pill:hover {
  background: var(--surface-active);
  border-color: var(--brand-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--brand-primary-light);
}

/* Force hero image brightness down */
.hero-spotlight-card.is-photo-mode .hero-spotlight-media img {
    filter: brightness(0.45) !important;
    transition: filter 0.3s ease, transform 0.9s ease !important;
}

.hero-spotlight-card.is-photo-mode:hover .hero-spotlight-media img {
    filter: brightness(0.45) !important;
}
