/* ======================================================
   FEATURE EXTENSIONS & ENHANCEMENTS
   (Non-core UI only)
====================================================== */

/* =====================
   VOICE COMMAND UI
===================== */
.voice-command-btn {
  position: relative;
  transition: transform 0.2s ease;
}

.voice-command-btn.listening {
  background: var(--danger);
  animation: voice-pulse 1.4s infinite;
}

@keyframes voice-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.voice-status {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voice-status.show {
  opacity: 1;
}

/* =====================
   MOOD RECOMMENDATIONS
===================== */
.mood-recommendations-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.mood-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.mood-item {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
}

.mood-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.mood-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

/* =====================
   TIME MACHINE
===================== */
.time-machine-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.time-machine-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.historical-content {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

/* =====================
   TOAST NOTIFICATIONS
===================== */
.toast {
  visibility: hidden;
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-40px);
  min-width: 280px;
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { background: rgba(40,167,69,0.9); }
.toast.error { background: rgba(220,53,69,0.9); }
.toast.warning { background: rgba(255,193,7,0.95); color: #111; }
.toast.info { background: rgba(23,162,184,0.9); }

.toast-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  cursor: pointer;
}

/* =====================
   LOADING & ERROR STATES
===================== */
.loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.network-status {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(220,53,69,0.95);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  display: none;
  z-index: 9998;
}

.network-status.show {
  display: block;
}

/* =====================
   ACCESSIBILITY
===================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .mood-content {
    grid-template-columns: 1fr;
  }

  .toast {
    width: 90%;
  }
}
