/**
 * Dynamic Slider Frontend Styles
 */

.flexslider {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.videohub-flexslider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.videohub-flexslider .slides {
    margin: 0;
    padding: 0;
    list-style: none;
}

.videohub-flexslider .slides li {
    display: none;
    position: relative;
}

.videohub-flexslider .slides li:first-child {
    display: block;
}

.videohub-featured-slide {
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
}

.videohub-featured-slide.fullscreen {
    min-height: 100vh;
    height: 100vh;
}

.videohub-featured-slide.fullscreen-contain {
    min-height: 100vh;
    height: 100vh;
    background-size: contain;
    background-color: #000;
}

.videohub-featured-slide.widescreen {
    min-height: 0;
    height: 0;
    padding-bottom: 56.25%;
}

.videohub-featured-slide.widescreen-full {
    min-height: 56.25vw;
    height: 56.25vw;
    max-height: 100vh;
}

.videohub-image-flex-slide {
    background-repeat: no-repeat;
}

.videohub-video-flex-slide {
    background: #000;
}

.videohub-video-flex-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.videohub-video-flex-container video,
.videohub-video-flex-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.videohub-video-slide-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.videohub-video-flex-container video:playing ~ .videohub-video-slide-fallback-image,
.videohub-video-flex-container iframe ~ .videohub-video-slide-fallback-image {
    display: none;
}

.videohub-slide-mute-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}

.videohub-slide-mute-button:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.videohub-slide-mute-button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.videohub-slide-link-full {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slider-container {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    min-height: 400px;
    padding: 40px 60px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.slider-content-left .videohub-featured-slide-content {
    text-align: left;
}

.slider-content-center {
    justify-content: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.slider-content-center .videohub-featured-slide-content {
    text-align: center;
}

.slider-content-right {
    justify-content: flex-end;
    background: linear-gradient(270deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.slider-content-right .videohub-featured-slide-content {
    text-align: right;
}

.videohub-featured-slide-content {
    max-width: 600px;
    color: #fff;
}

.sliderTitle {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sliderDescription {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sliderDescription p {
    margin: 0;
}

.videohub-featured-slide-content .button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--vh-primary, #6366f1);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    position: relative;
    z-index: 10;
}

.videohub-featured-slide-content .button:hover {
    background: var(--vh-primary-dark, #4f46e5);
    transform: translateY(-2px);
}

.videohub-featured-slide-content .button.large {
    padding: 16px 36px;
    font-size: 1.15rem;
}

/* FlexSlider Navigation */
.videohub-flexslider .flex-direction-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.videohub-flexslider .flex-direction-nav a {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 0;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
}

.videohub-flexslider .flex-direction-nav a::before {
    font-family: dashicons;
    font-size: 24px;
}

.videohub-flexslider .flex-direction-nav a.flex-prev {
    left: 20px;
}

.videohub-flexslider .flex-direction-nav a.flex-prev::before {
    content: "\f341";
}

.videohub-flexslider .flex-direction-nav a.flex-next {
    right: 20px;
}

.videohub-flexslider .flex-direction-nav a.flex-next::before {
    content: "\f345";
}

.videohub-flexslider:hover .flex-direction-nav a {
    opacity: 1;
}

.videohub-flexslider .flex-direction-nav a:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* FlexSlider Pagination */
.videohub-flexslider .flex-control-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
    margin: 0;
    padding: 0;
    list-style: none;
}

.videohub-flexslider .flex-control-nav li {
    margin: 0;
}

.videohub-flexslider .flex-control-nav a {
    display: block;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    font-size: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.videohub-flexslider .flex-control-nav a:hover {
    background: rgba(255, 255, 255, 0.8);
}

.videohub-flexslider .flex-control-nav a.flex-active {
    background: #fff;
    transform: scale(1.2);
}

/* Inline Featured Area */
.videohub-inline-featured-area {
    margin-bottom: 30px;
    border-radius: var(--vh-card-radius, 12px);
    overflow: hidden;
}

/* Cinematic Aspect Ratio */
.videohub-video-flex-slide.cinematic {
    min-height: 300px;
}

.videohub-video-flex-slide.cinematic .slider-container {
    min-height: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .videohub-featured-slide {
        min-height: 300px;
    }
    
    .slider-container {
        min-height: 300px;
        padding: 30px;
    }
    
    .sliderTitle {
        font-size: 1.8rem;
    }
    
    .sliderDescription {
        font-size: 1rem;
    }
    
    .videohub-flexslider .flex-direction-nav a {
        width: 40px;
        height: 40px;
    }
    
    .videohub-flexslider .flex-direction-nav a::before {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .videohub-featured-slide {
        min-height: 250px;
    }
    
    .slider-container {
        min-height: 250px;
        padding: 20px;
    }
    
    .sliderTitle {
        font-size: 1.4rem;
    }
    
    .sliderDescription {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .videohub-featured-slide-content .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Featured Area Placeholder */
.videohub-featured-area-placeholder {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.videohub-featured-area-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.videohub-featured-area-placeholder .container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.videohub-example-slide {
    color: #fff;
}

.videohub-example-slide .sliderTitle {
    font-size: 2rem;
    margin-bottom: 15px;
}

.videohub-example-slide .sliderDescription {
    margin-bottom: 25px;
    opacity: 0.9;
}

.videohub-example-slide .button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--vh-primary, #6366f1);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.videohub-example-slide .button:hover {
    background: var(--vh-primary-dark, #4f46e5);
    transform: translateY(-2px);
}
