/* ===== Variables ===== */
:root {
  --navy: #011936;
  --slate: #465362;
  --teal: #82A3A1;
  --sage: #9FC490;
  --mint: #C0DFA1;

  --text: #EAF4E4;
  --text-muted: #82A3A1;
  --error: #E07A7A;

  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(18px) saturate(160%);

  --radius: 14px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

/* ===== Background Orbs ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite alternate;
}

.orb--1 { width: 380px; height: 380px; background: var(--sage); top: -80px;    left: -100px; }
.orb--2 { width: 320px; height: 320px; background: var(--teal); top: 220px;    right: -120px; animation-delay: -6s; }
.orb--3 { width: 260px; height: 260px; background: var(--mint); bottom: -80px; left: 30%; animation-delay: -12s; opacity: 0.3; }

@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

/* ===== Layout ===== */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  color: var(--mint);
  margin-bottom: 0.3rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ===== Header ===== */
.header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}

.header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(110deg, var(--sage) 0%, var(--mint) 35%, #ffffff 50%, var(--mint) 65%, var(--sage) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    logoSwish 1.2s var(--smooth) both,
    logoShimmer 4s ease-in-out 1.2s infinite;
}

@keyframes logoSwish {
  0%   { opacity: 0; transform: translateY(-12px) scale(0.92); filter: blur(8px); letter-spacing: 10px; }
  100% { opacity: 1; transform: translateY(0) scale(1);        filter: blur(0);   letter-spacing: 1px; }
}

@keyframes logoShimmer {
  0%   { background-position: 100% 0; }
  50%  { background-position: 0% 0; }
  100% { background-position: 100% 0; }
}

.tagline {
  color: var(--teal);
  font-style: italic;
  font-size: 1.05rem;
}

.tagline__left,
.tagline__right {
  display: inline-block;
  opacity: 0;
}

.tagline__left  { animation: slideFromLeft  0.9s var(--smooth) 0.8s forwards; }
.tagline__right { animation: slideFromRight 0.9s var(--smooth) 0.8s forwards; }

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== Buttons & Inputs ===== */
.btn {
  background: var(--sage);
  color: var(--navy);
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--mint);
}

