/* ==========================================================================
   Withy Seasons Interactive Experience Stylesheet
   ========================================================================== */

.seasons-band {
  position: relative !important;
  overflow: hidden !important;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 670px;
  padding-block: clamp(72px, 9vw, 112px);
  display: flex;
  align-items: center;
}

/* Ensure content sits cleanly above background and canvas */
.seasons-band .wrap {
  position: relative;
  z-index: 5;
  width: 100%;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.seasons-band .sec-head,
.seasons-band .seasons-grid,
.seasons-band .season-controls-bar {
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Showcase mode (dims UI so user can view & play with the full scene unobstructed) */
.seasons-band.is-showcase .sec-head,
.seasons-band.is-showcase .seasons-grid {
  opacity: 0.06;
  transform: scale(0.98);
  pointer-events: none;
}

.seasons-band .sec-head .eyebrow,
.seasons-band .sec-head .h1,
.seasons-band .sec-head .lead {
  transition: color 0.6s ease, text-shadow 0.6s ease;
}

/* Dynamic High-Contrast Typography per Season Sky */
.seasons-band[data-active-season="autumn"] .sec-head .eyebrow {
  color: #B83B14;
}
.seasons-band[data-active-season="autumn"] .sec-head .h1 {
  color: #35120A;
  text-shadow: 0 2px 14px rgba(251, 228, 166, 0.9);
}
.seasons-band[data-active-season="autumn"] .sec-head .lead {
  color: #4A1E0E;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(251, 228, 166, 0.95);
}

.seasons-band[data-active-season="spring"] .sec-head .eyebrow {
  color: #1F6B35;
}
.seasons-band[data-active-season="spring"] .sec-head .h1 {
  color: #103A24;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.85);
}
.seasons-band[data-active-season="spring"] .sec-head .lead {
  color: #1B4B32;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.9);
}

.seasons-band[data-active-season="winter"] .sec-head .h1,
.seasons-band[data-active-season="ramadan"] .sec-head .h1,
.seasons-band[data-active-season="halloween"] .sec-head .h1 {
  color: #FFF7F0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.seasons-band[data-active-season="winter"] .sec-head .lead,
.seasons-band[data-active-season="ramadan"] .sec-head .lead,
.seasons-band[data-active-season="halloween"] .sec-head .lead {
  color: rgba(255, 247, 240, 0.9);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

/* Background Scenic Stage */
.seasons-backdrop-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}

.season-scenery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.season-scenery.is-active {
  opacity: 1;
  transform: scale(1);
}

.season-scenery img,
.season-scenery svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center bottom;
}

/* Interactive Falling & Accumulation Canvas */
#seasons-interactive-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
  cursor: grab;
}

#seasons-interactive-canvas:active {
  cursor: grabbing;
}

/* Season Cards Styling Enhancements */
.seasons-grid {
  margin-top: 24px;
}

.season-card {
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              background 0.35s ease;
  user-select: none;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(160deg, color-mix(in srgb, var(--s-bg) 78%, #000000 22%), rgba(16, 20, 32, 0.82)) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.season-card:hover {
  transform: translateY(-6px);
  border-color: var(--s-accent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px color-mix(in srgb, var(--s-accent) 38%, transparent);
}

.season-card.is-active {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--s-accent) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65), 0 0 28px color-mix(in srgb, var(--s-accent) 65%, transparent) !important;
}

.season-card .season-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 4px;
}

.season-card .season-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--s-accent);
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.season-card:hover .season-preview-btn,
.season-card.is-active .season-preview-btn {
  opacity: 1;
  transform: translateX(3px);
}

[dir="rtl"] .season-card:hover .season-preview-btn,
[dir="rtl"] .season-card.is-active .season-preview-btn {
  transform: translateX(-3px);
}

/* Controls & Interactive Hint Bar */
.season-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.season-interactive-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(12, 16, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: hintPulse 3s ease-in-out infinite;
}

.season-interactive-hint span {
  font-size: 0.84rem;
  font-weight: 500;
  color: #fff4e6;
}

.season-interactive-hint .sparkle-icon {
  display: inline-block;
  animation: sparkleTwirl 2.4s ease-in-out infinite;
}

.season-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  background: rgba(18, 24, 38, 0.8);
  border: 1px solid rgba(232, 189, 114, 0.4);
  border-radius: 999px;
  color: #FFE4A8;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.season-showcase-btn:hover {
  transform: translateY(-2px);
  background: rgba(30, 38, 58, 0.92);
  border-color: #E8BD72;
}

.season-showcase-btn[aria-pressed="true"] {
  background: #E8BD72;
  color: #1A1014;
  border-color: #FFF4D4;
}

@keyframes hintPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 rgba(232, 189, 114, 0); }
  50% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 16px rgba(232, 189, 114, 0.25); border-color: rgba(232, 189, 114, 0.35); }
}

@keyframes sparkleTwirl {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.2) rotate(15deg); }
}
