/* Clima Pastel App Styles */

.clima-pastel-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2d3748;
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 50%, #fffbeb 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.clima-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.clima-pastel-container h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #a8d8ea 0%, #c7ceea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: #718096;
  margin: 0 0 2rem;
}

/* Search Form */
.search-form {
  margin: 2rem 0;
}

.search-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.search-input:focus {
  outline: none;
  border-color: #a8d8ea;
  box-shadow: 0 0 0 3px rgba(168, 216, 234, 0.1);
}

.search-input::placeholder {
  color: #a0aec0;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #a8d8ea 0%, #7ec8e3 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(168, 216, 234, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 216, 234, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, #c7ceea 0%, #b8bfe8 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(199, 206, 234, 0.4);
}

.btn-secondary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(199, 206, 234, 0.6);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Error Message */
.error {
  background: rgba(255, 179, 186, 0.2);
  border: 1px solid #ffb3ba;
  border-radius: 10px;
  padding: 1rem;
  color: #c53030;
  margin: 1rem 0;
  text-align: center;
  font-weight: 500;
}

/* Loading */
.loading-container {
  text-align: center;
  padding: 3rem 1rem;
}

.spinner {
  border: 3px solid rgba(168, 216, 234, 0.1);
  border-top: 3px solid #a8d8ea;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container p {
  color: #718096;
  font-size: 1.125rem;
}

/* Weather Card */
.weather-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  border-left: 4px solid #a8d8ea;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.weather-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

.country {
  color: #a0aec0;
  font-size: 0.95rem;
  margin: 0;
}

.temperature-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-icon {
  font-size: 3rem;
}

.temperature {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #a8d8ea;
}

.feels-like {
  color: #718096;
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
}

/* Weather Details */
.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(168, 216, 234, 0.05) 0%, rgba(199, 206, 234, 0.05) 100%);
  border-radius: 10px;
}

.detail-icon {
  font-size: 1.5rem;
}

.detail-label {
  font-size: 0.85rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
}

.condition {
  text-align: center;
  font-size: 1.125rem;
  color: #718096;
  margin: 1rem 0 0;
  text-transform: capitalize;
}

/* Popular Cities */
.popular-cities {
  margin: 3rem 0;
}

.popular-cities h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.city-button {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #2d3748;
  font-family: 'Inter', sans-serif;
}

.city-button:hover {
  border-color: #a8d8ea;
  background: linear-gradient(135deg, rgba(168, 216, 234, 0.05) 0%, rgba(199, 206, 234, 0.05) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 216, 234, 0.2);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 2rem;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.empty-state h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #2d3748;
}

.empty-state p {
  color: #718096;
  margin: 0;
}

/* Footer */
.clima-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: #a0aec0;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
  margin-top: 3rem;
}

.clima-footer a {
  color: #a8d8ea;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.clima-footer a:hover {
  color: #7ec8e3;
  text-decoration: underline;
}

.clima-footer p {
  margin: 0.5rem 0;
}

/* Floating Shapes */
.floating-shape {
  position: fixed;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: #a8d8ea;
  border-radius: 50%;
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: #c7ceea;
  border-radius: 50%;
  top: 50%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: #ffe5b4;
  border-radius: 50%;
  bottom: 10%;
  left: 50%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .clima-pastel-container {
    padding: 1rem;
  }

  .clima-pastel-container h1 {
    font-size: 1.875rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .search-container {
    flex-direction: column;
  }

  .search-input,
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .weather-header {
    flex-direction: column;
    gap: 1rem;
  }

  .temperature-display {
    justify-content: flex-start;
  }

  .weather-details {
    grid-template-columns: repeat(2, 1fr);
  }

  .cities-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .clima-pastel-container h1 {
    font-size: 1.5rem;
  }

  .weather-card {
    padding: 1.5rem;
  }

  .weather-icon {
    font-size: 2rem;
  }

  .temperature {
    font-size: 2rem;
  }

  .weather-details {
    grid-template-columns: 1fr;
  }

  .cities-grid {
    grid-template-columns: 1fr;
  }
}