.city-form,
.search-form {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.city-form input,
.search-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1px solid var(--slate);
  border-radius: var(--radius);
  background: rgba(70, 83, 98, 0.4);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder {
  color: var(--text-muted);
}

/* ===== Liquid Glass Search Bars (city + explore) ===== */
.glass-form input,
.glass-search input {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 20px rgba(0, 0, 0, 0.25);
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
}

.glass-form input:focus,
.glass-search input:focus {
  border-color: rgba(192, 223, 161, 0.6);
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 0 4px rgba(159, 196, 144, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

/* City search flips up on page load */
.glass-form {
  transform-origin: center bottom;
  animation: flipUp 1s var(--smooth) 1.5s both;
}

@keyframes flipUp {
  0%   { opacity: 0; transform: perspective(700px) rotateX(-90deg) translateY(40px); }
  60%  { opacity: 1; transform: perspective(700px) rotateX(12deg)  translateY(-4px); }
  100% { opacity: 1; transform: perspective(700px) rotateX(0)      translateY(0); }
}

/* Explore search stretches open when scrolled into view */
.glass-search {
  opacity: 0;
}

.in-view .glass-search {
  animation: searchStretch 0.9s var(--smooth) 0.45s forwards;
}

@keyframes searchStretch {
  0%   { opacity: 0; scale: 0.4 1; filter: blur(10px); }
  100% { opacity: 1; scale: 1 1;   filter: blur(0); }
}

.btn--glass {
  background: rgba(159, 196, 144, 0.25);
  color: var(--mint);
  border: 1px solid rgba(192, 223, 161, 0.4);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--glass:hover {
  background: rgba(159, 196, 144, 0.45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 20px rgba(159, 196, 144, 0.45);
}

.btn--glass:active {
  transform: translateY(0) scale(0.97);
}

/* ===== Liquid Glass (shared) ===== */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.glass::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.glass:hover::after {
  animation: glassSweep 1s ease forwards;
}

@keyframes glassSweep {
  to { left: 130%; }
}

/* ===== Weather Card ===== */
.weather-card {
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  text-align: center;
  transition: transform 0.4s var(--smooth), box-shadow 0.4s;
  animation: cardRise 1s var(--smooth) 1.9s both;
}

.weather-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 20px 45px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(159, 196, 144, 0.15);
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.weather-card h2 {
  font-size: 1.5rem;
  color: var(--mint);
}

.weather-temp {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0.3rem 0;
}

.season-badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(159, 196, 144, 0.85);
  color: var(--navy);
  font-weight: 600;
}

/* ===== Mini Weather Scene ===== */
.weather-scene {
  position: relative;
  width: 200px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.weather-scene > * { display: none; }

.scene-clear .sun { display: block; }
.scene-cloudy .sun,
.scene-cloudy .cloud { display: block; }
.scene-rainy .cloud,
.scene-rainy .rain,
.scene-rainy .person { display: block; }
.scene-storm .cloud,
.scene-storm .rain,
.scene-storm .bolt,
.scene-storm .person { display: block; }
.scene-snow .cloud,
.scene-snow .snow { display: block; }
.scene-fog .fog,
.scene-fog .cloud--1 { display: block; }

.sun {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE58A 0%, #FFC94A 70%);
  box-shadow: 0 0 30px 10px rgba(255, 210, 90, 0.45);
  animation: sunPulse 3s ease-in-out infinite;
}

.scene-cloudy .sun {
  top: 18px;
  left: 35%;
}

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 25px 8px rgba(255, 210, 90, 0.4);  transform: scale(1); }
  50%      { box-shadow: 0 0 45px 16px rgba(255, 210, 90, 0.6); transform: scale(1.06); }
}

.cloud {
  position: absolute;
  width: 90px;
  height: 30px;
  background: #DDE7EC;
  border-radius: 30px;
  opacity: 0.95;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before { width: 40px; height: 40px; top: -20px; left: 14px; }
.cloud::after  { width: 50px; height: 50px; top: -28px; right: 12px; }

.cloud--1 {
  top: 50px;
  left: 20px;
  animation: cloudDrift 7s ease-in-out infinite alternate;
}

.cloud--2 {
  top: 34px;
  left: 95px;
  transform: scale(0.75);
  opacity: 0.8;
  animation: cloudDrift 9s ease-in-out infinite alternate-reverse;
}

.scene-rainy .cloud,
.scene-storm .cloud {
  background: #8E9BA6;
}

@keyframes cloudDrift {
  from { translate: -10px 0; }
  to   { translate: 14px 0; }
}

.rain span {
  position: absolute;
  top: -20px;
  left: calc(var(--i) * 8%);
  width: 2px;
  height: 14px;
  background: linear-gradient(transparent, #A9D6F5);
  border-radius: 2px;
  animation: rainFall 0.8s linear infinite;
  animation-delay: calc(var(--i) * -0.13s);
}

@keyframes rainFall {
  from { transform: translateY(60px);  opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: translateY(170px); opacity: 0.2; }
}

.bolt {
  position: absolute;
  top: 70px;
  left: 60%;
  width: 18px;
  height: 40px;
  background: #FFE58A;
  clip-path: polygon(40% 0, 100% 0, 60% 45%, 90% 45%, 20% 100%, 40% 55%, 10% 55%);
  opacity: 0;
  animation: boltFlash 3s infinite;
}

@keyframes boltFlash {
  0%, 88%, 100% { opacity: 0; }
  90%, 94%      { opacity: 1; }
  92%           { opacity: 0.3; }
}

.snow span {
  position: absolute;
  top: -10px;
  left: calc(var(--i) * 9%);
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  animation: snowFall 3s linear infinite;
  animation-delay: calc(var(--i) * -0.4s);
}

@keyframes snowFall {
  0%   { transform: translate(0, 60px);     opacity: 0; }
  20%  { opacity: 1; }
  50%  { transform: translate(8px, 110px); }
  100% { transform: translate(-6px, 170px); opacity: 0.3; }
}

.fog span {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 10px;
  border-radius: 10px;
  background: rgba(220, 230, 235, 0.45);
  animation: fogDrift 5s ease-in-out infinite alternate;
}

.fog span:nth-child(1) { top: 85px; }
.fog span:nth-child(2) { top: 105px; animation-delay: -2s; }
.fog span:nth-child(3) { top: 125px; animation-delay: -4s; }

@keyframes fogDrift {
  from { transform: translateX(-15px); }
  to   { transform: translateX(15px); }
}

.person {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 60px;
  height: 70px;
  margin-left: -30px;
  animation: personSway 2.5s ease-in-out infinite;
}

.umbrella {
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 30px;
  background: var(--sage);
  border-radius: 60px 60px 0 0;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}

.umbrella-handle {
  position: absolute;
  top: 28px;
  left: 29px;
  width: 2px;
  height: 22px;
  background: #DDE7EC;
}

.head {
  position: absolute;
  top: 34px;
  left: 17px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #F2D3B5;
}

.body {
  position: absolute;
  top: 47px;
  left: 14px;
  width: 18px;
  height: 22px;
  border-radius: 8px 8px 4px 4px;
  background: var(--teal);
}

@keyframes personSway {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}

/* ===== Today's Aura: Title ===== */
.aura-title {
  display: inline-block;
  font-size: 2.4rem;
  background: linear-gradient(90deg, var(--sage), var(--mint), #ffffff, var(--teal), var(--sage));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
}

.in-view .aura-title {
  animation:
    auraReveal 1.1s var(--smooth) forwards,
    auraFlow 6s linear 1.1s infinite,
    auraGlow 3s ease-in-out 1.1s infinite;
}

@keyframes auraReveal {
  0%   { opacity: 0; transform: scale(0.85); filter: blur(12px); letter-spacing: 14px; }
  100% { opacity: 1; transform: scale(1);    filter: blur(0);    letter-spacing: 0; }
}

@keyframes auraFlow {
  from { background-position: 0% 0; }
  to   { background-position: 300% 0; }
}

@keyframes auraGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(192, 223, 161, 0.25)); }
  50%      { filter: drop-shadow(0 0 22px rgba(192, 223, 161, 0.6)); }
}

/* ===== Letter-by-letter text (slides from left) ===== */
.split-text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
}

.in-view .split-text .letter {
  animation: letterIn 0.5s var(--smooth) forwards;
  animation-delay: calc(0.6s + var(--i) * 35ms);
}

@keyframes letterIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Explore: letters drop in from above ===== */
.split-text--drop {
  font-size: 2.4rem;
}

.split-text--drop .letter {
  transform: translateY(-50px) rotate(-12deg);
}

.in-view .split-text--drop .letter {
  animation: letterDrop 0.7s var(--spring) forwards;
  animation-delay: calc(var(--i) * 70ms);
}

@keyframes letterDrop {
  0%   { opacity: 0; transform: translateY(-50px) rotate(-12deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0); }
}

/* Each letter hops when you hover over it */
.split-text--drop .letter:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(192, 223, 161, 0.8);
}

/* ===== Filters (liquid glass pills) ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  color: var(--mint);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.35s var(--spring),
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* Pills pop in one by one when Explore is scrolled into view */
.explore .filter-btn {
  opacity: 0;
}

.in-view .filter-btn {
  animation: pillPop 0.6s var(--spring) forwards;
  animation-delay: calc(0.7s + var(--i) * 90ms);
}

@keyframes pillPop {
  0%   { opacity: 0; translate: 0 20px; scale: 0.6; }
  100% { opacity: 1; translate: 0 0;    scale: 1; }
}

/* Light sweep on hover */
.filter-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.filter-btn:hover::after {
  animation: glassSweep 0.7s ease forwards;
}

.filter-btn:hover {
  transform: translateY(-5px) scale(1.06);
  border-color: rgba(192, 223, 161, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(159, 196, 144, 0.45);
}

.filter-btn:active {
  transform: translateY(-1px) scale(0.96);
}

.filter-btn.active {
  background: rgba(159, 196, 144, 0.85);
  border-color: var(--sage);
  color: var(--navy);
  font-weight: 600;
  animation-name: pillPop, activeRing;
  animation-duration: 0.6s, 2.2s;
  animation-timing-function: var(--spring), ease-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards, none;
}

.explore:not(.in-view) .filter-btn.active {
  animation: none;
}

@keyframes activeRing {
  0%   { box-shadow: 0 0 0 0 rgba(159, 196, 144, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(159, 196, 144, 0); }
}

/* ===== Perfume Grid & Liquid Glass Cards ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
  padding-top: 2rem;
}

.card {
  position: relative;
  border-radius: 20px;
  padding: 1.4rem;
  cursor: pointer;
  overflow: hidden;

  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 10px 25px rgba(0, 0, 0, 0.3);

  transform: translateY(var(--lift, 0px)) scale(var(--scale, 1));
  transition:
    transform 0.55s var(--spring),
    box-shadow 0.4s ease,
    border-color 0.4s ease;

  animation: cardEnter 0.7s var(--smooth) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}

@keyframes cardEnter {
  from { opacity: 0; translate: 0 40px; }
  to   { opacity: 1; translate: 0 0; }
}

.card.is-peak {
  border-color: rgba(192, 223, 161, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 25px 45px rgba(0, 0, 0, 0.45),
    0 0 30px rgba(159, 196, 144, 0.35);
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.card.is-peak::after {
  animation: glassSweep 0.9s ease forwards;
}

.card__name {
  font-size: 1.15rem;
  color: var(--mint);
  margin-bottom: 0.2rem;
  padding-right: 2rem;
}

.card__house {
  color: var(--teal);
  font-size: 0.95rem;
}

.card__family {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--sage);
  color: var(--sage);
}

.fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--teal);
  cursor: pointer;
  transition: transform 0.3s var(--spring);
}

.fav-btn:hover {
  transform: scale(1.25);
}

.fav-btn.active {
  color: var(--error);
}

/* ===== Status States ===== */
.status {
  text-align: center;
  color: var(--text-muted);
}

.status:not(:empty) {
  padding: 1.5rem 0;
}

.status.error {
  color: var(--error);
}

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.6rem;
  border: 4px solid var(--slate);
  border-top-color: var(--sage);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Perfume Pop-up ===== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 25, 54, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn 0.3s ease both;
}

.modal__content {
  position: relative;
  border-radius: 24px;
  padding: 2.2rem;
  width: 90%;
  max-width: 540px;
  max-height: 85vh;
  overflow-y: auto;
  background: rgba(70, 83, 98, 0.45);
  animation: popIn 0.5s var(--spring) both;
}

.modal.closing .modal__content {
  animation: popOut 0.3s ease forwards;
}

.modal.closing .modal__overlay {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.6) translateY(30px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes popOut {
  to { opacity: 0; transform: scale(0.7) translateY(20px); }
}

@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  z-index: 2;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal__content h3 {
  color: var(--mint);
  font-size: 1.6rem;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.note {
  background: rgba(1, 25, 54, 0.6);
  color: var(--mint);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

/* ===== Weather Themes (added by JS to body) ===== */
body.theme-hot   { background: linear-gradient(180deg, #2a3a2a 0%, var(--navy) 60%); }
body.theme-cold  { background: linear-gradient(180deg, #0b2a4a 0%, var(--navy) 60%); }
body.theme-rainy { background: linear-gradient(180deg, #1c3a3a 0%, var(--navy) 60%); }
body.theme-mild  { background: linear-gradient(180deg, #23324a 0%, var(--navy) 60%); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .logo { font-size: 1.9rem; }
  .aura-title,
  .split-text--drop { font-size: 1.9rem; }

  .city-form,
  .search-form {
    flex-direction: column;
  }

  .weather-card {
    flex-direction: column;
    gap: 1.2rem;
  }

  .weather-temp { font-size: 2.6rem; }
  .section-title { font-size: 1.5rem; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .tagline__left,
  .tagline__right,
  .aura-title,
  .split-text .letter,
  .glass-search,
  .explore .filter-btn {
    opacity: 1;
    transform: none;
  }
}