/**
 * FILE: css/meteonav_pressure.css
 * VERSION: v1.1.0
 * DATE: 2025-12-26
 * TIME: 13:30 (Europe/Athens)
 * STATUS: STABLE
 * SOURCE OF TRUTH: THIS FILE
 */

/**
 * MeteoNav Pressure Isobars Styles
 * Module: Pressure Labels Styling
 * Version: v1.0.0
 * Date: 2025-12-26
 * Time: 12:15 (Europe/Athens)
 * Author: Alex Moustris
 * Description: Halo CSS for pressure isobar labels - readable on all basemaps
 * Changes:
 *   - Initial halo implementation for pressure labels
 *   - Reduced default font-size for zoom-based dynamic sizing
 * Status: STABLE
 */

/* Pressure isobar labels with halo effect for readability on all basemaps */
.pressure-label {
  font: 700 10px/10px system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: rgba(0,0,0,0.85);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  text-shadow:
    0 0 3px rgba(255,255,255,0.95),
    0 0 3px rgba(255,255,255,0.95),
    0 0 1px rgba(0,0,0,0.9),
    0 0 1px rgba(0,0,0,0.9);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────
   MeteoNav Toast Notification
   Non-blocking, auto-dismissing message for data errors
   ───────────────────────────────────────────────────── */
.meteonav-toast {
  position: fixed;
  bottom: 80px;              /* Above the time panel */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(30, 30, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 180, 50, 0.35);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  max-width: 90vw;
}

.meteonav-toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.meteonav-toast--exit {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.meteonav-toast__icon {
  font-size: 18px;
  flex-shrink: 0;
}

.meteonav-toast__msg {
  font: 500 13px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

/* Warning-specific accent */
.meteonav-toast--warning {
  border-color: rgba(255, 170, 40, 0.45);
}

/* Mobile: allow wrapping on narrow screens */
@media (max-width: 480px) {
  .meteonav-toast {
    bottom: 70px;
    padding: 10px 16px;
  }
  .meteonav-toast__msg {
    font-size: 12px;
    white-space: normal;
  }
}
