/* ================================================================
   Sticky Content Sequence — Frontend CSS
   ================================================================ */

/* ---------------------------------------------------------------
   Container
--------------------------------------------------------------- */
.scs-sticky-container {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.scs-sticky-container.scs-hidden {
    display: none !important;
}

/* ---------------------------------------------------------------
   Toolbar
--------------------------------------------------------------- */
.scs-toolbar {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
}

.scs-label {
    display: none;
}

.scs-controls {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.scs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    width: 26px;
    height: 26px;
    padding: 0;
    transition: background 0.2s ease;
    line-height: 1;
}

.scs-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.scs-btn-close:hover {
    background: rgba(220, 50, 50, 0.7);
}

/* ---------------------------------------------------------------
   Content Area
--------------------------------------------------------------- */
.scs-content-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #000;
}

.scs-content-area iframe,
.scs-content-area video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.scs-content-area .scs-shortcode-wrap {
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
}

/* Fade transition between items */
.scs-content-area.scs-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.scs-content-area.scs-fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* ---------------------------------------------------------------
   Progress Bar
--------------------------------------------------------------- */
.scs-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

.scs-progress-inner {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width linear;
}

/* ---------------------------------------------------------------
   Entry Animations
--------------------------------------------------------------- */
@keyframes scs-fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scs-slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scs-slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scs-zoomIn {
    from { opacity: 0; transform: scale(0.75); }
    to   { opacity: 1; transform: scale(1); }
}

.scs-anim-fadeInUp   { animation: scs-fadeInUp    0.45s ease forwards; }
.scs-anim-slideInRight { animation: scs-slideInRight 0.45s ease forwards; }
.scs-anim-slideInLeft  { animation: scs-slideInLeft  0.45s ease forwards; }
.scs-anim-zoomIn     { animation: scs-zoomIn      0.45s ease forwards; }
.scs-anim-none       { /* no animation */ }

/* ---------------------------------------------------------------
   Fullscreen Overlay
--------------------------------------------------------------- */
.scs-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scs-fadeInOverlay 0.25s ease;
}

@keyframes scs-fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.scs-fullscreen-inner {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}

.scs-fullscreen-inner iframe,
.scs-fullscreen-inner video {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.scs-fullscreen-toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.scs-fullscreen-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    width: 36px;
    height: 36px;
    padding: 0;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.scs-fullscreen-close:hover {
    background: rgba(220, 50, 50, 0.8);
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 768px) {
    .scs-sticky-container {
        max-width: calc(100vw - 24px) !important;
        max-height: 50vw !important;
    }

    .scs-pos-bottom-right,
    .scs-pos-bottom-left {
        bottom: 12px !important;
    }

    .scs-pos-top-right,
    .scs-pos-top-left {
        top: 12px !important;
    }

    .scs-pos-bottom-right,
    .scs-pos-top-right {
        right: 12px !important;
        left: auto !important;
    }

    .scs-pos-bottom-left,
    .scs-pos-top-left {
        left: 12px !important;
        right: auto !important;
    }

    .scs-fullscreen-inner {
        width: 100vw;
        height: 60vw;
        border-radius: 0;
        max-width: 100vw;
    }
}
