/* ============================================================
   LearnPress - Lessons Slider — slider.css
   ============================================================ */

/* ── Wrapper ── */
.lpls-slider {
    position: relative;
    overflow: hidden;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
    font-family: inherit;
    max-width: 100%;
}

/* ── Slides track ── */
.lpls-slides-track {
    position: relative;
}

/* ── Individual slide ── */
.lpls-slide {
    display: none;
    flex-direction: column;
}
.lpls-slide.lpls-active {
    display: flex;
}

/* ── Slide title ── */
.lpls-slide-title {
    padding: 14px 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #e8e8f0;
    letter-spacing: .02em;
}

/* ── Slide image ── */
.lpls-slide-image {
    width: 100%;
    height: 400px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0d0d1a;
    transition: opacity .3s ease;
}

/* ── Slide footer (audio + doc button) ── */
.lpls-slide-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(0,0,0,.25);
}

/* ── Audio player ── */
.lpls-audio-wrap {
    flex: 1 1 260px;
}
.lpls-audio {
    width: 100%;
    height: 38px;
    border-radius: 6px;
    outline: none;
    accent-color: #0073aa;
}

/* ── Document button ── */
.lpls-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2d6a4f;
    color: #fff;
    border-radius: 6px;
    font-size: .85rem;
    text-decoration: none;
    transition: background .2s, transform .1s;
    white-space: nowrap;
    cursor: pointer;
    border: none;
}
.lpls-doc-btn:hover {
    background: #1b4332;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

/* ── Navigation bar ── */
.lpls-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(0,0,0,.35);
    border-top: 1px solid rgba(255,255,255,.07);
}

/* ── Nav buttons (shared) ── */
.lpls-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .1s, opacity .2s;
}
.lpls-btn:hover:not(:disabled) {
    background: #005f8d;
    transform: translateY(-1px);
}
.lpls-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

/* ── Slide counter ── */
.lpls-counter {
    font-size: .9rem;
    color: #ccc;
    min-width: 60px;
    text-align: center;
    letter-spacing: .05em;
}
.lpls-current {
    font-weight: 700;
    color: #ffffff;
}

/* ── LearnPress notice ── */
.lpls-lp-notice {
    padding: 10px 20px;
    background: rgba(255, 160, 0, .12);
    border-left: 4px solid #ffa000;
    font-size: .82rem;
    color: #ffe082;
    transition: opacity .4s, max-height .4s;
    max-height: 60px;
    overflow: hidden;
}
.lpls-lp-notice.lpls-notice-hidden {
    max-height: 0;
    padding: 0 20px;
    opacity: 0;
}

/* ── Progress dots ── */
.lpls-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 4px;
}
.lpls-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.25);
    transition: background .25s, transform .2s;
    cursor: pointer;
}
.lpls-dot.lpls-dot-seen {
    background: rgba(255,255,255,.55);
}
.lpls-dot.lpls-dot-active {
    background: #0073aa;
    transform: scale(1.3);
}

/* ── Slide transition animation ── */
@keyframes lpls-fadein {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
.lpls-slide.lpls-active {
    animation: lpls-fadein .25s ease;
}

/* ── Responsive ── */
@media (max-width: 500px) {
    .lpls-slide-image { height: 200px; }
    .lpls-nav { padding: 10px 12px; }
    .lpls-btn { padding: 7px 12px; font-size: .8rem; }
    .lpls-slide-footer { padding: 10px 12px; }
    .lpls-slide-title { padding: 10px 12px 0; }
}

/* ── YouTube / Video embed ── */
.lpls-video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    overflow: hidden;
}
.lpls-video-wrap .lpls-youtube {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.lpls-video-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    padding-bottom: 0;
    height: 120px;
}
.lpls-video-placeholder p {
    color: #ff9800;
    font-size: .85rem;
    margin: 0;
    padding: 16px;
    text-align: center;
}

/* ── LP element visibility control ── */
.lpls-lp-hidden {
    display: none !important;
}


/* ── Shake animation for notice ── */
@keyframes lpls-shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}
.lpls-shake {
    animation: lpls-shake .5s ease !important;
}

/* ── Complete & Continue button state ── */
.lpls-btn.lpls-btn-complete {
    background: #2d6a4f;
    padding-left: 24px;
    padding-right: 24px;
    animation: lpls-pulse 1.8s ease-in-out infinite;
}
.lpls-btn.lpls-btn-complete:hover:not(:disabled) {
    background: #1b4332;
}
@keyframes lpls-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45,106,79,.5); }
    50%       { box-shadow: 0 0 0 8px rgba(45,106,79,0); }
}

/* ── Permanently hide the popup-footer lesson nav bar ── */
#popup-footer {
    display: none !important;
}
