/* ================================================================
   RDC Hero Slider — Public CSS v1.0.0
   Standalone. Sem dependências externas.
   ================================================================ */

/* ── Wrapper ── */
.rdc-hero-slider {
    position: relative;
    width: 100%;
    height: var(--rdc-height, 520px);
    overflow: hidden;
    background-color: #111;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Slides wrapper ── */
.rdc-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Individual slide ── */
.rdc-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    /* transition set inline from PHP settings */
    will-change: opacity;
    z-index: 0;
}

.rdc-slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* ── Overlay gradient ── */
.rdc-slide-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* background set inline from PHP */
}

/* ── Content area ── */
.rdc-slide-content {
    position: absolute;
    bottom: 72px;
    left: 56px;
    max-width: 54%;
    z-index: 2;
}

/* ── Badge ── */
.rdc-badge {
    display: inline-block;
    padding: 4px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 14px;
    line-height: 1.6;
    /* background + color set inline */
}

/* ── Title ── */
.rdc-slide-title {
    margin: 0 0 14px;
    padding: 0;
    line-height: 1.18;
    /* color + font-size + font-weight set inline */
}

.rdc-slide-title a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s ease;
}

.rdc-slide-title a:hover,
.rdc-slide-title a:focus {
    opacity: .85;
    outline: none;
}

/* ── Excerpt ── */
.rdc-slide-excerpt {
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* color + font-size + line-clamp set inline */
}

/* ── Meta ── */
.rdc-slide-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    /* color + font-size set inline */
}

.rdc-meta-sep {
    opacity: .55;
    font-size: .85em;
}

.rdc-author,
.rdc-date {
    font-style: normal;
}

/* ── Navigation Arrows ── */
.rdc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 300;
    transition: opacity .2s ease, transform .2s ease;
    /* width + height + background + color + font-size set inline */
}

.rdc-arrow:hover {
    opacity: .75;
    transform: translateY(-50%) scale(1.08);
}

.rdc-arrow:focus-visible {
    outline: 2px solid #FF6A00;
    outline-offset: 2px;
}

.rdc-arrow-prev { left: 18px; }
.rdc-arrow-next { right: 18px; }

/* ── Dots ── */
.rdc-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 10;
}

.rdc-dot {
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background-color .3s ease, transform .2s ease, opacity .3s ease;
    opacity: .65;
    /* width + height + background set inline */
}

.rdc-dot.is-active {
    transform: scale(1.35);
    opacity: 1;
}

.rdc-dot:hover {
    opacity: .9;
}

.rdc-dot:focus-visible {
    outline: 2px solid var(--rdc-dot-active, #FF6A00);
    outline-offset: 2px;
}

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 960px) {
    .rdc-slide-content {
        bottom: 60px;
        left: 36px;
        max-width: 70%;
    }
}

@media (max-width: 768px) {
    .rdc-hero-slider {
        height: var(--rdc-mob-h, 320px) !important;
    }

    .rdc-slide-content {
        bottom: 52px;
        left: 24px;
        max-width: 84%;
    }

    .rdc-badge {
        font-size: 10px;
        padding: 3px 10px;
        margin-bottom: 10px;
    }

    .rdc-slide-excerpt {
        display: none;
    }

    .rdc-arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }

    .rdc-arrow-prev { left: 8px; }
    .rdc-arrow-next { right: 8px; }

    .rdc-dots {
        bottom: 14px;
    }
}

@media (max-width: 480px) {
    .rdc-slide-content {
        bottom: 44px;
        left: 16px;
        max-width: 92%;
    }

    .rdc-slide-meta {
        font-size: 12px !important;
    }
}

/* ── Accessibility: reduzir movimento ── */
@media (prefers-reduced-motion: reduce) {
    .rdc-slide {
        transition: none !important;
    }
}
