/* ═══════════════════════════════════════════════════════════════════
   AURALIS · NoisePicker bottom sheet (Task Q)
   ───────────────────────────────────────────────────────────────────
   6 noise options + "Без фон". (i) per option opens InfoPanel inline.
   Same bottom-sheet pattern като Settings.
   ═══════════════════════════════════════════════════════════════════ */

.np-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8, 9, 13, 0.55);
  backdrop-filter: blur(2px);
  animation: npFadeIn 0.25s ease;
}
[data-theme="light"] .np-overlay,
:root:not([data-theme]) .np-overlay {
  background: rgba(60, 70, 100, 0.35);
}

.np-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  animation: npSlideUp 0.32s var(--ease-spring);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
[data-theme="light"] .np-sheet,
:root:not([data-theme]) .np-sheet {
  background: var(--bg-main);
  box-shadow: 0 -16px 40px rgba(60, 70, 100, 0.35);
}
[data-theme="dark"] .np-sheet {
  background:
    linear-gradient(180deg, hsl(220 25% 7%) 0%, hsl(220 25% 5%) 100%);
  border-top: 1px solid var(--border-color);
}

.np-sheet-grip {
  width: 40px;
  height: 4px;
  background: var(--text-faint);
  border-radius: 999px;
  margin: 10px auto 0;
  opacity: 0.5;
}

/* ═══ HEADER ═══ */
.np-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 8px;
  flex-shrink: 0;
}
.np-title {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.np-close {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-icon);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
}
[data-theme="light"] .np-close,
:root:not([data-theme]) .np-close {
  background: var(--surface);
  box-shadow: var(--shadow-card-sm);
}
[data-theme="dark"] .np-close {
  background: hsl(220 25% 8% / 0.7);
}
.np-close svg { width: 18px; height: 18px; }

/* ═══ OPTIONS LIST ═══ */
.np-list {
  list-style: none;
  padding: 4px 8px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.np-option {
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: background var(--dur) var(--ease);
}
.np-option.is-active {
  background: hsl(var(--hue1) 25% 35% / 0.1);
}
[data-theme="dark"] .np-option.is-active {
  background: hsl(var(--hue1) 30% 18% / 0.4);
}

.np-option-main {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.np-option-main:active { transform: scale(0.99); }

.np-option-label {
  flex: 1;
}

/* Custom radio button */
.np-radio {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-faint);
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.np-radio.is-active {
  border-color: hsl(var(--hue1) 70% 55%);
}
.np-radio-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--hue1) 70% 55%), hsl(var(--hue2) 65% 55%));
}

.np-option-info {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius-icon);
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin-right: 6px;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.np-option-info:hover,
.np-option-info:focus-visible {
  color: hsl(38 80% 55%);
  background: hsl(38 80% 50% / 0.1);
  outline: none;
}
.np-option-info svg { width: 18px; height: 18px; }

/* ═══ INFO SLOT (InfoPanel renders here) ═══ */
.np-info-slot {
  margin: 0 12px 12px;
  animation: npInfoIn 0.25s ease;
}
.np-info-fallback {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: hsl(38 35% 12% / 0.15);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* ═══ FOOTER ═══ */
.np-footer {
  flex-shrink: 0;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--border-color);
}
[data-theme="light"] .np-footer,
:root:not([data-theme]) .np-footer {
  border-top-color: hsl(220 18% 88%);
}
[data-theme="dark"] .np-footer {
  border-top-color: hsl(220 20% 14%);
}
.np-close-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, hsl(var(--hue1) 70% 55%), hsl(var(--hue2) 65% 55%));
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px hsl(var(--hue1) 60% 45% / 0.4),
    inset 0 1px 0 hsl(0 0% 100% / 0.2);
  transition: transform var(--dur-fast) var(--ease);
}
.np-close-btn:active { transform: scale(0.98); }

/* ═══ ANIMATIONS ═══ */
@keyframes npFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes npSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@keyframes npInfoIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .np-overlay, .np-sheet, .np-info-slot { animation: none; }
}
