/* =========================
   SARA UI – v1.3
   ========================= */

body {
  margin: 0;
  height: 100vh;
  background: #0b0f14;
  color: #e5e7eb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  display: flex;
  justify-content: center;
  align-items: center;

  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}

/* CARD */
.card {
  width: 90%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  padding: 26px 24px 30px;
  text-align: center;
  position: relative;

  box-shadow:
    0 20px 40px rgba(0,0,0,.65),
    0 0 80px rgba(34,197,94,0.08);
}

/* STATUS */
.status {
  font-size: 14px;
  margin-bottom: 18px;
  color: #22c55e;
}

/* MIC WRAP */
.mic-wrap {
  position: relative;
  display: inline-block;
  margin: 14px 0 6px;
}

.mic-wrap::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(34,197,94,0.45) 0%,
    rgba(34,197,94,0.25) 40%,
    transparent 70%
  );

  filter: blur(22px);
  z-index: -1;
}

/* MIC BUTTON */
.mic-btn {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: radial-gradient(
    circle at 30% 30%,
    #4ade80,
    #22c55e 65%
  );

  box-shadow:
    inset 0 6px 10px rgba(255,255,255,0.18),
    inset 0 -6px 12px rgba(0,0,0,0.28);

  display: flex;
  align-items: center;
  justify-content: center;
}

.mic-btn:active {
  transform: scale(0.95);
}

/* MIC ICON (SVG) */
.mic-icon {
  width: 100px;
  height: 100px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.35));
}

/* LISTENING */
.listening {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%   { filter: drop-shadow(0 0 10px rgba(34,197,94,.4)); }
  50%  { filter: drop-shadow(0 0 28px rgba(34,197,94,.9)); }
  100% { filter: drop-shadow(0 0 10px rgba(34,197,94,.4)); }
}

/* INFO */
.info {
  margin-top: 16px;
  font-size: 15px;
  min-height: 22px;
  opacity: .85;
}

/* VERSION */
.version {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: .5px;
  user-select: none;
}

/* MOBILE */
@media (max-width: 480px) {
  .mic-btn {
    width: 140px;
    height: 140px;
  }

  .mic-wrap::before {
    width: 200px;
    height: 200px;
  }
}
