/* Clima Pastel WordPress Plugin - Styles */

:root {
  --primary: #a8d8ea;
  --secondary: #c7ceea;
  --accent: #ffe5b4;
  --accent-orange: #ffcccb;
  --accent-red: #ffb3ba;
  --background: #ffffff;
  --foreground: #2d3748;
  --border: #e2e8f0;
  --radius: 10px;
}

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

/* Typography */
#clima-pastel-root h1,
#clima-pastel-root h2,
#clima-pastel-root h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin: 0;
}

#clima-pastel-root h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#clima-pastel-root h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

#clima-pastel-root h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

#clima-pastel-root p {
  margin: 0;
  line-height: 1.6;
}

/* Buttons */
#clima-pastel-root button {
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

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

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

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

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

/* Input */
#clima-pastel-root input {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

#clima-pastel-root input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 216, 234, 0.1);
}

#clima-pastel-root input::placeholder {
  color: #a0aec0;
}

/* Cards */
#clima-pastel-root .card {
  background: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

#clima-pastel-root .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Weather Card Colors */
#clima-pastel-root .card-blue {
  background: linear-gradient(135deg, rgba(168, 216, 234, 0.15) 0%, rgba(199, 206, 234, 0.1) 100%);
  border-left: 4px solid var(--primary);
}

#clima-pastel-root .card-green {
  background: linear-gradient(135deg, rgba(167, 243, 208, 0.15) 0%, rgba(167, 243, 208, 0.1) 100%);
  border-left: 4px solid #a7f3d0;
}

#clima-pastel-root .card-yellow {
  background: linear-gradient(135deg, rgba(255, 229, 180, 0.15) 0%, rgba(255, 229, 180, 0.1) 100%);
  border-left: 4px solid var(--accent);
}

#clima-pastel-root .card-orange {
  background: linear-gradient(135deg, rgba(255, 204, 203, 0.15) 0%, rgba(255, 204, 203, 0.1) 100%);
  border-left: 4px solid var(--accent-orange);
}

#clima-pastel-root .card-red {
  background: linear-gradient(135deg, rgba(255, 179, 186, 0.15) 0%, rgba(255, 179, 186, 0.1) 100%);
  border-left: 4px solid var(--accent-red);
}

/* Loading spinner */
#clima-pastel-root .spinner {
  border: 3px solid rgba(168, 216, 234, 0.1);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

/* Error message */
#clima-pastel-root .error {
  background: rgba(255, 179, 186, 0.2);
  border: 1px solid var(--accent-red);
  border-radius: var(--radius);
  padding: 1rem;
  color: #c53030;
  margin: 1rem 0;
}

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

  #clima-pastel-root h1 {
    font-size: 1.875rem;
  }

  #clima-pastel-root h2 {
    font-size: 1.5rem;
  }

  #clima-pastel-root button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

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

#clima-pastel-root .fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Floating shapes */
#clima-pastel-root .floating-shape {
  position: fixed;
  opacity: 0.05;
  pointer-events: none;
  z-index: -1;
}

#clima-pastel-root .shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  border-radius: 50%;
  top: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
}

#clima-pastel-root .shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  border-radius: 50%;
  top: 50%;
  right: 10%;
  animation: float 8s ease-in-out infinite reverse;
}

#clima-pastel-root .shape-3 {
  width: 150px;
  height: 150px;
  background: var(--accent);
  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);
  }
}
