/* ═══════════════════════════════════════════════════
   wallpaper.css — Fondo de pantalla global con overlay
   Módulo: /components/wallpaper.css
   ═══════════════════════════════════════════════════ */

/* ── Capa de fondo fijo (parallax estático) ── */
.app-wallpaper {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

/* ── Overlay de legibilidad sobre el wallpaper ── */
.app-wallpaper::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

/* Dark mode overlay */
.dark .app-wallpaper::before {
  background: rgba(15, 23, 42, 0.9);
}

/* Light mode overlay — blanco cálido que aclara sin teñir */
:root:not(.dark) .app-wallpaper::before {
  background: rgba(255, 215, 83, 0.8);
}

/* ── Asegurar que el CONTENIDO quede sobre el overlay ──
   NOTA: NO usar `> *` porque pisaría position:fixed del header,
   menú mobile y modales. Solo aplicar a wrappers de contenido. */
.app-wallpaper-content {
  position: relative;
  z-index: 1;
}

/* ── Wallpaper Picker Thumbnail Grid ── */
.wp-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
}

.wp-picker-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 3px solid var(--c-slate-700);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.wp-picker-thumb:hover {
  border-color: var(--c-accent-yellow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neo-sm-dark);
}

.wp-picker-thumb--active {
  border-color: var(--c-accent-yellow) !important;
  box-shadow: 0 0 0 2px var(--c-accent-yellow), var(--shadow-neo-sm-dark);
}

.wp-picker-thumb--active::after {
  content: '✓';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: var(--c-accent-yellow);
  color: var(--c-slate-900);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border: 2px solid var(--c-slate-900);
}

/* ── Solid color fallback thumbnails ── */
.wp-picker-solid-light {
  background: #ffd753;
}

.wp-picker-solid-dark {
  background: var(--c-slate-900);
}

/* ── Picker animation ── */
@keyframes wp-picker-enter {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.wp-picker-panel {
  animation: wp-picker-enter 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
