/* VIDEOSTORE — Soft Gemini, ChatGPT & Antigravity Fluid Aesthetic */
/* Zero harsh wireframes, zero neon. Pure soft tonal depth & rounded curves. */

:root {
  --canvas-bg: #131314;
  --sidebar-bg: #18191b;
  --surface-low: #1e1f22;
  --surface-mid: #25272a;
  --surface-high: #2f3136;
  --surface-hover: #383b40;
  --text-main: #f1f3f5;
  --text-sub: #9aa0a6;
  --text-dim: #5f6368;
  --pill-active: #e8eaed;
  --pill-active-text: #131314;
  --ease-fluid: cubic-bezier(0.2, 0, 0, 1);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--canvas-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Google Sans", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.011em;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar */
.sidebar {
  background-color: var(--sidebar-bg);
  border: none;
}

/* Antigravity & Gemini Fluid Prompt Capsule (Seamless, no harsh 1px border) */
.prompt-capsule {
  background-color: var(--surface-low);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.2s var(--ease-fluid);
}

.prompt-capsule:focus-within {
  background-color: var(--surface-mid);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

/* Soft Pills & Toolbar Chips */
.toolbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  border: none;
  cursor: pointer;
  transition: all 0.15s var(--ease-fluid);
  white-space: nowrap;
}

.toolbar-chip:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.toolbar-chip-active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 600;
}

/* General pill button */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  background-color: var(--surface-mid);
  color: var(--text-sub);
  border: none;
  cursor: pointer;
  transition: all 0.15s var(--ease-fluid);
}

.pill-btn:hover {
  background-color: var(--surface-high);
  color: var(--text-main);
}

.pill-btn-active {
  background-color: var(--pill-active) !important;
  color: var(--pill-active-text) !important;
  font-weight: 600;
}

/* Attachment Preview Chip */
.attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 6px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--text-main);
  animation: fadeIn 0.15s ease-out;
}

/* Generation Turn - Antigravity, Gemini & Grok Fluid Canvas */
.generation-turn {
  position: relative;
  width: 100%;
  animation: fadeIn 0.25s var(--ease-fluid);
  background-color: transparent;
  border: none;
  box-shadow: none;
}

/* Cinematic Living Shimmer Mesh Preloader - Zero Flat Black Box */
.cinematic-shimmer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
              radial-gradient(circle at 75% 75%, rgba(168, 85, 247, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 50% 40%, rgba(30, 41, 59, 0.8) 0%, #0d0e11 100%);
  animation: shimmerPulse 6s ease-in-out infinite alternate;
}

@keyframes shimmerPulse {
  0% {
    transform: scale(1);
    filter: brightness(0.9);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.2);
  }
  100% {
    transform: scale(1);
    filter: brightness(0.9);
  }
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.4s var(--ease-fluid);
}

/* Glassmorphism Action Dock Buttons */
.action-dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.2s var(--ease-fluid);
  white-space: nowrap;
}
.action-dock-btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.action-dock-btn:active {
  transform: translateY(0);
}
.action-dock-btn-primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.action-dock-btn-primary:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.26), rgba(255,255,255,0.14)) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15);
}

/* Minimalist Icon Chip Buttons */
.icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s var(--ease-fluid);
  white-space: nowrap;
}
.icon-chip:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.icon-chip-active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  font-weight: 600;
}

/* Borderless Generation Items - Zero Substrate */
.card-soft {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.card-soft:hover {
  background-color: transparent !important;
}

.media-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-color: #0e0f12;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s var(--ease-fluid), box-shadow 0.25s var(--ease-fluid);
}

.media-container:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Param Pills (Ratio / Duration / Quality) */
.param-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-sub);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s var(--ease-fluid);
  white-space: nowrap;
}

.param-pill:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.param-pill-active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  font-weight: 600;
}

/* Aspect Ratio Utilities */
.aspect-9-16 {
  aspect-ratio: 9 / 16;
}

.aspect-16-9 {
  aspect-ratio: 16 / 9;
}

.aspect-1-1 {
  aspect-ratio: 1 / 1;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.aspect-3-4 {
  aspect-ratio: 3 / 4;
}

/* Drag & Drop Overlay */
#dropzone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(19, 19, 20, 0.88);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  margin: 16px;
  pointer-events: none;
}

/* Chat Session List items (Claude / ChatGPT / Gemini Style) */
.chat-session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: #9aa0a6;
  cursor: pointer;
  transition: all 0.15s var(--ease-fluid);
  width: 100%;
  position: relative;
}

.chat-session-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: #f1f3f5;
}

.chat-session-item-active {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-weight: 500;
}

.chat-time-tag {
  font-size: 11px;
  color: #71767b;
  flex-shrink: 0;
  margin-left: 6px;
  transition: opacity 0.15s;
}

.chat-session-item:hover .chat-time-tag {
  opacity: 0;
}

.chat-del-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: #9aa0a6;
  transition: opacity 0.15s, color 0.15s;
}

.chat-del-btn:hover {
  color: #ef4444;
}

.chat-session-item:hover .chat-del-btn {
  opacity: 1;
}

/* Chat mini-loader for active generating state */
.chat-mini-loader {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: 6px;
}

.chat-mini-loader-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background-color: #e3e3e3;
  animation: chatMiniPulse 1.2s ease-in-out infinite;
}

