﻿:root {
    --wpv-primary: #4f46e5;
    --wpv-bg: #0b1020;
    --wpv-card: #121935;
    --wpv-text: #e9ecf8;
    --wpv-muted: #9aa3c7;
    --wpv-radius: 16px;
    --wpv-shadow: 0 10px 30px rgba(0,0,0,.45);
    --wpv-z: 2147483000;
}

/* Launcher */
.wpv-launcher {
    position: fixed;
    right: 72px;
    bottom: 72px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--wpv-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    box-shadow: var(--wpv-shadow);
    cursor: pointer;
    z-index: var(--wpv-z);
    transition: transform .15s ease, box-shadow .2s ease;
}

    .wpv-launcher:hover {
        transform: translateY(-1px) scale(1.05);
    }

.wpv-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font: 600 12px/20px sans-serif;
    text-align: center;
}

/* Panel */
.wpv-panel {
    position: fixed;
    right: 18px;
    bottom: 100px;
    width: 320px;
    height: 420px;
    display: none;
    flex-direction: column;
    background: var(--wpv-card);
    border-radius: var(--wpv-radius);
    box-shadow: var(--wpv-shadow);
    color: var(--wpv-text);
    z-index: var(--wpv-z);
}

.wpv-header {
    padding: 12px;
    font-weight: bold;
    border-bottom: 1px solid #2a3050;
}

.wpv-body {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 14px;
}

.wpv-footer {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid #2a3050;
}

    .wpv-footer input {
        flex: 1;
        padding: 8px;
        border-radius: 8px;
        border: none;
    }

    .wpv-footer button {
        padding: 8px 12px;
        border-radius: 8px;
        border: none;
        background: var(--wpv-primary);
        color: #fff;
        cursor: pointer;
    }

/* Obal na avatar v hlavičke, aby sme vedeli vložiť VU meter */
.wpv-avatar-wrap {
    position: relative;
    width: 40px;
    height: 40px;
}

.wpv-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0b1020;
    padding: 2px;
}

/* Mini VU meter (3 stĺpiky) – zobrazuje sa keď .speaking je na .wpv-avatar-wrap */
.wpv-vu {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 2px;
}

    .wpv-vu i {
        display: inline-block;
        width: 3px;
        height: 6px;
        background: #22c55e;
        border-radius: 2px;
        animation: vu 0.6s infinite ease-in-out;
    }

        .wpv-vu i:nth-child(2) {
            animation-delay: .15s
        }

        .wpv-vu i:nth-child(3) {
            animation-delay: .3s
        }

@keyframes vu {
    0%,100% {
        height: 6px
    }

    50% {
        height: 12px
    }
}

.wpv-avatar-wrap.speaking .wpv-vu {
    display: inline-flex;
}

/* Mikrofón – stavy */
.wpv-mic {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #2a3050;
    background: #0b1020;
    color: var(--wpv-text);
    cursor: pointer;
    font-weight: 700;
}

    .wpv-mic.listening {
        border-color: #22c55e;
        box-shadow: 0 0 0 3px rgba(34,197,94,.15) inset;
    }
