/**
 * VoiceTube Replica Popover - Isolated Styles
 * ALL classes prefixed with .voicetube-* to avoid conflicts
 * NO global selectors - completely self-contained
 */

/* ===== Popover Container ===== */
.voicetube-popover {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.voicetube-popover.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== Backdrop ===== */
.voicetube-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1;
}

/* ===== Popover Content ===== */
.voicetube-content {
    position: relative;
    width: min(98vw, 120rem);
    height: 95vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 1.5625rem 3.125rem -0.75rem rgba(0, 0, 0, 0.5),
                inset 0 0.0625rem 0 rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 2;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ===== Close Button ===== */
.voicetube-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.voicetube-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

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

/* ===== IFrame Container ===== */
.voicetube-iframe {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
    display: block;
    background: transparent;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .voicetube-popover {
        padding: 0.5rem;
    }

    .voicetube-content {
        width: 100vw;
        max-height: 100vh;
        border-radius: 1rem;
    }
}

@media (max-width: 480px) {
    .voicetube-popover {
        padding: 0;
    }

    .voicetube-content {
        width: 100vw;
        max-height: 100vh;
        border-radius: 0;
        border: none;
    }
}
