/* Voice app container */
.voice-app {
    min-height: 100vh;
    background-color: #000000;
    position: relative;
}

.voice-container {
    position: relative;
    min-height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
}

/* Header styles */
.voice-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1rem;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 220px;
}

.header-logo {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.logo-image {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-slogan {
    color: white;
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Pulse animation for logo */
.pulse-logo {
    animation: logo-pulse 3s infinite;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.1);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Control buttons container */
.voice-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 51;
}

.stop-button,
.chat-toggle,
.menu-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.stop-button:hover,
.chat-toggle:hover,
.menu-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stop-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Voice menu */
.voice-menu {
    position: absolute;
    top: 3rem;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    z-index: 52;
    min-width: 150px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item i {
    width: 1rem;
    text-align: center;
}

/* Main content area */
.chat-messages,
.voice-bubble-container {
    margin-top: 220px;
    padding: 1rem;
    min-height: calc(100vh - 220px);
    position: relative;
    z-index: 40;
}

/* Voice bubble container */
.voice-bubble-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: #000000;
}

/* Voice bubble */
.voice-bubble {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 41;
}

.voice-bubble::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s;
    z-index: -1;
}

.voice-bubble:hover::before {
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.voice-bubble.listening::before {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
    animation: pulse 2s infinite;
}

.voice-bubble.processing::before {
    border-color: rgba(245, 158, 11, 0.8);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.8);
    animation: spin 2s linear infinite;
}

.voice-bubble.talking::before {
    border: none;
    box-shadow: none;
}

/* Neon ring for talking state */
.voice-bubble.talking::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #ff0080,
        #ff8c00,
        #ffed00,
        #00ff80,
        #00bfff,
        #8a2be2,
        #ff0080
    );
    animation: colorRotate 3s linear infinite;
    z-index: -2;
    filter: blur(8px);
}

/* Ring mask for talking state */
.voice-bubble.talking .ring-mask {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: #000;
    z-index: -1;
}

.voice-bubble.talking .ring-mask::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    background: #000;
    z-index: 1;
}

.voice-bubble img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}

.voice-bubble-text {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: white;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Footer container */
.footer-container {
    position: fixed;
    bottom: 5rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 45;
}

/* Chat input container */
.chat-input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 46;
}

/* Chat header styling */
.chat-header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ai-logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    color: white;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes colorRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .header-logo {
        height: 150px;
    }

    .logo-slogan {
        font-size: 1rem;
    }

    .voice-header {
        min-height: 170px;
    }

    .chat-messages,
    .voice-bubble-container {
        margin-top: 170px;
        min-height: calc(100vh - 170px);
    }

    .voice-bubble {
        width: 150px;
        height: 150px;
    }

    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
        bottom: 4.5rem;
        right: 0.5rem;
    }

    .stop-button,
    .chat-toggle,
    .menu-button {
        width: 2rem;
        height: 2rem;
    }

    .voice-bubble-text {
        font-size: 0.9rem;
    }

    .chat-input-container {
        padding: 0.75rem;
    }
}
