/* ============================================================
   Weather Styles — Custom classes for weather templates
   Used by: weather/home.twig, weather/details.twig,
            public/partials/weather-widget.twig
   ============================================================ */

/* ---- Section Wrapper ---- */
.home-weather-section {
  scroll-margin-top: 5rem;
}

/* ---- Search Form ---- */
.weather-search-form {
  max-width: 100%;
}

/* ---- Weather Icon Wrapper ---- */
.weather-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---- Inline Spinner (replaces Tailwind's animate-spin for custom sizing) ---- */
.inline-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 3px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: weather-spin 0.75s linear infinite;
  vertical-align: middle;
}

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

/* ---- Alert Fade Animation ---- */
.fade {
  opacity: 0;
  transition: opacity 0.15s ease-in;
}

.fade.show {
  opacity: 1;
}

/* ---- Custom Alert Color Variants (not covered by Tailwind config) ---- */
.bg-amber-500-light {
  background-color: #fef3c7; /* amber-100 */
}

.text-amber-600-dark {
  color: #d97706; /* amber-600 */
}

/* ---- Custom Hover Shadow & Transition ---- */
.transition-shadow-md {
  transition: box-shadow 0.3s ease;
}

.hover\:shadow-md-md:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* ---- Weather Details Table ---- */
table.w-full thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}

table.w-full tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
}

table.w-full tbody tr:hover {
  background-color: #f8fafc;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
  .home-weather-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}
