/* =============================================================
   PHT Content Cluster V3 — Widget CSS
   ============================================================= */

/* Grid principal */
.pht-cluster-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 560px;
    box-sizing: border-box;
}

/* Colunas */
.pht-hero-slider,
.pht-side-column {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.pht-side-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cards */
.pht-post-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #0f172a;
}

/* Overlay gradiente */
.pht-post-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000000EE 5%, #00000044 55%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.pht-post-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.pht-post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.pht-post-link:hover .pht-post-image {
    transform: scale(1.05);
}

/* Conteúdo (badge + título) */
.pht-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px 24px;
    z-index: 2;
}

.pht-side-column .pht-content {
    padding: 0 14px 14px;
}

.pht-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #00d26a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pht-main-title,
.pht-side-title {
    margin: 0;
    color: #fff;
    line-height: 1.18;
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
}

.pht-main-title  { font-size: 38px; }
.pht-side-title  { font-size: 17px; line-height: 1.25; }

/* =============================================================
   Hero Slides — estados base (sem transição ainda)
   ============================================================= */
.is-hero-slide {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.is-hero-slide.is-active {
    pointer-events: auto;
}

/* Side cards */
.pht-side-column .is-side {
    flex: 1;
    min-height: 160px;
}

/* =============================================================
   Efeitos de transição
   ============================================================= */

/* ---- FADE (padrão) ---------------------------------------- */
.pht-cluster-grid[data-transition="fade"] .is-hero-slide {
    opacity: 0;
    transition: opacity var(--pht-duration, 0.5s) ease;
}
.pht-cluster-grid[data-transition="fade"] .is-hero-slide.is-active {
    opacity: 1;
}

/* ---- SLIDE lateral ---------------------------------------- */
.pht-cluster-grid[data-transition="slide"] .is-hero-slide {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity var(--pht-duration, 0.5s) ease,
                transform var(--pht-duration, 0.5s) ease;
}
.pht-cluster-grid[data-transition="slide"] .is-hero-slide.is-active {
    opacity: 1;
    transform: translateX(0);
}
.pht-cluster-grid[data-transition="slide"] .is-hero-slide.is-leaving {
    opacity: 0;
    transform: translateX(-60px);
}

/* ---- SLIDE vertical --------------------------------------- */
.pht-cluster-grid[data-transition="slide-up"] .is-hero-slide {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--pht-duration, 0.5s) ease,
                transform var(--pht-duration, 0.5s) ease;
}
.pht-cluster-grid[data-transition="slide-up"] .is-hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
}
.pht-cluster-grid[data-transition="slide-up"] .is-hero-slide.is-leaving {
    opacity: 0;
    transform: translateY(-50px);
}

/* ---- ZOOM ------------------------------------------------- */
.pht-cluster-grid[data-transition="zoom"] .is-hero-slide {
    opacity: 0;
    transform: scale(1.1);
    transition: opacity var(--pht-duration, 0.5s) ease,
                transform var(--pht-duration, 0.5s) ease;
}
.pht-cluster-grid[data-transition="zoom"] .is-hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.pht-cluster-grid[data-transition="zoom"] .is-hero-slide.is-leaving {
    opacity: 0;
    transform: scale(0.92);
}

/* ---- BLUR + FADE ------------------------------------------ */
.pht-cluster-grid[data-transition="blur"] .is-hero-slide {
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.05);
    transition: opacity var(--pht-duration, 0.6s) ease,
                filter var(--pht-duration, 0.6s) ease,
                transform var(--pht-duration, 0.6s) ease;
}
.pht-cluster-grid[data-transition="blur"] .is-hero-slide.is-active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
.pht-cluster-grid[data-transition="blur"] .is-hero-slide.is-leaving {
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.97);
}

/* ---- FLIP horizontal -------------------------------------- */
.pht-cluster-grid[data-transition="flip"] {
    perspective: 1200px;
}
.pht-cluster-grid[data-transition="flip"] .is-hero-slide {
    opacity: 0;
    transform: rotateY(15deg) scale(0.95);
    transform-origin: left center;
    transition: opacity var(--pht-duration, 0.6s) ease,
                transform var(--pht-duration, 0.6s) ease;
}
.pht-cluster-grid[data-transition="flip"] .is-hero-slide.is-active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}
.pht-cluster-grid[data-transition="flip"] .is-hero-slide.is-leaving {
    opacity: 0;
    transform: rotateY(-15deg) scale(0.95);
    transform-origin: right center;
}

/* =============================================================
   Controles (dots + setas)
   ============================================================= */
.pht-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
}

.pht-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.pht-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.pht-dot.active {
    background: #00d26a;
    width: 22px;
}

.pht-arrow {
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    padding: 0;
    flex-shrink: 0;
    z-index: 5;
}

.pht-arrow:hover {
    background: rgba(0,0,0,0.75);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
    .pht-main-title { font-size: 28px; }
    .pht-side-title { font-size: 15px; }
}

@media (max-width: 767px) {
    .pht-cluster-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .pht-hero-slider {
        min-height: 320px;
        height: 320px !important;
    }

    .pht-side-column {
        height: auto;
    }

    .pht-side-column .is-side {
        min-height: 160px;
    }

    .pht-main-title { font-size: 24px; }
    .pht-side-title { font-size: 15px; }
}
