@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --pink-primary: #ff2a85;
  --pink-glow: rgba(255, 42, 133, 0.25);
  --pink-subtle: rgba(255, 42, 133, 0.08);
  --pink-border: rgba(255, 42, 133, 0.18);
  --bg-deep: #090a0f;
  --bg-card: #11121a;
  --bg-card-hover: #161824;
  --border-subtle: #1c1e2b;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Subtle modern mesh background */
.mesh-bg {
  background: 
    radial-gradient(circle at 50% 0%, rgba(255, 42, 133, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255, 42, 133, 0.06) 0%, transparent 40%);
}

/* Glass effect */
.glass-surface {
  background: rgba(17, 18, 26, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.glass-input {
  background: rgba(15, 16, 24, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 42, 133, 0.22);
}

.glass-input:focus-within {
  border-color: rgba(255, 42, 133, 0.6);
  box-shadow: 0 0 30px rgba(255, 42, 133, 0.18);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: #242638;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff2a85;
}

/* Minimal hover transitions */
.smooth-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* View transitions */
.view-container {
  transition: opacity 0.2s ease;
}

.view-hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none !important;
}

.view-visible {
  display: flex !important;
  opacity: 1;
  pointer-events: auto !important;
}

/* Modals strict hidden protection against pointer blockage */
[id$="-modal"].hidden,
.modal.hidden,
#chat-cpu-popup.hidden {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* =========================================
   ENTRANCE & FLOATING ANIMATIONS
========================================= */

@keyframes robotFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.animate-robot-float {
  animation: robotFloat 5s ease-in-out infinite;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anim-fade-down {
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-scale-in {
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.anim-fade-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.anim-delay-1 {
  animation-delay: 0.2s;
}

.anim-delay-2 {
  animation-delay: 0.35s;
}

.anim-delay-3 {
  animation-delay: 0.5s;
}

.pink-aura {
  background: radial-gradient(circle, rgba(255, 42, 133, 0.35) 0%, rgba(255, 42, 133, 0.08) 55%, transparent 75%);
}

/* =========================================
   CLEAN UNIFIED CHAT & FLOATING HOSTING BUTTON
========================================= */

.chat-scroll-area {
  scroll-behavior: smooth;
}

/* Floating Hosting Action Button (Bottom Right) */
.btn-floating-hosting {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 133, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-floating-hosting:hover {
  box-shadow: 0 12px 35px rgba(255, 42, 133, 0.35), 0 0 25px rgba(255, 42, 133, 0.3);
  transform: translateY(-2px);
}

/* =========================================
   NEW LANDING SHOWCASE & GLOW ANIMATIONS
========================================= */

.text-gradient-pink {
  background: linear-gradient(135deg, #ffffff 30%, #ff85be 70%, #ff2a85 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-subtle {
  background: linear-gradient(135deg, #ffffff 60%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glow-card {
  position: relative;
  background: rgba(15, 17, 26, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glow-card:hover {
  border-color: rgba(255, 42, 133, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(255, 42, 133, 0.22), 0 0 20px rgba(255, 42, 133, 0.12);
}

.video-frame-glow {
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(255, 42, 133, 0.2);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.video-frame-glow:hover {
  box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.9), 0 0 65px rgba(255, 42, 133, 0.32);
}

@keyframes pulseBorder {
  0%, 100% {
    border-color: rgba(255, 42, 133, 0.3);
  }
  50% {
    border-color: rgba(255, 42, 133, 0.65);
  }
}

.pulse-border-slow {
  animation: pulseBorder 4s ease-in-out infinite;
}

/* Subtle grid line overlay */
.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Cosmic Pink Galaxy / Nebula animation */
@keyframes galaxyFloat {
  0%, 100% {
    transform: scale(1.02) rotate(0deg);
    opacity: 0.38;
  }
  50% {
    transform: scale(1.09) rotate(0.8deg);
    opacity: 0.52;
  }
}

.animate-pulse-galaxy {
  animation: galaxyFloat 14s ease-in-out infinite alternate;
}

.bg-radial-vignette {
  background: radial-gradient(circle at 50% 40%, transparent 15%, #090a0f 85%);
}





/* =========================================
   RICH MARKDOWN TYPOGRAPHY & PINK UNDERLINES
========================================= */

.ai-msg-box {
  line-height: 1.65;
  color: #e2e8f0;
  word-break: break-word;
}

/* Subrayados y resaltados en color rosa neon Vektor */
.ai-msg-box u,
.ai-msg-box ins,
.ai-msg-box .pink-underline {
  text-decoration: none !important;
  border-bottom: 2px solid #ff2a85 !important;
  padding-bottom: 1px;
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 42, 133, 0.4);
}

.ai-msg-box mark {
  background: rgba(255, 42, 133, 0.2);
  color: #ff80bf;
  border-bottom: 2px solid #ff2a85;
  padding: 0 4px;
  border-radius: 4px;
}

/* Encabezados claros, separados y estilizados */
.ai-msg-box h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 42, 133, 0.25);
}

.ai-msg-box h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-msg-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ff66aa;
  margin-top: 0.85rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.ai-msg-box h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
}

/* Parrafos espaciados limpiamente */
.ai-msg-box p {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}

.ai-msg-box p:first-child {
  margin-top: 0;
}

.ai-msg-box p:last-child {
  margin-bottom: 0;
}

/* Listas ordenadas y no ordenadas bien sangradas */
.ai-msg-box ul {
  list-style-type: none;
  padding-left: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ai-msg-box ul > li {
  position: relative;
  padding-left: 1.25rem;
  color: #cbd5e1;
}

.ai-msg-box ul > li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ff2a85;
  box-shadow: 0 0 6px rgba(255, 42, 133, 0.6);
}

.ai-msg-box ol {
  list-style-type: decimal;
  padding-left: 1.35rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: #cbd5e1;
}

.ai-msg-box ol > li::marker {
  color: #ff2a85;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* Negritas con brillo sutil y maxima legibilidad */
.ai-msg-box strong {
  color: #ffffff;
  font-weight: 600;
}

/* Citas y Callouts */
.ai-msg-box blockquote {
  border-left: 3px solid #ff2a85;
  padding-left: 0.75rem;
  margin: 0.6rem 0;
  color: #94a3b8;
  font-style: italic;
  background: rgba(255, 42, 133, 0.04);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Tablas formateadas impecables */
.ai-msg-box table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.75rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-msg-box th {
  background: rgba(255, 42, 133, 0.12);
  color: #ffffff;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 42, 133, 0.25);
  font-family: 'JetBrains Mono', monospace;
}

.ai-msg-box td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

.ai-msg-box tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================
   STUDIO DASHBOARD & CYBERNETIC PANEL STYLES
========================================= */

.panel-mesh-bg {
  background-color: #08090e;
  background-image: 
    radial-gradient(at 0% 0%, rgba(255, 42, 133, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(255, 42, 133, 0.08) 0px, transparent 55%),
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px, 32px 32px;
}

.studio-card {
  background: rgba(14, 16, 25, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.studio-card:hover {
  background: rgba(18, 20, 32, 0.85);
  border-color: rgba(255, 42, 133, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(255, 42, 133, 0.2), 0 0 15px rgba(255, 42, 133, 0.1);
}

.code-mac-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-mac-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.chat-user-bubble {
  background: linear-gradient(135deg, #e11d48 0%, #db2777 50%, #9333ea 100%);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.25);
}

.chat-bot-bubble {
  background: rgba(16, 18, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.sidebar-chat-active {
  background: linear-gradient(90deg, rgba(255, 42, 133, 0.18) 0%, rgba(255, 42, 133, 0.05) 100%);
  border-left: 3px solid #ff2a85 !important;
  border-color: rgba(255, 42, 133, 0.35);
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.12);
}

.prompt-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-pill:hover {
  border-color: rgba(255, 42, 133, 0.5);
  background: rgba(255, 42, 133, 0.12);
  transform: translateY(-1px);
}

/* Mobile Slide-Out Drawer System */
#mobile-drawer-overlay {
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-drawer-overlay.active {
  display: block !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#mobile-drawer-panel {
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

#mobile-drawer-panel.active {
  transform: translateX(0) !important;
}

/* Custom Scrollbar for Mobile Drawer & Full Docs */
.docs-scroll-area::-webkit-scrollbar,
#mobile-drawer-panel::-webkit-scrollbar {
  width: 6px;
}

.docs-scroll-area::-webkit-scrollbar-track,
#mobile-drawer-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.docs-scroll-area::-webkit-scrollbar-thumb,
#mobile-drawer-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 133, 0.25);
  border-radius: 9999px;
}

.docs-scroll-area::-webkit-scrollbar-thumb:hover,
#mobile-drawer-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 133, 0.5);
}

/* Docs Full-Screen Experience (1920x1080 Responsive) */
#docs-legal-modal {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
}

.docs-active-tab {
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.9) 0%, rgba(217, 27, 108, 0.9) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 42, 133, 0.35) !important;
  border-color: rgba(255, 42, 133, 0.6) !important;
}
