/**
 * Doctor Videos Slider Styles
 * 
 * @package flavor/dam-theme
 */

/* ==========================================================================
   Section Styles
   ========================================================================== */

.dam-videos-section {
    background: linear-gradient(180deg, #0C3B43 0%, #051A1D 100%);
    padding: 100px 0;
    direction: rtl;
}

.dam-videos-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.dam-videos-header {
    text-align: center;
    margin-bottom: 60px;
}

.dam-videos-badge {
    display: inline-block;
    background: rgba(242, 146, 0, 0.15);
    color: #F29200;
    font-family: 'Lexend', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.dam-videos-title {
    font-family: 'Lexend', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.dam-videos-subtitle {
    font-family: 'Lexend', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ==========================================================================
   Swiper Slider
   ========================================================================== */

.dam-videos-swiper {
    overflow: visible;
    padding-bottom: 80px;
}

.dam-videos-swiper .swiper-slide {
    height: auto;
}

/* ==========================================================================
   Video Card
   ========================================================================== */

.dam-video-card {
    background: linear-gradient(180deg, rgba(18, 177, 180, 0.1) 0%, rgba(12, 59, 67, 0.8) 100%);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(18, 177, 180, 0.2);
}

.dam-video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dam-video-card:hover .dam-play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: #F29200;
}

.dam-video-card:hover .dam-video-thumbnail img {
    transform: scale(1.05);
}

/* Thumbnail */
.dam-video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(12, 59, 67, 0.5);
}

.dam-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dam-video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(18, 177, 180, 0.2), rgba(12, 59, 67, 0.5));
}

.dam-video-placeholder i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.3);
}

/* Play Button */
.dam-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #12B1B4;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(18, 177, 180, 0.5);
    z-index: 2;
}

.dam-play-button svg {
    width: 28px;
    height: 28px;
    color: #FFFFFF;
    margin-right: -3px;
}

/* Duration Badge */
.dam-video-duration {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Content */
.dam-video-content {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dam-video-description {
    font-family: 'Lexend', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex: 1;
}

.dam-video-title-card {
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.dam-swiper-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.dam-swiper-prev,
.dam-swiper-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dam-swiper-prev:hover,
.dam-swiper-next:hover {
    background: #F29200;
    border-color: #F29200;
}

.dam-swiper-prev svg,
.dam-swiper-next svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.dam-swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    display: flex;
    gap: 8px;
}

.dam-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: all 0.3s ease;
}

.dam-swiper-pagination .swiper-pagination-bullet-active {
    background: #F29200;
    width: 30px;
    border-radius: 5px;
}

/* ==========================================================================
   Video Modal
   ========================================================================== */

.dam-video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dam-video-modal.active {
    opacity: 1;
    visibility: visible;
}

.dam-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.dam-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.dam-video-modal.active .dam-modal-content {
    transform: scale(1);
}

.dam-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.dam-modal-close:hover {
    background: #F29200;
}

.dam-modal-close svg {
    width: 24px;
    height: 24px;
    color: #FFFFFF;
}

.dam-modal-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.dam-modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Grid Layout (Alternative)
   ========================================================================== */

.dam-videos-grid {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 30px;
    direction: rtl;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
    .dam-videos-section {
        padding: 80px 0;
    }
    
    .dam-videos-container {
        padding: 0 30px;
    }
    
    .dam-videos-title {
        font-size: 36px;
    }
    
    .dam-videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dam-videos-section {
        padding: 60px 0;
    }
    
    .dam-videos-container {
        padding: 0 20px;
    }
    
    .dam-videos-header {
        margin-bottom: 40px;
    }
    
    .dam-videos-title {
        font-size: 28px;
    }
    
    .dam-videos-subtitle {
        font-size: 16px;
    }
    
    .dam-play-button {
        width: 56px;
        height: 56px;
    }
    
    .dam-play-button svg {
        width: 22px;
        height: 22px;
    }
    
    .dam-video-content {
        padding: 20px;
    }
    
    .dam-video-description {
        font-size: 14px;
    }
    
    .dam-video-title-card {
        font-size: 14px;
    }
    
    .dam-swiper-prev,
    .dam-swiper-next {
        width: 44px;
        height: 44px;
    }
    
    .dam-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .dam-modal-close {
        top: -44px;
        right: 0;
    }
}

/* ==========================================================================
   RTL Adjustments
   ========================================================================== */

[dir="rtl"] .dam-play-button svg,
.dam-play-button svg {
    margin-right: 0;
    margin-left: -3px;
}

[dir="rtl"] .dam-video-duration {
    left: auto;
    right: 12px;
}
