/* 
 * Ovozli AI assistenti (Hudud AI Voice Assistant) stillari
 */

.ai-voice-screen {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 12px;
}

/* Asosiy ovozli karta */
.ai-voice-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  padding: 28px 28px 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 540px;
}

/* Yuqori xizmat holati */
.ai-service-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid #bbf7d0;
  background-color: #f0fdf4;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
}

.ai-service-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

/* Markazdagi 3D Glowing Orb */
.ai-orb-stage {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ai-orb-wrapper {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-orb-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, rgba(5, 150, 105, 0.1) 45%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
  animation: aura-breathe 4s ease-in-out infinite alternate;
}

.ai-orb {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  box-shadow: 
    inset 0 10px 30px rgba(255, 255, 255, 0.6),
    inset 0 -15px 40px rgba(0, 0, 0, 0.4),
    0 15px 35px -5px rgba(16, 185, 129, 0.45);
}

.ai-orb.idle {
  background: radial-gradient(circle at 35% 30%, #34d399 0%, #10b981 50%, #047857 100%);
  animation: orb-float 5s ease-in-out infinite;
}

.ai-orb.listening {
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 50%, #0369a1 100%);
  box-shadow: 
    inset 0 10px 30px rgba(255, 255, 255, 0.7),
    inset 0 -15px 40px rgba(0, 0, 0, 0.4),
    0 0 50px 10px rgba(56, 189, 248, 0.6);
  animation: orb-pulse-listening 1.6s ease-in-out infinite;
}

.ai-orb.speaking {
  background: radial-gradient(circle at 35% 30%, #4ade80 0%, #16a34a 50%, #15803d 100%);
  box-shadow: 
    inset 0 10px 30px rgba(255, 255, 255, 0.7),
    inset 0 -15px 40px rgba(0, 0, 0, 0.4),
    0 0 60px 15px rgba(34, 197, 94, 0.65);
  animation: orb-pulse-speaking 0.9s ease-in-out infinite alternate;
}

.ai-orb:hover {
  transform: scale(1.04);
}

/* Orb holat yozuvi */
.ai-orb-status {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #334155;
  text-transform: uppercase;
  text-align: center;
}

/* Mikrofon tugmasi */
.ai-orb-mic-btn {
  margin-top: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: all 0.2s ease;
}

.ai-orb-mic-btn:hover {
  transform: scale(1.08);
  background-color: #1e293b;
}

.ai-orb-mic-btn.listening {
  background-color: #e11d48;
  animation: mic-pulse 1.4s infinite;
}

/* Suhbat transkripti qutisi */
.ai-voice-transcript-card {
  width: 100%;
  max-width: 780px;
  margin-top: 26px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
}

.ai-voice-transcript-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
}

.ai-voice-transcript-text {
  font-size: 0.95rem;
  color: #1e293b;
  line-height: 1.65;
  font-weight: 500;
  word-break: break-word;
}

/* Chart container */
.ai-voice-chart-container {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ai-voice-chart-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-voice-chart-canvas-wrap {
  height: 220px;
  position: relative;
}

/* Animatsiyalar */
@keyframes orb-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes orb-pulse-listening {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes orb-pulse-speaking {
  0% { transform: scale(0.98); }
  100% { transform: scale(1.06); }
}

@keyframes aura-breathe {
  0% { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0.9; transform: scale(1.05); }
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(225, 29, 72, 0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
