@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&display=swap');

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #10101a;
    color: #fff;
    min-height: 100vh;
}

#particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.curve-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 120px;
    z-index: 0;
}
.curve-bg svg {
    width: 100%;
    height: 100%;
}

/* Ajuste do container principal */
.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Distribui o espaço verticalmente */
    padding: 48px 16px;
    min-height: 100vh;
    background: rgba(24, 24, 40, 0.65);
    backdrop-filter: blur(16px) saturate(1.5);
    border-radius: 32px;
    box-shadow: 0 8px 48px rgba(90, 90, 247, 0.3);
}

h1 {
    font-size: 2.6rem;
    font-weight: 800;
    text-align: center;
    margin: 8px 0 16px; /* Ajusta margens */
    background: linear-gradient(135deg, #fff 30%, #00e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 32px #5a5af788;
    animation: floatingTitle 3.5s ease-in-out infinite alternate;
    line-height: 1.2;
}

@keyframes floatingTitle {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: #bdbdfc;
    margin-top: 8px;
    text-shadow: 0 2px 16px #5a5af744;
    background: linear-gradient(135deg, #bdbdfc 30%, #00e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.avatar-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0 0; /* Reduz margem inferior */
    padding-top: 16px;
    order: -1;
}

.avatar-glow {
    background: rgba(90, 90, 247, 0.18);
    border-radius: 50%;
    padding: 12px; /* Reduz padding */
    box-shadow: 0 0 48px #5a5af7cc;
    transform: scale(1); /* Diminui escala */
}

/* Botão bolha mais brilhante e maior */
.bubble-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;  /* Aumentado de 180px */
    height: 220px; /* Aumentado de 180px */
    border-radius: 50%;
    background: radial-gradient(circle at 60% 40%, #00e0ff 40%, #5a5af7 120%);
    box-shadow: 0 0 64px #00e0ff88, inset 0 0 32px rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    animation: bubblePulse 2s infinite cubic-bezier(.4,0,.2,1);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}

.bubble-btn:active {
    transform: scale(0.95);
}

@keyframes bubblePulse {
    0%   { transform: scale(1); box-shadow: 0 0 64px #00e0ff88; }
    50%  { transform: scale(1.05); box-shadow: 0 0 96px #00e0ffaa; }
    100% { transform: scale(1); box-shadow: 0 0 64px #00e0ff88; }
}

.bubble-icon {
    margin-bottom: 12px;
    animation: bubbleIconPulse 1.2s infinite;
}

@keyframes bubbleIconPulse {
    0%, 100% { filter: drop-shadow(0 0 8px #00e0ffcc);}
    50% { filter: drop-shadow(0 0 24px #00e0ffcc);}
}

/* Ajuste do ícone e texto para o botão maior */
.bubble-icon svg {
    width: 56px;   /* Aumentado de 48px */
    height: 56px;  /* Aumentado de 48px */
}

.bubble-text {
    font-size: 1.6rem; /* Aumentado de 1.4rem */
    font-weight: 700;
    text-shadow: 0 2px 12px #5a5af7cc;
}

/* Área de resposta mais elegante */
.caption-feedback {
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
    background: rgba(24, 24, 40, 0.75);
    padding: 24px 32px;
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(90, 90, 247, 0.15);
    max-width: 440px;
    width: 100%;
    margin-top: 0;
    margin-bottom: 24px;
    min-height: 80px;
    transition: all 0.3s ease;
}

.caption-feedback.thinking {
    background: rgba(90, 90, 247, 0.1);
    animation: thinking 2s infinite;
}

@keyframes thinking {
    0%   { opacity: 0.5; }
    50%  { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Botão de ouvir mais moderno */
.viva-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 32px;
    background: linear-gradient(135deg, #00ffb8, #00e0ff);
    color: #0f0f0f;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 36px rgba(0, 255, 184, 0.3);
    transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

.viva-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 255, 184, 0.4);
}

.viva-btn:active {
    transform: scale(0.98);
}

/* Responsividade melhorada */
@media (max-width: 600px) {
    .container {
        padding: 32px 16px;
        gap: 24px;
    }

    .button-group {
        padding: 32px 0;
    }

    .avatar-wrapper {
        margin: 8px 0 0;
        padding-top: 12px;
    }
    
    .avatar-glow {
        padding: 10px;
        transform: scale(0.9);
    }

    .bubble-btn {
        width: 280px;  /* Aumentado de 160px */
        height: 280px; /* Aumentado de 160px */
    }
    
    .bubble-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .bubble-text {
        font-size: 1.4rem;
    }
}
