/* CrisisHub — Global Styles */
*, *::before, *::after { box-sizing: border-box; }

/* Allow scroll on auth page */
html { overflow-y: auto; }
body { overflow-y: auto; margin: 0; }

/* Tailwind custom config via CDN */
:root {
  --wavestone: #451DC7;
  --wavestone-dark: #25106B;
}

/* Custom scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Toasts */
#toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem;
  pointer-events: none;
}
.toast {
  padding: 0.75rem 1.25rem; border-radius: 0.75rem;
  font-size: 0.875rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  pointer-events: auto;
  animation: slideInRight 0.3s ease forwards;
}
@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.fade-in { animation: fadeIn 0.25s ease forwards; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Gradient */
.wave-gradient { background: linear-gradient(135deg, #451DC7 0%, #25106B 100%); }

/* Progress bar */
.progress-bar { transition: width 0.5s ease; }

/* Status live pulse */
.status-live { animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Post card hover */
.post-card { transition: box-shadow 0.15s ease, transform 0.1s ease; }
.post-card:hover { box-shadow: 0 4px 15px rgba(69,29,199,0.1); transform: translateY(-1px); }

/* Injection row */
.injection-row { transition: box-shadow 0.15s ease; border-left-width: 4px; }
.injection-row:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06); }

/* Injection pill */
.injection-pill {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 2px 8px; border-radius: 9999px; font-size: 11px; font-weight: 600;
}

/* Modal overlay */
.modal-overlay { backdrop-filter: blur(4px); }
.modal-box { animation: modalIn 0.2s ease forwards; max-height: 90vh; overflow-y: auto; }
@keyframes modalIn {
  from { transform: scale(0.95) translateY(-10px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);     opacity: 1; }
}

/* Reply input hidden state */
.reply-box { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.reply-box.hidden { display: none; }

/* Platform tab active */
.platform-tab-active { border-bottom: 2px solid var(--wavestone); color: var(--wavestone); font-weight: 700; }
.platform-tab { border-bottom: 2px solid transparent; color: #6b7280; font-weight: 500; }

/* Filter bar */
.filter-chip {
  padding: 3px 10px; border-radius: 9999px; font-size: 11px; font-weight: 600;
  border: 1px solid #e5e7eb; cursor: pointer; transition: all 0.15s;
}
.filter-chip.active { background: var(--wavestone); color: white; border-color: var(--wavestone); }
.filter-chip:hover:not(.active) { border-color: var(--wavestone); color: var(--wavestone); }

/* Noise toggle */
.noise-toggle {
  position: relative; display: inline-flex; align-items: center;
  width: 44px; height: 24px; border-radius: 9999px; cursor: pointer;
  transition: background 0.2s;
}
.noise-toggle .thumb {
  position: absolute; width: 18px; height: 18px; border-radius: 50%;
  background: white; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.noise-toggle.on { background: var(--wavestone); }
.noise-toggle.off { background: #d1d5db; }
.noise-toggle.on .thumb  { transform: translateX(22px); }
.noise-toggle.off .thumb { transform: translateX(3px); }

/* Admin h-screen layout — ensure no outer scroll */
.admin-layout {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Player layout */
.player-layout {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
