/* ==========================================
   YZG STUDIO - AGENT MODE (Creator Canvas)
   ========================================== */

.agent-view {
  background: var(--bg);
  position: relative;
  width: 100%;
  height: 100%;
}

/* ESTADO 1: IDLE CENTRADO */
.agent-idle-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 100%;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Animación de salida (Cuando la IA decide que es Chat o Build) */
.agent-idle-container.slide-out {
  opacity: 0;
  transform: translate(-50%, -80%) scale(0.95);
  pointer-events: none;
}

/* Título Hero */
.agent-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.agent-hero .agent-orb {
  width: 48px;
  height: 48px;
  animation: floatOrb 4s ease-in-out infinite;
}

.agent-hero h1 {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--text-primary);
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 10px rgba(99,102,241,0.4)); }
  50% { transform: translateY(-8px); filter: drop-shadow(0 0 20px rgba(99,102,241,0.6)); }
}

/* MEGA INPUT */
.mega-input-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 24px;
}

/* La línea de colores en la base (Estilo Google) */
.mega-input-glow {
  position: absolute;
  bottom: -2px;
  left: 3%;
  right: 3%;
  height: 6px;
  background: linear-gradient(90deg, #6366f1, #a8c7fa, #06b6d4, #c58af9);
  border-radius: 10px;
  filter: blur(5px);
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.mega-input-wrapper:focus-within .mega-input-glow {
  opacity: 1;
  filter: blur(8px);
}

.mega-input-box {
  position: relative;
  z-index: 2;
  background: rgba(22, 22, 29, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.mega-input-box:focus-within {
  background: rgba(26, 26, 34, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.mega-input-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

#agent-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  resize: none;
  outline: none;
  font-family: var(--font-family);
  height: 34px;
  line-height: 1.5;
}
#agent-input::placeholder { color: var(--text-secondary); opacity: 0.6; }

.mega-input-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.agent-magic-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.agent-magic-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); }

/* Píldoras Rápidas */
.agent-quick-prompts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.quick-pill {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: 0.2s;
}
.quick-pill:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); }
