/* --- АНИМАЦИЯ ФОНА "ЛАВОВАЯ ЛАМПА" --- */
@keyframes blob-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30vw, -40vh) scale(1.2);
  }
  66% {
    transform: translate(-20vw, 30vh) scale(0.8);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

.blob-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  background: #1a1a2e; /* Базовый темный фон для холодной погоды */
  transition: background 2s ease;
}

.blob {
  position: absolute;
  height: 35vmax;
  width: 35vmax;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.7; /* Немного увеличим непрозрачность для яркости */
  transition: background 2s ease;
}
.blob:nth-child(1) {
  top: -20%;
  left: -10%;
  animation: blob-move 25s infinite alternate;
}
.blob:nth-child(2) {
  top: 60%;
  left: 40%;
  animation: blob-move 30s infinite alternate-reverse;
}
.blob:nth-child(3) {
  top: 20%;
  left: 80%;
  animation: blob-move 20s infinite alternate;
}

/* --- ИЗМЕНЕНИЕ: Новые, более яркие и "солнечные" темы --- */

/* Жаркая погода: Яркий оранжевый фон с огненными и золотыми пятнами */
.bg-hot .blob-container {
  background: #f2994a; /* Яркий, солнечный оранжевый */
}
.bg-hot .blob {
  background: #ff4e50;
} /* Огненный красный */
.bg-hot .blob:nth-child(2) {
  background: #f9d423;
} /* Чистое золото */

/* Теплая погода: Золотой фон с желтыми и персиковыми пятнами */
.bg-warm .blob-container {
  background: #ff8c00; /* Глубокий золотой */
}
.bg-warm .blob {
  background: #ffd700;
} /* Солнечный желтый */
.bg-warm .blob:nth-child(2) {
  background: #ffab40;
} /* Мягкий персиковый */

/* Холодные темы остаются прежними */
.bg-cool .blob-container {
  background: #1a1a2e;
}
.bg-cool .blob {
  background: #00c6ff;
}
.bg-cool .blob:nth-child(2) {
  background: #0072ff;
}

.bg-cold .blob-container {
  background: #1a1a2e;
}
.bg-cold .blob {
  background: #485563;
}
.bg-cold .blob:nth-child(2) {
  background: #29323c;
}

.bg-default .blob-container {
  background: #1a1a2e;
}
.bg-default .blob {
  background: #6a85b6;
}
.bg-default .blob:nth-child(2) {
  background: #36d1dc;
}
/* ------------------------------------------- */

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Roboto", sans-serif;
  color: white;
  overflow: hidden;
}

.content {
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  height: 100vh;
  padding: 80px 20px 40px;
  box-sizing: border-box;
  text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.4);
}

.question {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
}

.answer-container {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.answer-container.visible {
  opacity: 1;
  transform: scale(1);
}

.answer {
  font-family: "League Spartan", sans-serif;
  font-weight: 700; /* Жирный */
  font-size: clamp(8rem, 32vw, 15rem);
  line-height: 0.9;
}

.weather-details {
  font-family: "League Spartan", sans-serif;
  font-weight: 400; /* Тонкий (обычный) */
  font-size: clamp(1.5rem, 5vw, 3rem); /* Немного уменьшаем для баланса */
  line-height: 1.2; /* Улучшаем интервал между строками */
  margin-top: 5px; /* Увеличиваем отступ сверху */
}

/* ... (остальной код остается без изменений) ... */
.search-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.suggestions-box {
  position: absolute;
  bottom: 110%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
  max-height: 250px;
  overflow-y: auto;
}
.suggestion-item {
  padding: 15px 20px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
  font-weight: 700;
}
.suggestion-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.suggestion-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.suggestion-error {
  padding: 15px 20px;
  text-align: center;
  font-style: italic;
  opacity: 0.8;
  pointer-events: none;
}
.search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.search-form input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 1.1rem;
  outline: none;
  font-family: "Roboto", sans-serif;
  color: white;
}
.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.icon-button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.2s ease;
}
.icon-button:hover {
  transform: scale(1.15);
}
.icon-button svg {
  width: 26px;
  height: 26px;
}
.info-button {
  position: fixed;
  top: 20px; /* Было bottom */
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-family: "League Spartan", sans-serif;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}
.info-button:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.4);
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 90%;
  max-width: 600px;
  position: relative;
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.6;
}
.modal-content h2 {
  font-family: "League Spartan", sans-serif;
  letter-spacing: 1px;
  margin-top: 0;
  color: white;
}
.modal-content p {
  margin-bottom: 1em;
}
.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.close-button:hover {
  opacity: 1;
}
@media (max-width: 768px) {
  .content {
    padding: 80px 20px 15px;
  }
}

.share-container {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
}

#share-tooltip {
  position: absolute;
  top: 100%; /* Было bottom */
  left: 0;
  transform: scale(0.8);
  background: white;
  color: #1a1a2e;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
#share-tooltip.visible {
  opacity: 1;
  transform: scale(1);
}
