/* ============================================================
   notifications-prefs.css v1 — Capteur Météo (Phase 2B)
   ============================================================
   Section "Notifications" du panneau Options.
   Préfixe .np-* pour ne pas entrer en collision avec .opt-*.
   ============================================================ */

.np-section {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  margin: 12px 0;
  font-family: 'Outfit', sans-serif;
  color: #fff;
}

.np-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f47920;
  margin-bottom: 12px;
}

.np-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}
.np-hint-error {
  color: #ff8b6b;
}

.np-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}

.np-row-activate {
  flex-direction: column;
  align-items: stretch;
}

.np-btn-activate {
  background: #f47920;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
  width: 100%;
}
.np-btn-activate:hover {
  background: #d96612;
}
.np-btn-activate:active {
  transform: scale(0.98);
}
.np-btn-activate:disabled {
  background: rgba(255,255,255,0.1);
  color: var(--text-dim);
  cursor: not-allowed;
}

.np-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.np-separator {
  height: 1px;
  background: var(--glass-border);
  margin: 14px 0 12px;
}

.np-daily-block.np-dim {
  opacity: 0.55;
  pointer-events: none;
}

.np-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}
.np-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.np-switch {
  position: relative;
  width: 38px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transition: background 0.2s;
  flex-shrink: 0;
}
.np-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.np-toggle input[type="checkbox"]:checked + .np-switch {
  background: #f47920;
}
.np-toggle input[type="checkbox"]:checked + .np-switch::after {
  transform: translateX(16px);
}
.np-toggle input[type="checkbox"]:disabled + .np-switch {
  opacity: 0.4;
}

.np-daily-details {
  margin-top: 14px;
  padding-left: 4px;
}

.np-sub-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 14px 0 6px;
}
.np-sub-label:first-child {
  margin-top: 0;
}

.np-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 7px 0;
  font-size: 14px;
  user-select: none;
}
.np-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #f47920;
  cursor: pointer;
}

.np-error {
  font-size: 12px;
  color: #ff8b6b;
  margin-top: 4px;
}

.np-city-wrap {
  position: relative;
  margin-top: 4px;
}

.np-city-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.np-city-input::placeholder {
  color: var(--text-dim);
}
.np-city-input:focus {
  outline: none;
  border-color: #f47920;
  background: rgba(255, 255, 255, 0.09);
}

.np-suggestions {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #1a2438;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
}

.np-sugg {
  padding: 9px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}
.np-sugg-active,
.np-sugg:hover {
  background: rgba(244, 121, 32, 0.16);
}

.np-sugg-main {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}
.np-sugg-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

@media (max-width: 480px) {
  .np-section {
    padding: 12px 14px;
  }
  .np-title {
    font-size: 12px;
  }
}
