/**
 * ITSWEBER CMS – Video Section Plugin Styles
 * Version: 1.0.0
 *
 * Responsive video section with support for YouTube embeds and local video files.
 */

/* ── Base ──────────────────────────────────────────────────────────────────── */

.video-section {
    padding: 4rem 0;
}

.video-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.video-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.video-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.video-section-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    margin: 0;
}

.video-embed {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.video-embed iframe,
.video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.video-section-cta {
    text-align: center;
    margin-top: 2rem;
}

.video-section-cta .btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--theme-primary, #333);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
}

.video-section-cta .btn:hover {
    background: var(--theme-primary-hover, #0d5c7a);
}

/* ── Color schemes ────────────────────────────────────────────────────────── */

.video-section.section--scheme-alt {
    background: #f8fafc;
}

.video-section.section--scheme-primary {
    background: var(--theme-primary, #333);
    color: #fff;
}

.video-section.section--scheme-primary .video-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.video-section.section--scheme-dark {
    background: #1e293b;
    color: #f1f5f9;
}

.video-section.section--scheme-dark .video-section-subtitle {
    color: #94a3b8;
}

/* ── Section text color overrides ──────────────────────────────────────────── */

.video-section.section--text-black {
    color: #000;
}

.video-section.section--text-black .video-section-title {
    color: #000;
}

.video-section.section--text-black .video-section-subtitle {
    color: #333;
}

.video-section.section--text-white {
    color: #fff;
}

.video-section.section--text-white .video-section-title {
    color: #fff;
}

.video-section.section--text-white .video-section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.video-section.section--text-theme {
    color: var(--theme-primary, #333);
}

.video-section.section--text-theme .video-section-title {
    color: var(--theme-primary, #333);
}

.video-section.section--text-theme .video-section-subtitle {
    color: var(--theme-primary, #333);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .video-section {
        padding: 2.5rem 0;
    }

    .video-section-title {
        font-size: 1.5rem;
    }

    .video-section-subtitle {
        font-size: 1rem;
    }

    .video-section-cta {
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 2rem 0;
    }

    .video-section .container {
        padding: 0 1rem;
    }

    .video-section-title {
        font-size: 1.25rem;
    }

    .video-section-cta .btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}
