/* OWEL Discover Hub & Pulse Verse Styles — Scoped Clean 420px Mobile Layout */

.discover-shell {
  width: 100%;
  min-height: 100vh;
  padding: 16px 16px 90px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.discover-top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.brand-header-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  user-select: none;
}

body.light-mode .brand-header-title {
  color: #1e1b4b !important;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  background: #09090e;
  border: 1px solid #1c1c28;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: #888899;
}

.search-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

body.light-mode .search-input {
  background: #ffffff !important;
  border-color: #ddd6fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.06);
}

body.light-mode .search-input::placeholder {
  color: #64748b !important;
}

.search-icon-svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  stroke: #888899;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

body.light-mode .search-icon-svg {
  stroke: #64748b !important;
}

.join-hands-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #1c1c28;
  background: #09090e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  user-select: none;
}

.join-hands-btn:hover {
  transform: scale(1.05);
  border-color: #8b5cf6;
}

body.light-mode .join-hands-btn {
  background: #ffffff !important;
  border-color: #ddd6fe !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.08);
}

.verse-categories-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.verse-categories-bar::-webkit-scrollbar {
  display: none;
}

.verse-category-pill {
  padding: 8px 14px;
  background: #09090e;
  border: 1px solid #1c1c28;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  user-select: none;
}

body.light-mode .verse-category-pill {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  color: #64748b !important;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.05);
}

.verse-category-pill.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: #8b5cf6;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

body.light-mode .verse-category-pill.active {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  color: #5b21b6 !important;
  box-shadow: 0 2px 12px rgba(124, 58, 237, 0.15);
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #ef4444;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.build-btn-container {
  margin-bottom: 16px;
  width: 100%;
}

.build-btn {
  width: 100%;
  height: 46px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  border: none;
  border-radius: 14px;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
}

.build-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
}

body.light-mode .build-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%) !important;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.verse-workspace {
  background: #09090e;
  border: 1px dashed #1c1c28;
  border-radius: 18px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  min-height: 40vh;
}

body.light-mode .verse-workspace {
  background: #ffffff !important;
  border-color: #c4b5fd !important;
  color: #1e1b4b !important;
}

body.light-mode .workspace-title {
  color: #1e1b4b !important;
}

body.light-mode .workspace-subtitle {
  color: #64748b !important;
}

/* CARDS & CONTAINERS LIGHT MODE ALIGNMENT */
body.light-mode .settings-card-group,
body.light-mode .toggle-card {
  background: #ffffff !important;
  border-color: #ede9fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.05) !important;
}

body.light-mode .settings-card-group div,
body.light-mode .settings-card-group span,
body.light-mode .toggle-card div,
body.light-mode .toggle-card span {
  color: #1e1b4b;
}

body.light-mode .pill-tag {
  background: #f1f0fb !important;
  border-color: #ddd6fe !important;
  color: #5b21b6 !important;
}

body.light-mode .direct-echo-badge-btn {
  background: #f1f0fb !important;
  border-color: #ddd6fe !important;
  color: #1e1b4b !important;
}

/* SCOPED MODALS LIGHT MODE ALIGNMENT */
.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.2s ease;
}

body.light-mode .modal-overlay {
  background: rgba(15, 23, 42, 0.45) !important;
}

.modal-glass-card {
  width: 100%;
  background: #09090e;
  border-top: 1px solid #1c1c28;
  border-radius: 24px 24px 0 0;
  padding: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

body.light-mode .modal-glass-card {
  background: #ffffff !important;
  border-top-color: #ede9fe !important;
  color: #1e1b4b !important;
  box-shadow: 0 -10px 40px rgba(124, 58, 237, 0.15) !important;
}

body.light-mode .modal-title {
  color: #1e1b4b !important;
}

body.light-mode .modal-close-btn {
  background: #f1f0fb !important;
  border-color: #ddd6fe !important;
  color: #1e1b4b !important;
}

body.light-mode .mode-select-card {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.light-mode .mode-select-card span {
  color: #1e1b4b !important;
}

body.light-mode .mode-select-card.active {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
}

body.light-mode .tag-item-pill {
  background: #f1f0fb !important;
  border-color: #ddd6fe !important;
  color: #475569 !important;
}

body.light-mode .tag-item-pill.selected {
  background: #ede9fe !important;
  border-color: #7c3aed !important;
  color: #5b21b6 !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
