/* ==============================================================================
 * ZyvenAsk — Pure Dark Black (#000000) + White/Grey Workspace Theme (chat_luxury.css)
 * Matches Homepage Aesthetic 100%: Syne Animated Brand, Clean Hairlines, Zero Blobs
 * ============================================================================== */

:root {
  --zy-bg: #000000;
  --zy-surface: #0A0B0E;
  --zy-surface-2: #121318;
  --zy-border: rgba(255, 255, 255, 0.08);
  --zy-border-strong: rgba(255, 255, 255, 0.16);
  --zy-ink: #FFFFFF;
  --zy-ink-soft: #E4E4E7;
  --zy-muted: #A1A1AA;
  --zy-dim: #71717A;
}

/* Force Pure Dark Black Canvas & Hide Legacy Colored Blobs */
body.call-page,
body.zy-dashboard-page {
  background: #000000 !important;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.blobs,
.blobs .blob {
  display: none !important;
}

/* Sidebar: Deep Matte Obsidian Black */
.zy-sidebar {
  background: #050507 !important;
  border-right: 1px solid var(--zy-border) !important;
  backdrop-filter: none !important;
}

/* Animated Two-Tone ZyvenAsk Brand in Sidebar */
.zyven-logo-premium {
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: center;
}

.zyven-logo-premium .zyven-part {
  color: #FFFFFF;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
}

.zyven-logo-premium .ask-part {
  background: linear-gradient(120deg, #F472B6 0%, #A78BFA 30%, #38BDF8 65%, #34D399 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: chatAskFlow 4s linear infinite;
  margin-left: 1px;
}

@keyframes chatAskFlow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* Pure White Primary "New Chat" CTA matching "Try Zyven" */
.zy-new-call-btn {
  background: #FFFFFF !important;
  color: #090A0D !important;
  font-weight: 700 !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14) !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.zy-new-call-btn:hover {
  background: #E4E4E7 !important;
  transform: translateY(-1px);
}

.zy-icon-pill-btn,
.zy-icon-sm {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--zy-border) !important;
  color: var(--zy-ink-soft) !important;
}

.zy-icon-pill-btn:hover,
.zy-icon-sm:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}

/* Main Workspace & Topbar */
.zy-workspace {
  background: #000000 !important;
}

.zy-topbar {
  background: rgba(0, 0, 0, 0.88) !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 12px 22px !important;
  min-height: 60px !important;
  z-index: 50;
}

/* Mode Switcher (Chat | Voice) */
.zy-mode-switch {
  background: #0A0B0E !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 999px !important;
  padding: 3px !important;
}

.zy-mode-btn {
  color: var(--zy-muted) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  padding: 5px 14px !important;
}

.zy-mode-btn.active {
  background: #FFFFFF !important;
  color: #090A0D !important;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.16) !important;
}

/* Luxury Custom Model Switcher Popover (Claude / ChatGPT Style) */
.zy-model-wrap {
  position: relative;
}

.zy-model-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zy-model-trigger:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.zy-model-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

.zy-model-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 290px;
  background: #0C0D12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zy-model-menu.hidden {
  display: none;
}

.zy-model-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 11px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background 0.18s ease;
  width: 100%;
}

.zy-model-option:hover {
  background: rgba(255, 255, 255, 0.06);
}

.zy-model-option.active {
  background: rgba(255, 255, 255, 0.09);
}

.zy-model-opt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.zy-model-opt-sub {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
}

.zy-model-check {
  color: #FFFFFF;
  opacity: 0;
}

.zy-model-option.active .zy-model-check {
  opacity: 1;
}

/* Deep Clean Topbar Header & Sidebar Actions: Hide all clutter cleanly */
#zyModelWrap,
.zy-model-wrap,
#zyModelTrigger,
#zyModelMenu,
.zy-topbar-center,
.zy-topbar-center .status,
.zy-topbar-center .timer,
.status,
.status-indicator,
#statusText,
#zyMemPill,
.zy-mem-pill,
#themeToggle,
.glass-toggle,
#btnSettings,
.zy-topbar-right,
#zyExpertMode,
#btnDeepResearch,
#btnNewVoiceCall {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Full Width Elegant New Chat CTA */
.zy-sidebar-cta-row {
  display: flex !important;
  width: 100% !important;
}

.zy-sidebar-cta-row #btnNewChat {
  width: 100% !important;
  flex: 1 1 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
}

/* Chat Welcome Empty State */
.zy-chat-welcome {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 20px !important;
  min-height: 50vh !important;
  padding: 40px 20px !important;
}

.zy-chat-welcome h2 {
  color: #FFFFFF !important;
  font-family: 'Syne', 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem) !important;
  letter-spacing: -0.03em !important;
  margin: 0 !important;
}

