@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
  transition: background 1s ease;
}

/* التدرجات اللونية للخلفية حسب الطقس والوقت */
body.sunny-hot {
  background: linear-gradient(to bottom, #ff9a9e 0%, #fecfef 99%, #feada6 100%);
}

body.day-cloudy {
  background: linear-gradient(to bottom, #cbe2ee 0%, #e6f3f8 100%);
}

body.night-cool {
  background: linear-gradient(to bottom, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

body.night-warm {
  background: linear-gradient(to bottom, #141e30 0%, #243b55 100%);
}

/* حاوية خلفية الغيوم */
.sky-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* رسم أشكال الغيوم الهندسية من Pure CSS */
.cloud {
  width: 200px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 200px;
  position: absolute;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
  animation: moveClouds linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  width: 100px;
  height: 100px;
  top: -50px;
  left: 25px;
  border-radius: 50%;
}

.cloud::after {
  width: 70px;
  height: 70px;
  top: -35px;
  left: auto;
  right: 25px;
}

/* توزيع حركات وتوقيتات الغيوم */
.cloud-1 {
  top: 8%;
  animation-duration: 35s;
  transform: scale(0.85);
}

.cloud-2 {
  top: 25%;
  animation-duration: 22s;
  animation-delay: -10s;
  transform: scale(0.6);
  opacity: 0.75;
}

.cloud-3 {
  top: 50%;
  animation-duration: 45s;
  animation-delay: -20s;
  transform: scale(1.1);
  opacity: 0.95;
}

.cloud-4 {
  top: 75%;
  animation-duration: 28s;
  animation-delay: -5s;
  transform: scale(0.5);
  opacity: 0.6;
}

@keyframes moveClouds {
  0% {
    left: -250px;
  }
  100% {
    left: 100vw;
  }
}

/* تصميم بطاقة الطقس الزجاجية Glassmorphism */
.weather-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  padding: 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
  color: #1e293b;
  z-index: 10;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  color: #0f172a;
  font-size: 14px;
}

.search-box button {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background: #1d4ed8;
}

#cityName {
  font-size: 26px;
  font-weight: 700;
}

#dateTime {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

.temp-box {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 20px 0;
}

#temperature {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
}

.unit {
  font-size: 22px;
  margin-top: 6px;
  font-weight: 600;
}

.details {
  background: rgba(255, 255, 255, 0.3);
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
