/**
 * Hero Magazine Style
 * 1 large + 2 medium (top row) + 3 small (bottom row)
 * 
 * @package Polanger_VideoHub
 * @since 1.5.0
 */

/* =====================================================
   MAGAZINE STYLE HERO - 1 Large + 2 Medium + 3 Small
   ===================================================== */

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

.pvh-hero-magazine .pvh-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
}

/* Top row container - main + medium wrapper side by side */
.pvh-hero-magazine .pvh-hero-top-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 450px;
}

/* Main large video */
.pvh-hero-magazine .pvh-hero-main {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    height: 100%;
}

/* Medium wrapper - 2 cards stacked vertically on the right */
.pvh-hero-magazine .pvh-hero-medium-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.pvh-hero-magazine .pvh-hero-medium {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    flex: 1;
}

/* Bottom row - 3 small cards */
.pvh-hero-magazine .pvh-hero-row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.pvh-hero-magazine .pvh-hero-small {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    height: 180px;
}

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

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

.pvh-hero-magazine .pvh-hero-main:hover .pvh-hero-backdrop img,
.pvh-hero-magazine .pvh-hero-medium:hover .pvh-hero-backdrop img,
.pvh-hero-magazine .pvh-hero-small:hover .pvh-hero-backdrop img {
    transform: scale(1.05);
}

/* Gradient styles */
.pvh-hero-magazine .pvh-hero-main .pvh-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 80%);
}

.pvh-hero-magazine .pvh-hero-medium .pvh-hero-gradient,
.pvh-hero-magazine .pvh-hero-small .pvh-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

/* Video icon badge */
.pvh-hero-magazine .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-magazine .pvh-hero-main:hover .pvh-hero-video-icon,
.pvh-hero-magazine .pvh-hero-medium:hover .pvh-hero-video-icon,
.pvh-hero-magazine .pvh-hero-small:hover .pvh-hero-video-icon {
    opacity: 1;
}

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

.pvh-hero-magazine .pvh-hero-medium .pvh-hero-video-icon,
.pvh-hero-magazine .pvh-hero-small .pvh-hero-video-icon {
    top: 8px;
    right: 8px;
    padding: 4px 6px;
}

.pvh-hero-magazine .pvh-hero-medium .pvh-hero-video-icon .dashicons,
.pvh-hero-magazine .pvh-hero-small .pvh-hero-video-icon .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

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

.pvh-hero-magazine .pvh-hero-medium .pvh-hero-content,
.pvh-hero-magazine .pvh-hero-small .pvh-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    z-index: 3;
}

.pvh-hero-magazine .pvh-hero-category {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--pvh-primary-color, #ff0000);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.pvh-hero-magazine .pvh-hero-main .pvh-hero-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #fff !important;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.pvh-hero-magazine .pvh-hero-medium .pvh-hero-title {
    font-size: 16px;
    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-magazine .pvh-hero-small .pvh-hero-title {
    font-size: 14px;
    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-magazine .pvh-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.pvh-hero-magazine .pvh-hero-medium .pvh-hero-meta,
.pvh-hero-magazine .pvh-hero-small .pvh-hero-meta {
    font-size: 11px;
    margin-bottom: 0;
    margin-top: 4px;
}

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

/* =====================================================
   RESPONSIVE - Magazine Style
   ===================================================== */

@media screen and (max-width: 1024px) {
    .pvh-hero-magazine .pvh-hero-grid {
        grid-template-rows: 180px 180px 160px;
    }
    
    .pvh-hero-magazine .pvh-hero-main .pvh-hero-title {
        font-size: 22px;
    }
    
    .pvh-hero-magazine .pvh-hero-medium .pvh-hero-title {
        font-size: 14px;
    }
    
    .pvh-hero-magazine .pvh-hero-small .pvh-hero-title {
        font-size: 13px;
    }
}

@media screen and (max-width: 768px) {
    .pvh-hero-magazine .pvh-hero-grid {
        gap: 8px;
        padding: 0 10px;
    }
    
    .pvh-hero-magazine .pvh-hero-top-row {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .pvh-hero-magazine .pvh-hero-main {
        height: 220px;
    }
    
    .pvh-hero-magazine .pvh-hero-medium-wrapper {
        flex-direction: row;
        height: auto;
    }
    
    .pvh-hero-magazine .pvh-hero-medium {
        height: 140px;
        flex: 1;
    }
    
    .pvh-hero-magazine .pvh-hero-row-bottom {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .pvh-hero-magazine .pvh-hero-small {
        height: 120px;
    }
    
    .pvh-hero-magazine .pvh-hero-main .pvh-hero-title {
        font-size: 18px;
    }
    
    .pvh-hero-magazine .pvh-hero-main .pvh-hero-content {
        padding: 16px;
    }
    
    .pvh-hero-magazine .pvh-hero-medium .pvh-hero-title,
    .pvh-hero-magazine .pvh-hero-small .pvh-hero-title {
        font-size: 12px;
    }
    
    .pvh-hero-magazine .pvh-hero-medium .pvh-hero-content,
    .pvh-hero-magazine .pvh-hero-small .pvh-hero-content {
        padding: 10px;
    }
    
    .pvh-hero-magazine .pvh-hero-category {
        font-size: 9px;
        margin-bottom: 4px;
    }
}

@media screen and (max-width: 576px) {
    .pvh-hero-magazine .pvh-hero-grid {
        padding: 0 5px;
    }
    
    .pvh-hero-magazine .pvh-hero-main {
        height: 180px;
    }
    
    .pvh-hero-magazine .pvh-hero-medium {
        height: 110px;
    }
    
    .pvh-hero-magazine .pvh-hero-small {
        height: 100px;
    }
    
    .pvh-hero-magazine .pvh-hero-main .pvh-hero-title {
        font-size: 16px;
    }
    
    .pvh-hero-magazine .pvh-hero-medium .pvh-hero-title,
    .pvh-hero-magazine .pvh-hero-small .pvh-hero-title {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
    
    .pvh-hero-magazine .pvh-hero-medium .pvh-hero-content,
    .pvh-hero-magazine .pvh-hero-small .pvh-hero-content {
        padding: 8px;
    }
    
    .pvh-hero-magazine .pvh-hero-category {
        display: none;
    }
    
    .pvh-hero-magazine .pvh-hero-medium .pvh-hero-meta,
    .pvh-hero-magazine .pvh-hero-small .pvh-hero-meta {
        display: none;
    }
}
