/* ==========================================
   --- ROTARY MOOD WHEEL & DRAWER STYLES ---
   ========================================== */

/* Full-Screen Drawer / View Container */
.mood-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  background: #fbf8f2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mood-drawer.open {
  right: 0;
}

/* Top-Left Atmospheric Glow */
.mood-ambient-glow {
  position: absolute;
  top: -120px;
  left: -120px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 208, 0, 0.35) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 1;
  transition: background 0.4s ease;
}

/* Navigation Header */
.mood-drawer-nav {
  position: relative;
  z-index: 10;
  padding: 24px 20px 8px 20px;
}



/* Focal Title / Subtitle */
.mood-focal-container {
  position: relative;
  z-index: 10;
  padding: 8px 24px;
}

.rotary-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-main);
}

.rotary-headline {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-main);
  transition: color 0.2s ease;
}

/* Rotary Viewport (Explicit Height to prevent collapse) */
.rotary-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 400px; /* Prevents flex squish */
  overflow: visible;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 5;
}

/* Red Indicator Arrow */
.focal-arrow-indicator {
  position: absolute;
  top: 5%;
  left: 40%;
  color: #ef4444;
  transform: rotate(44deg);
  z-index: 20;
  pointer-events: none;
}

/* Rotating Wheel Track (Anchored bottom-right) */
.rotary-wheel-track {
  position: absolute;
  width: 580px;
  height: 580px;
  left: 40%;
  border-radius: 50%;
  pointer-events: auto;
  cursor: grab;
  will-change: transform;
}

/* Change from the spring overshoot to a smooth ease-out */
.rotary-wheel-track.snapping {
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Neutral Grey Dial Ticks */
.wheel-tick {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  margin-top: -6px;
  background-color: #9ba1a9;
  transform-origin: center center;
  border-radius: 2px;
  pointer-events: none;
}

.wheel-tick.major {
  width: 3px;
  height: 20px;
  margin-left: -1.75px;
  margin-top: -11px;
  background-color: #9ba1a9;
}

/* Emoji Slot Styling */
.emoji-slot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  margin-left: -16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: width 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              height 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              margin 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
              filter 0.2s ease;
  pointer-events: none;
}

.emoji-slot svg {
  width: 100%;
  height: 100%;
}

/* Active Emoji Pop at Crosshair */
.emoji-slot.active {
  width: 74px;
  height: 74px;
  margin-top: -37px;
  margin-left: -37px;
  z-index: 15;
}

/* Footer Log Action */
.mood-footer-action {
  position: relative;
  z-index: 10;
  padding: 16px 24px 36px 24px;
}

.log-mood-btn {
  width: 100%;
  padding: 18px;
  border-radius: 24px;
  background: #1c1c1e;
  color: #ffffff;
  font-size: 18px;
  font-weight: 460;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.19);
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.log-mood-btn:active {
  transform: scale(0.96);
  background-color: #323232;
}