/* Ultra-Clean, Accurate Luxury AI Fluid Orb (Apple Intelligence / ChatGPT Voice / Siri Style) */
.zy-welcome-orb {
  position: relative !important;
  width: 78px !important;
  height: 78px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.35) 0%, rgba(139, 92, 246, 0.45) 40%, rgba(6, 182, 212, 0.3) 75%, #05060A 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 0 45px rgba(139, 92, 246, 0.45), 0 0 85px rgba(6, 182, 212, 0.28), inset 0 2px 8px rgba(255, 255, 255, 0.35) !important;
  animation: orbBreathe 4s ease-in-out infinite alternate !important;
  margin: 0 auto 6px !important;
  overflow: visible !important;
}

.zy-welcome-orb::before {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, #8B5CF6, #38BDF8, #06B6D4, #EC4899, #8B5CF6) !important;
  filter: blur(8px) !important;
  opacity: 0.72 !important;
  z-index: 0 !important;
  animation: chatOrbSpin 8s linear infinite !important;
}

.zy-welcome-orb::after {
  content: "" !important;
  position: absolute !important;
  inset: 4px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.25) 0%, rgba(10, 12, 18, 0.88) 65%, #05060A 100%) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.75) !important;
  z-index: 1 !important;
}

@keyframes chatOrbSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes orbBreathe {
  0% { transform: scale(0.96); }
  100% { transform: scale(1.04); }
}

/* Welcome Starter Chips */
.zy-welcome-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 620px;
  margin-top: 6px;
}

.zy-welcome-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.zy-welcome-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Chat Feed, User Bubbles & Borderless AI Editorial Replies */
.zy-chat-feed {
  background: #000000 !important;
}

.zy-msg-row.user .zy-msg-bubble {
  background: #181A20 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border-radius: 18px 18px 4px 18px !important;
}

.zy-msg-row.assistant .zy-msg-bubble {
  background: transparent !important;
  border: none !important;
  color: #E4E4E7 !important;
  padding-left: 0 !important;
}

.zy-msg-row.assistant pre,
.zy-msg-row.assistant code {
  background: #0A0B0E !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}

/* Slash Command Floating Menu */
.zy-slash-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  width: 280px;
  background: #0C0D12;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.zy-slash-menu.hidden {
  display: none;
}

.zy-slash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.zy-slash-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.zy-slash-cmd {
  font-weight: 700;
  color: #FFFFFF;
}

.zy-slash-desc {
  font-size: 11.5px;
  color: #94A3B8;
}

/* Voice Call Stage Glowing Fluid Orb */
.orb {
  position: relative !important;
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.4) 0%, rgba(139, 92, 246, 0.5) 40%, rgba(6, 182, 212, 0.35) 75%, #05060A 100%) !important;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.5), 0 0 100px rgba(6, 182, 212, 0.3), inset 0 2px 10px rgba(255, 255, 255, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.orb::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #8B5CF6, #38BDF8, #06B6D4, #EC4899, #8B5CF6);
  filter: blur(14px);
  opacity: 0.75;
  z-index: -1;
  animation: chatOrbSpin 8s linear infinite;
}

/* Chat Message Circular Avatars */
.zy-msg-avatar {
  border-radius: 50% !important;
  font-family: 'Syne', sans-serif !important;
  font-weight: 700 !important;
}

.zy-msg-row.assistant .zy-msg-avatar,
.zy-msg-assistant .zy-msg-avatar {
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #A78BFA 40%, #06B6D4 80%, #05060A 100%) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4) !important;
  color: #05060A !important;
}

.zy-msg-row.user .zy-msg-avatar,
.zy-msg-user .zy-msg-avatar {
  background: #181A20 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #FFFFFF !important;
}

/* Bottom Pinned Composer Dock */
.zy-composer-dock {
  background: linear-gradient(180deg, transparent 0%, #000000 30%) !important;
}

.zy-composer-box {
  background: #0D0F16 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65) !important;
  transition: border-color 0.2s ease !important;
}

.zy-composer-box:focus-within {
  border-color: rgba(255, 255, 255, 0.32) !important;
}

.zy-chat-textarea {
  color: #FFFFFF !important;
}

.zy-chat-textarea::placeholder {
  color: #71717A !important;
}

.zy-comp-send,
#btnChatSend {
  background: #FFFFFF !important;
  color: #090A0D !important;
  border-radius: 50% !important;
}

.zy-comp-send:hover,
#btnChatSend:hover {
  background: #E4E4E7 !important;
}

/* Voice Call View & Artifacts Canvas */
.zy-call-view,
.zy-artifacts-panel,
.zy-settings-modal,
.zy-auth-modal {
  background: #050507 !important;
  border-color: var(--zy-border) !important;
}

.zy-nav-item,
.zy-thread-item {
  color: var(--zy-muted) !important;
}

.zy-nav-item:hover,
.zy-thread-item:hover,
.zy-thread-item.active {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
}
