/**
 * Hero Netflix Style
 * 1 large video + 3 small videos (vertical sidebar)
 * 
 * @package Polanger_VideoHub
 * @since 1.5.0
 */

/* =====================================================
   NETFLIX STYLE HERO - 1 Large + 3 Small (Sidebar)
   ===================================================== */

.pvh-hero-netflix {
    height: auto;
    min-height: auto;
    max-height: none;
}

.pvh-hero-netflix .pvh-hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 12px;
    height: 500px;
    padding: 0 20px;
}

.pvh-hero-netflix .pvh-hero-main,
.pvh-hero-netflix .pvh-hero-side {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
}

.pvh-hero-netflix .pvh-hero-main {
    grid-row: 1 / 4;
    grid-column: 1;
}

.pvh-hero-netflix .pvh-hero-sidebar {
    display: contents;
}

.pvh-hero-netflix .pvh-hero-side {
    grid-column: 2;
}

/* Backdrop styles */
.pvh-hero-netflix .pvh-hero-main .pvh-hero-backdrop,
.pvh-hero-netflix .pvh-hero-side .pvh-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.pvh-hero-netflix .pvh-hero-main .pvh-hero-backdrop img,
.pvh-hero-netflix .pvh-hero-side .pvh-hero-backdrop img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pvh-hero-netflix .pvh-hero-main:hover .pvh-hero-backdrop img,
.pvh-hero-netflix .pvh-hero-side:hover .pvh-hero-backdrop img {
    transform: scale(1.05);
}

/* Gradient styles */
.pvh-hero-netflix .pvh-hero-main .pvh-hero-gradient,
.pvh-hero-netflix .pvh-hero-side .pvh-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.pvh-hero-netflix .pvh-hero-main .pvh-hero-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 40%, transparent 70%);
}

.pvh-hero-netflix .pvh-hero-side .pvh-hero-gradient {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
}

/* Video icon badge */
.pvh-hero-netflix .pvh-hero-video-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 8px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.pvh-hero-netflix .pvh-hero-main:hover .pvh-hero-video-icon,
.pvh-hero-netflix .pvh-hero-side:hover .pvh-hero-video-icon {
    opacity: 1;
}

.pvh-hero-netflix .pvh-hero-video-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.pvh-hero-netflix .pvh-hero-side .pvh-hero-video-icon {
    top: 8px;
    right: 8px;
    padding: 4px 6px;
}

.pvh-hero-netflix .pvh-hero-side .pvh-hero-video-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Content styles */
.pvh-hero-netflix .pvh-hero-main .pvh-hero-content,
.pvh-hero-netflix .pvh-hero-side .pvh-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 3;
}

.pvh-hero-netflix .pvh-hero-side .pvh-hero-content {
    padding: 16px;
}

.pvh-hero-netflix .pvh-hero-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--pvh-primary-color, #ff0000);
    margin-bottom: 8px;
}

.pvh-hero-netflix .pvh-hero-main .pvh-hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #fff !important;
}

.pvh-hero-netflix .pvh-hero-side .pvh-hero-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: #fff !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pvh-hero-netflix .pvh-hero-main .pvh-hero-meta {
    margin-bottom: 16px;
}

.pvh-hero-netflix .pvh-hero-main .pvh-hero-play-btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* =====================================================
   RESPONSIVE - Netflix Style
   ===================================================== */

@media screen and (max-width: 1024px) {
    .pvh-hero-netflix .pvh-hero-grid {
        height: 450px;
    }
    
    .pvh-hero-netflix .pvh-hero-main .pvh-hero-title {
        font-size: 22px;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-title {
        font-size: 12px;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-content {
        padding: 12px;
    }
}

@media screen and (max-width: 768px) {
    .pvh-hero-netflix .pvh-hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 8px;
        padding: 0 10px;
    }
    
    .pvh-hero-netflix .pvh-hero-main {
        grid-row: auto;
        grid-column: auto;
        height: 220px;
    }
    
    .pvh-hero-netflix .pvh-hero-sidebar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .pvh-hero-netflix .pvh-hero-side {
        grid-column: auto;
        height: 120px;
    }
    
    .pvh-hero-netflix .pvh-hero-main .pvh-hero-title {
        font-size: 18px;
    }
    
    .pvh-hero-netflix .pvh-hero-main .pvh-hero-content {
        padding: 16px;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-content {
        padding: 10px;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-category {
        font-size: 9px;
        margin-bottom: 4px;
    }
}

@media screen and (max-width: 576px) {
    .pvh-hero-netflix .pvh-hero-grid {
        padding: 0 5px;
    }
    
    .pvh-hero-netflix .pvh-hero-main {
        height: 200px;
    }
    
    .pvh-hero-netflix .pvh-hero-sidebar {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .pvh-hero-netflix .pvh-hero-side {
        height: 100px;
    }
    
    .pvh-hero-netflix .pvh-hero-main .pvh-hero-title {
        font-size: 16px;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-title {
        font-size: 10px;
        -webkit-line-clamp: 2;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-content {
        padding: 8px;
    }
    
    .pvh-hero-netflix .pvh-hero-side .pvh-hero-category {
        display: none;
    }
}
