/* =========================================================================
   [CHAPTER LIVE PREVIEW STYLES]
   ========================================================================= */

.bs-preview-overlay-hidden {
    display: none !important;
}

#bs-preview-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.bs-preview-modal {
    width: 95vw;
    height: 90vh;
    height: 90dvh;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.bs-preview-header {
    height: 50px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.bs-preview-actions-left {
    display: flex;
    align-items: center;
}

.bs-preview-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bs-preview-actions-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-preview-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-preview-control:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-preview-close {
    font-size: 1.4rem;
    padding: 0 8px;
    line-height: 1;
    color: #999;
}

.btn-preview-close:hover {
    color: #f43f5e;
    background: rgba(244, 63, 94, 0.1);
}

.bs-preview-iframe-wrapper {
    flex: 1;
    width: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

#bs-preview-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: transparent;
    transition: all 0.3s ease;
}

/* Device toggle styling (Mobile Mode) */
#bs-preview-overlay.bs-preview-mobile-view .bs-preview-iframe-wrapper {
    width: 390px;
    max-width: 100%;
    margin: 0 auto;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}
