/* ============================================================
   WhingeHub Video Call UI
   ============================================================ */

/* ── Full-screen call overlay ── */
#vc-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: vcFadeIn 0.2s ease;
}

@keyframes vcFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── Video tiles ── */
.vc-videos {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#vc-remote {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111;
}

#vc-local {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #222;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* ── Control bar ── */
.vc-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 1;
}

.vc-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s, transform 0.15s;
}

.vc-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.vc-btn.vc-btn-off {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.vc-btn-hangup {
    background: #ef4444;
    width: 64px;
    height: 64px;
}

.vc-btn-hangup:hover {
    background: #dc2626;
}

/* ── Status text ── */
.vc-status {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}

/* ── Incoming call toast ── */
#vc-incoming-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 19999;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

#vc-incoming-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.vc-toast-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-secondary, #1f1f23);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 14px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    min-width: 280px;
    max-width: 360px;
}

.vc-toast-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.vc-toast-info {
    flex: 1;
}

.vc-toast-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}

.vc-toast-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-top: 2px;
}

.vc-toast-actions {
    display: flex;
    gap: 10px;
}

.vc-toast-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform 0.15s, filter 0.2s;
}

.vc-toast-btn:hover {
    transform: scale(1.1);
}

.vc-toast-accept {
    background: #22c55e;
    color: #fff;
}

.vc-toast-decline {
    background: #ef4444;
    color: #fff;
}

/* ── Profile "Video Call" button ── */
.vc-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.vc-call-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    #vc-local {
        width: 100px;
        height: 70px;
        bottom: 90px;
        right: 10px;
    }

    .vc-toast-inner {
        min-width: 240px;
    }
}