﻿/* ==========================================================================
   assets/css/sensory-chamber.css
   Sensory Retreat & Breathing Sanctuary Modal
   ========================================================================== */

.sensory-chamber-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1rem;
}

.sensory-chamber-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: linear-gradient(165deg, #0d1527 0%, #070a13 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(56, 189, 248, 0.15);
  color: #f8fafc;
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: sensoryFadeIn 0.3s ease-out;
}

@keyframes sensoryFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.sensory-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.75rem;
}

.sensory-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.sensory-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sensory-close-btn:hover,
.sensory-close-btn:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid #38bdf8;
}

/* Breathing Orb Area */
.sensory-orb-stage {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.sensory-orb-ring {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(56, 189, 248, 0.25);
  border-radius: 50%;
  animation: orbRotate 30s linear infinite;
}

@keyframes orbRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.sensory-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #38bdf8 0%, #2563eb 55%, #1e1b4b 100%);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.4);
  transform-origin: center center;
  will-change: transform;
}

.sensory-orb.inhaling {
  background: radial-gradient(circle at 35% 35%, #67e8f9 0%, #0284c7 60%, #0c4a6e 100%);
  box-shadow: 0 0 70px rgba(103, 232, 249, 0.7);
}

.sensory-orb.holding {
  background: radial-gradient(circle at 35% 35%, #c084fc 0%, #7c3aed 60%, #3b0764 100%);
  box-shadow: 0 0 60px rgba(192, 132, 252, 0.6);
}

.sensory-orb.exhaling {
  background: radial-gradient(circle at 35% 35%, #34d399 0%, #059669 60%, #064e3b 100%);
  box-shadow: 0 0 50px rgba(52, 211, 153, 0.5);
}

/* Phase and instructions */
.sensory-phase-label {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  min-height: 2.25rem;
}

.sensory-instruction {
  font-size: 1.05rem;
  color: #cbd5e1;
  min-height: 2.75rem;
  line-height: 1.4;
  margin: 0;
  max-width: 420px;
}

.sensory-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sensory Controls Toolbar */
.sensory-controls-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sensory-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.sensory-select {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
}

.sensory-select:focus-visible {
  outline: 2px solid #38bdf8;
}