.chat-mini-loader-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-mini-loader-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatMiniPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Shimmer animated text for live generation */
.text-shimmer {
  background: linear-gradient(90deg, #8a8d91 0%, #ffffff 50%, #8a8d91 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmerMove 2.2s linear infinite;
}

@keyframes textShimmerMove {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* Navigation items (Soft borderless) */
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s var(--ease-fluid);
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background-color: var(--surface-low);
  color: var(--text-main);
}

.nav-item-active {
  background-color: var(--surface-mid) !important;
  color: var(--text-main) !important;
  font-weight: 600;
}

/* Send Button */
.btn-send {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background-color: #ffffff;
  color: #131314;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease-fluid), opacity 0.15s var(--ease-fluid);
  flex-shrink: 0;
}

.btn-send:hover {
  transform: scale(1.06);
  opacity: 0.95;
}

.btn-send:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

/* Clean Soft Inputs */
input,
select,
textarea {
  background-color: var(--surface-low);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  outline: none;
  border-radius: 14px;
  font-size: 13px;
  transition: all 0.15s var(--ease-fluid);
}

input:focus,
select:focus,
textarea:focus {
  background-color: var(--surface-mid);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Soft Minimal Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modals */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.modal-sheet {
  background-color: var(--sidebar-bg);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Progress bar */
.bar-track {
  background-color: var(--surface-mid);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-indicator {
  background-color: #34d399;
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s var(--ease-fluid);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Auth Gateway Lock */
.auth-locked {
  filter: blur(12px) brightness(0.35);
  pointer-events: none !important;
  user-select: none !important;
  transition: all 0.4s ease;
}

/* --- GEMINI REVOLVING CONSTELLATION LOADER --- */
.gemini-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.gemini-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: geminiOrbit 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gemini-dot:nth-child(1) {
  top: 2px;
  left: 8px;
  animation-delay: 0s;
}

.gemini-dot:nth-child(2) {
  bottom: 2px;
  left: 3px;
  animation-delay: -0.73s;
}

.gemini-dot:nth-child(3) {
  bottom: 2px;
  right: 3px;
  animation-delay: -1.46s;
}

@keyframes geminiOrbit {
  0% {
    transform: rotate(0deg) translateX(6px) rotate(0deg) scale(0.8);
    opacity: 0.45;
    background: #ffffff;
  }
  50% {
    transform: rotate(180deg) translateX(6px) rotate(-180deg) scale(1.25);
    opacity: 1;
    background: #93c5fd;
    box-shadow: 0 0 8px rgba(147, 197, 253, 0.9);
  }
  100% {
    transform: rotate(360deg) translateX(6px) rotate(-360deg) scale(0.8);
    opacity: 0.45;
    background: #ffffff;
  }
}

/* Gemini Morphing Sparkle */
.gemini-sparkle-loader {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  animation: geminiSparkleBreathe 2.8s ease-in-out infinite;
}

@keyframes geminiSparkleBreathe {
  0% {
    transform: scale(0.9) rotate(0deg);
    filter: drop-shadow(0 0 3px rgba(147, 197, 253, 0.4));
  }
  50% {
    transform: scale(1.18) rotate(180deg);
    filter: drop-shadow(0 0 7px rgba(192, 132, 252, 0.8));
  }
  100% {
    transform: scale(0.9) rotate(360deg);
    filter: drop-shadow(0 0 3px rgba(147, 197, 253, 0.4));
  }
}

/* Custom Video Player Scrubber */
.video-progress-track {
  height: 3px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.video-progress-track:hover {
  height: 5px;
}

.video-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  width: 0%;
  pointer-events: none;
}

/* Custom Video Player Scrubber */
.video-progress-track {
  height: 3px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}

.video-progress-track:hover {
  height: 5px;
}

.video-progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.7);
  width: 0%;
  pointer-events: none;
}

/* Library Masonry Tetris Columns */
.library-masonry {
  column-count: 2;
  column-gap: 16px;
}

@media (min-width: 640px) {
  .library-masonry {
    column-count: 3;
    column-gap: 18px;
  }
}

@media (min-width: 1024px) {
  .library-masonry {
    column-count: 4;
    column-gap: 20px;
  }
}

.library-masonry-item {
  break-inside: avoid;
  margin-bottom: 18px;
}

/* --- CHAT MESSAGE TURNS (User on Right, Assistant on Left) --- */
/* Clean ChatGPT Style Prompt: Zero Substrate, No Background Pod, Pure Text */
.user-msg-bubble {
  max-width: 85%;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  color: #ececec;
  font-size: 15px;
  line-height: 1.6;
  border: none !important;
  box-shadow: none !important;
  text-align: right;
  transition: opacity 0.15s ease;
}

@media (min-width: 768px) {
  .user-msg-bubble {
    max-width: 75%;
  }
}

.user-msg-bubble:hover {
  background: transparent !important;
}

.user-msg-meta {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.assistant-msg-container {
  width: 100%;
  max-width: 680px;
}

/* --- ANTIGRAVITY BATCH QUEUE CARD --- */
.batch-queue-card {
  background: #1b1c1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.batch-queue-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.batch-file-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  flex-shrink: 0;
}

.batch-stop-btn {
  padding: 6px;
  border-radius: 8px;
  color: #9aa0a6;
  background: transparent;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.batch-stop-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}
