/* css/components/ai-call.css */

.ai-call {
    background: linear-gradient(180deg, #FCFBE0 0%, #EDEE9E 55%, #E3E166 100%);
}

.ai-call__header {
    justify-content: space-between;
    align-items: center;
}

.ai-call__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111;
}

.ai-call__header-actions {
    display: flex;
    gap: var(--sp-2);
}

.ai-call__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--sp-3) var(--sp-5);
    gap: var(--sp-4);
}

/* ---- Blob anime (indicateur visuel de l'assistant vocal) ---- */

.ai-call__blob-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-call__blob-wrapper::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.ai-call__blob {
    width: 100%;
    height: 100%;
    border-radius: 42% 58% 63% 37% / 47% 41% 59% 53%;
    background: radial-gradient(circle at 30% 30%, #f4f4f0 0%, #b8b8b0 35%, #2a2a28 55%, #d8d84a 70%, #eef05a 85%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: ai-call-blob-morph 6s ease-in-out infinite;
}

@keyframes ai-call-blob-morph {
    0%   { border-radius: 42% 58% 63% 37% / 47% 41% 59% 53%; }
    25%  { border-radius: 58% 42% 40% 60% / 55% 60% 40% 45%; }
    50%  { border-radius: 50% 50% 33% 67% / 62% 38% 62% 38%; }
    75%  { border-radius: 65% 35% 55% 45% / 40% 55% 45% 60%; }
    100% { border-radius: 42% 58% 63% 37% / 47% 41% 59% 53%; }
}

.ai-call__prompt {
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    max-width: 280px;
}

/* ---- Barre de controle basse ---- */

.ai-call__controls {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-3) var(--sp-5);
}

.ai-call__control {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.ai-call__control:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ai-call__mic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--clr-saffron);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(228, 229, 27, 0.5);
    transition: transform var(--transition-fast);
}

.ai-call__mic:hover {
    transform: scale(1.05);
}

.ai-call__mic-icon {
    width: 24px;
    height: 24px;
    background-color: #111;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

@media (max-width: 480px) {
    .ai-call__blob-wrapper {
        width: 140px;
        height: 140px;
    }

    .ai-call__prompt {
        font-size: 0.95rem;
    }
}