/*
 * zylo.css — Styles extraits du projet Zylo
 */

.zylo-card {
  --purple:    #7c3aed;
  --purple-l:  #a78bfa;
  --purple-ll: #ddd6fe;
  --teal:      #0ea5e9;
  --green-l:   #6ee7b7;
  --amber:     #f59e0b;
  --amber-l:   #fcd34d;
  --white:     #eef2ff;
  --muted:     #94a3b8;
  --card-bg:   rgba(255,255,255,0.04);
  --card-b:    rgba(167,139,250,0.18);
  background: linear-gradient(160deg, #07071a 0%, #0f0d2a 50%, #1a0d3a 100%);
  border: 1px solid var(--card-b);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  font-family: 'Nunito', 'Inter', sans-serif;
  color: var(--white);
}

.zylo-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.zylo-stars::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 25%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 60% 35%, rgba(167,139,250,0.7) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 15% 65%, rgba(167,139,250,0.5) 0%, transparent 100%);
}
.zylo-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 35% 75%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.3) 0%, transparent 100%);
  animation: zyloTwinkle 4s ease-in-out infinite alternate;
}
@keyframes zyloTwinkle {
  from { opacity: 0.6; }
  to   { opacity: 1; }
}

.zylo-header {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zylo-badge {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--purple-l);
  letter-spacing: 3px;
  text-shadow: 0 0 20px rgba(167,139,250,0.6);
}

.zylo-tagline {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.zylo-alien-zone {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0.5rem 0 0.25rem;
  height: 110px;
}

.zylo-alien {
  position: relative;
  width: 80px;
  height: 90px;
  animation: zyloFloat 3.5s ease-in-out infinite;
}
@keyframes zyloFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.zylo-alien::before {
  content: '';
  position: absolute;
  left: 50%; top: 14px;
  transform: translateX(-50%);
  width: 62px; height: 72px;
  background: radial-gradient(ellipse at 35% 30%, #9f7aea, #6d28d9 55%, #3b0764);
  border-radius: 50% 50% 44% 44%;
  box-shadow: 0 0 24px rgba(124,58,237,0.55), inset 0 -10px 18px rgba(0,0,0,0.35);
}

.zylo-alien::after {
  content: '';
  position: absolute;
  left: 50%; top: 0;
  transform: translateX(-50%);
  width: 44px; height: 28px;
  background: radial-gradient(ellipse, #7c3aed, #5b21b6);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 0 14px rgba(124,58,237,0.35);
}

.zylo-antenna {
  position: absolute;
  left: 50%; top: -14px;
  transform: translateX(-50%);
  width: 2px; height: 16px;
  background: var(--purple-l);
  border-radius: 2px;
  z-index: 3;
}
.zylo-antenna::after {
  content: '';
  position: absolute;
  left: 50%; top: -6px;
  transform: translateX(-50%);
  width: 8px; height: 8px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--amber);
  animation: zyloAntenna 2.2s ease-in-out infinite;
}
@keyframes zyloAntenna {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%       { transform: translateX(-50%) scale(1.3); box-shadow: 0 0 18px var(--amber); }
}

.zylo-eyes {
  position: absolute;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 4;
}
.zylo-eye {
  width: 17px; height: 17px;
  background: #0f172a;
  border-radius: 50%;
  border: 1.5px solid rgba(167,139,250,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.zylo-pupil {
  width: 8px; height: 8px;
  background: radial-gradient(circle at 35% 35%, #a78bfa, #6d28d9);
  border-radius: 50%;
  animation: zyloBlink 5s ease-in-out infinite;
  position: relative;
}
.zylo-pupil::after {
  content: '';
  position: absolute;
  top: 1px; left: 2px;
  width: 2.5px; height: 2.5px;
  background: white;
  border-radius: 50%;
}
@keyframes zyloBlink {
  0%, 85%, 100% { transform: scaleY(1); }
  90%            { transform: scaleY(0.06); }
}

.zylo-mouth {
  position: absolute;
  left: 50%; top: 50px;
  transform: translateX(-50%);
  width: 22px; height: 11px;
  border: 2.5px solid var(--green-l);
  border-top: none;
  border-radius: 0 0 22px 22px;
  z-index: 4;
}

.zylo-glow {
  position: absolute;
  left: 50%; top: 14px;
  transform: translateX(-50%);
  width: 62px; height: 72px;
  border-radius: 50% 50% 44% 44%;
  pointer-events: none;
  z-index: 1;
  animation: zyloGlow 3.5s ease-in-out infinite;
}
@keyframes zyloGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(124,58,237,0.3); }
  50%       { box-shadow: 0 0 50px rgba(124,58,237,0.6); }
}

.zylo-pills {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  padding: 0 1.25rem 0.75rem;
}
.zylo-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}
.zylo-pill.energy {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--amber-l);
}
.zylo-pill.memory {
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  color: var(--purple-ll);
}
.zylo-pill.friend {
  background: rgba(236,72,153,0.12);
  border: 1px solid rgba(236,72,153,0.3);
  color: #f9a8d4;
}

.zylo-chat {
  position: relative;
  z-index: 2;
  padding: 0 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.zylo-msg {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}
.zylo-msg.user { justify-content: flex-end; }
.zylo-bubble {
  max-width: 80%;
  padding: 0.45rem 0.8rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.45;
}
.zylo-msg.alien .zylo-bubble {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--card-b);
  border-radius: 4px 16px 16px 16px;
  color: var(--white);
}
.zylo-msg.user .zylo-bubble {
  background: linear-gradient(135deg, var(--purple), #4338ca);
  border-radius: 16px 16px 4px 16px;
  color: white;
}

.zylo-bars {
  position: relative;
  z-index: 2;
  padding: 0.5rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.zylo-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.zylo-bar-lbl {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: 44px;
  flex-shrink: 0;
}
.zylo-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(167,139,250,0.1);
  border-radius: 10px;
  overflow: hidden;
}
.zylo-bar-fill {
  height: 100%;
  border-radius: 10px;
}
.zylo-bar-fill.m {
  background: linear-gradient(90deg, var(--purple), var(--teal));
  box-shadow: 0 0 5px rgba(124,58,237,0.5);
  width: 72%;
}
.zylo-bar-fill.f {
  background: linear-gradient(90deg, #ec4899, var(--purple));
  box-shadow: 0 0 5px rgba(236,72,153,0.4);
  width: 58%;
}
.zylo-bar-pct {
  font-size: 0.6rem;
  color: var(--muted);
  font-weight: 700;
  width: 26px;
  text-align: right;
}

.zylo-footer {
  position: relative;
  z-index: 2;
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(167,139,250,0.1);
}
.zylo-status {
  font-size: 0.72rem;
  color: var(--purple-l);
  font-weight: 700;
}
.zylo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-l);
  opacity: 0.7;
  cursor: default;
}
