/**
 * ViaFlow Landing - Apollo Native Layout Styles
 * Built directly on PrimeVue Apollo Design System + PrimeFlex + PrimeIcons
 */

/* Root & Fonts */
:root {
  --font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background-color: var(--surface-ground);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.2s, color 0.2s;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Ambient glow on top */
.hero-glow-bg {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(var(--primary-color-rgb, 59, 130, 246), 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Sticky Apollo Navigation Header */
.apollo-landing-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(var(--surface-ground), 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.landing-nav-link {
  font-weight: 500;
  color: var(--text-color-secondary);
  transition: color 0.15s;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius);
}

.landing-nav-link:hover {
  color: var(--text-color);
  background: var(--surface-hover);
}

/* Hero Badge */
.apollo-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 8px var(--primary-color);
}

/* Avito Chat Mockup */
.avito-chat-container {
  background: var(--surface-ground);
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.avito-chat-stream {
  min-height: 380px;
  max-height: 440px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.avito-msg {
  max-width: 80%;
  padding: 0.75rem 1.1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: fadeIn 0.25s ease-out;
}

.avito-msg.client {
  align-self: flex-start;
  background: var(--surface-card);
  color: var(--text-color);
  border: 1px solid var(--surface-border);
  border-bottom-left-radius: 2px;
}

.avito-msg.bot {
  align-self: flex-end;
  background: var(--primary-color);
  color: var(--primary-color-text, #ffffff);
  border-bottom-right-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.avito-msg-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 0.3rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.3rem;
}

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

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

/* Apollo Config Right Sidebar */
.apollo-config-sidebar {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: var(--surface-card);
  border-left: 1px solid var(--surface-border);
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  z-index: 2000;
  padding: 1.5rem;
  overflow-y: auto;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.apollo-config-sidebar.active {
  right: 0;
}

.apollo-fab-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 1999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.apollo-fab-btn:hover {
  transform: rotate(45deg) scale(1.08);
}

.theme-color-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, border-color 0.15s;
}

.theme-color-circle:hover {
  transform: scale(1.15);
}

.theme-color-circle.active {
  border-color: var(--text-color);
}

.scheme-radio-btn {
  padding: 0.6rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--surface-border);
  background: var(--surface-hover);
  color: var(--text-color);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}

.scheme-radio-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

/* Sliders */
.apollo-range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-border);
  outline: none;
  -webkit-appearance: none;
}

.apollo-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-color);
  transition: transform 0.15s;
}

.apollo-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
