/**
 * Hero Section & Interactive Translation Sandbox Styles
 * Builds perspective grid background, glowing ambient orbs, and interactive chat simulator.
 */

/* Hero Container */
.cyber-hero-section {
  position: relative;
  padding: 125px 0 70px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, #0e1d15 0%, var(--bg-black) 70%);
}

/* Cyber Ambient Grids & Mesh Orbs */
.hero-glow-orb-primary {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 380px;
  background: radial-gradient(circle, var(--emerald-glow) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.hero-perspective-grid {
  position: absolute;
  inset: 0;
  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);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-cta-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* Interactive Simulator Stage */
.simulator-stage-wrapper {
  position: relative;
  z-index: 3;
  margin-top: 60px;
  max-width: 980px;
  margin-inline: auto;
}

.simulator-outer-glow {
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.4), transparent 40%, rgba(56, 189, 248, 0.3));
  border-radius: var(--radius-lg);
  z-index: -1;
  filter: blur(12px);
  opacity: 0.7;
}

.simulator-window {
  background: rgba(14, 21, 17, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

/* Simulator Header */
.simulator-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(8, 12, 10, 0.7);
  border-bottom: 1px solid var(--border-subtle);
}

.simulator-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.simulator-lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-pill-tab {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.lang-pill-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.lang-pill-tab.active {
  background: rgba(37, 211, 102, 0.15);
  color: var(--emerald-light);
  border-color: rgba(37, 211, 102, 0.35);
}

/* Chat Canvas Simulation */
.simulator-chat-canvas {
  padding: 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Inbound Message Bubble */
.sim-msg-inbound {
  align-self: flex-start;
  max-width: 82%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-bubble-in {
  background: #192720;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 12px 2px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Live Translated Overlay Card */
.sim-translation-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.28);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--emerald-light);
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 2px;
  animation: fadeInTranslation 0.35s ease-out;
}

.sim-trans-tag {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--emerald-bright);
  color: #03180c;
  letter-spacing: 0.05em;
}

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

/* Outbound Typing Preview */
.sim-msg-outbound {
  align-self: flex-end;
  max-width: 82%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.sim-bubble-out {
  background: linear-gradient(135deg, #0e4c2f 0%, #166534 100%);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 12px 12px 2px 12px;
  padding: 12px 16px;
  color: #f0fdf4;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

/* Typing Input Bar */
.sim-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 16, 12, 0.9);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.sim-input-typing-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-typing-cursor {
  width: 2px;
  height: 16px;
  background: var(--emerald-bright);
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
