/* Fluxy Component Styles - Extends index.css */

:root {
  --discord: #5865F2;
  --discord-dim: rgba(88, 101, 242, 0.15);
  --discord-glow: rgba(88, 101, 242, 0.35);
}

/* ─── Bot Stage Animation ─── */
.bot-stage {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.bot-avatar {
  width: 180px;
  height: 180px;
  background: var(--blue);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: #fff;
  box-shadow: 0 0 60px var(--blue-alpha);
  border: 4px solid rgba(255,255,255,0.1);
  position: relative;
  transform: rotate(-5deg);
  animation: floating 4s ease-in-out infinite;
  z-index: 2;
}

@keyframes floating {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

.bot-glow {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--blue-alpha) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.status-dot {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--green);
  border: 6px solid var(--bg);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(16,185,129,0.4);
}

.speech-bubble {
  position: absolute;
  top: -30px;
  right: -60px;
  background: #fff;
  color: #000;
  padding: 12px 24px;
  border-radius: 20px;
  border-bottom-left-radius: 4px;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: rotate(8deg);
  z-index: 5;
}

.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ─── Terminal Experience ─── */
.terminal {
  background: #0a0c10;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  font-family: 'Consolas', 'Courier New', monospace;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
  position: relative;
  overflow: hidden;
}

.terminal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red    { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #27c93f; }

.terminal-input {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--blue);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
}

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

.terminal-response {
  animation: fadeIn 0.5s ease forwards;
}

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

/* ─── Stats Bar ─── */
.stats-bar-wrapper {
  padding: 40px 5%;
  max-width: 1250px;
  margin: 0 auto;
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 24px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .bot-stage {
    margin: 40px auto;
    width: 220px;
    height: 220px;
  }
  .bot-avatar {
    width: 140px;
    height: 140px;
    font-size: 3.5rem;
  }
  .speech-bubble {
    right: -20px;
    font-size: 0.9rem;
  }
}
