/* ==========================================================================
   Royal Post & Blog Sliders - Shared Styles (Phases 3 Free + Pro)
   ========================================================================== */

.rps-widget {
    --rps-h: 560px;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #0f172a;
    color: #ffffff;
}

.rps-stage {
    position: relative;
    width: 100%;
    min-height: var(--rps-h);
    overflow: hidden;
}

.rps-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.rps-slide.is-active {
    position: relative;
    min-height: var(--rps-h);
    opacity: 1;
    pointer-events: auto;
    z-index: 4;
}

.rps-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rps-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 5.5s ease;
}

.rps-slide.is-active .rps-media img {
    transform: scale(1);
}

.rps-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42) 0%, rgba(15, 23, 42, 0.88) 100%);
    pointer-events: none;
}

.rps-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    min-height: var(--rps-h);
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 12px;
}

.rps-cat {
    display: inline-flex;
    align-items: center;
    padding: 5px 13px;
    border-radius: 999px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.rps-title {
    margin: 0;
    font-size: clamp(26px, 3.8vw, 46px);
    font-weight: 800;
    line-height: 1.16;
    color: #ffffff;
    max-width: 22ch;
}

.rps-title a,
.rps-title a:visited,
.rps-title a:hover {
    color: inherit;
    text-decoration: none;
}

.rps-title a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.rps-excerpt {
    margin: 0;
    max-width: 56ch;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(241, 245, 249, 0.88);
}

.rps-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
}

.rps-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.rps-author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.rps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-top: 4px;
    transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.rps-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Skin Specifics: Blog Hero (Free) */
.rps-skin-coral .rps-content {
    justify-content: flex-end;
}

.rps-skin-coral .rps-card-panel {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    padding: 30px 34px;
    border-radius: 18px;
    max-width: 600px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.rps-skin-coral .rps-title { color: #0f172a; font-size: clamp(22px, 2.8vw, 34px); }
.rps-skin-coral .rps-excerpt { color: #475569; }
.rps-skin-coral .rps-meta { color: #64748b; }
.rps-skin-coral .rps-btn { background: #0f172a; color: #ffffff; }

.rps-skin-folio .rps-slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    color: #0f172a;
}

.rps-skin-folio .rps-media {
    position: relative;
    order: 2;
    height: var(--rps-h);
}

.rps-skin-folio .rps-scrim {
    display: none;
}

.rps-skin-folio .rps-content {
    order: 1;
    justify-content: center;
    background: #f8fafc;
}

.rps-skin-folio .rps-title { color: #0f172a; }
.rps-skin-folio .rps-excerpt { color: #475569; }
.rps-skin-folio .rps-meta { color: #64748b; }
.rps-skin-folio .rps-btn { background: #0f172a; color: #ffffff; }

/* Zinest / Mercury / Fluent Thumb & Index Lists */
.rps-side-index {
    position: absolute;
    top: 24px;
    right: 24px;
    bottom: 24px;
    width: min(320px, 34%);
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.rps-thumb-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(10px);
    color: #f8fafc;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.rps-thumb-item:hover,
.rps-thumb-item.is-active {
    background: rgba(37, 99, 235, 0.85);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateX(-4px);
}

.rps-thumb-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.rps-thumb-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rps-thumb-date {
    display: block;
    font-size: 11px;
    opacity: 0.78;
    margin-top: 2px;
}

.rps-bottom-strip {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 20px;
    z-index: 12;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}

.rps-skin-mercury .rps-content,
.rps-skin-fluent .rps-content {
    padding-bottom: 120px;
}

.rps-skin-zinest .rps-content {
    max-width: 64%;
    justify-content: center;
}

/* Creative Blog Skins (Rubix, Vertex, Fiestar, Flogia, Pacific) */
.rps-carousel-stage {
    position: relative;
    width: 100%;
    min-height: var(--rps-h);
    padding: 36px 24px;
    display: flex;
    align-items: center;
}

.rps-skin-rubix { background: #111827; }
.rps-skin-vertex { background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #090d16 100%); }
.rps-skin-fiestar { background: linear-gradient(135deg, #1f2937 0%, #0f172a 100%); }
.rps-skin-flogia { background: #090d16; }
.rps-skin-pacific { background: linear-gradient(135deg, #0c4a6e 0%, #0f172a 100%); }

.rps-carousel-track {
    position: relative;
    width: 100%;
    height: calc(var(--rps-h) - 72px);
    perspective: 1100px;
}

.rps-cslide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(360px, 82vw);
    height: calc(var(--rps-h) - 96px);
    border-radius: 18px;
    overflow: hidden;
    background: #1e293b;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    cursor: pointer;
}

.rps-cslide .rps-content {
    min-height: 100%;
    padding: 24px;
}

.rps-cslide .rps-title {
    font-size: 22px;
}

.rps-skin-pacific .rps-wave-svg {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 78px;
    z-index: 6;
    pointer-events: none;
}

/* Pro Post Hero Skins: Knily, Marble, Material */
.rps-skin-knily {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.rps-skin-marble {
    background: radial-gradient(circle at 20% 20%, #f1f5f9 0%, #e2e8f0 100%);
    color: #0f172a;
    padding: 24px;
}

.rps-skin-marble .rps-stage {
    border-radius: 18px;
}

.rps-skin-material {
    background: #18181b;
}

.rps-skin-material .rps-content {
    justify-content: center;
    max-width: 680px;
}

.rps-nav-corner {
    position: absolute;
    right: 24px;
    bottom: 24px;
}

.rps-empty-notice {
    padding: 36px;
    text-align: center;
    background: #f8fafc;
    color: #475569;
    border-radius: 14px;
    border: 1px dashed #cbd5e1;
}

@media (max-width: 900px) {
    .rps-skin-folio .rps-slide {
        grid-template-columns: 1fr;
    }

    .rps-skin-folio .rps-media {
        order: 1;
        height: 240px;
    }

    .rps-skin-folio .rps-content {
        order: 2;
        min-height: auto;
        padding: 28px 20px;
    }

    .rps-side-index {
        display: none;
    }

    .rps-skin-zinest .rps-content {
        max-width: 100%;
    }

    .rps-bottom-strip {
        display: none;
    }

    .rps-skin-mercury .rps-content,
    .rps-skin-fluent .rps-content {
        padding-bottom: 44px;
    }

    .rps-content {
        padding: 28px 20px 54px;
    }

    .rps-title {
        font-size: clamp(20px, 5.2vw, 28px);
        line-height: 1.3;
    }
}
