/**
 * Custom styles for single course page
 * Ouralearn Child Theme
 *
 * @package Ouralearn
 * @since 1.0.0
 */

/* YouTube Trailer Container - Responsive 16:9 Aspect Ratio */
.course-trailer-container {
    margin-bottom: 2rem;
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Live Session Button */
.btn--live {
    background-color: #1E40AF !important;
    color: #ffffff !important;
    border-color: #1E40AF !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn--live:hover,
.btn--live:focus {
    background-color: #1e3a8a !important;
    border-color: #1e3a8a !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn--live:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(30, 64, 175, 0.2);
}

/* * App Download Buttons - Updated to use icon classes 
 * Applies orange color theme and necessary sizing for the icons.
*/
.tutor-sidebar-card .btn--app-download-android,
.tutor-sidebar-card .btn--app-download-ios {
    /* Flex alignment to ensure they sit side-by-side */
    width: 48%; 
    height: 50px; 
    display: flex;
    justify-content: center;
    align-items: center;
    
    /* Set icon size for Font Awesome */
    font-size: 24px;
    
    /* Applying existing orange theme: #F59E0B */
    background-color: #F59E0B !important;
    color: #ffffff !important;
    border-color: #F59E0B !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Hover/Focus states for new icon buttons */
.tutor-sidebar-card .btn--app-download-android:hover,
.tutor-sidebar-card .btn--app-download-android:focus,
.tutor-sidebar-card .btn--app-download-ios:hover,
.tutor-sidebar-card .btn--app-download-ios:focus {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.tutor-sidebar-card .btn--app-download-android:active,
.tutor-sidebar-card .btn--app-download-ios:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

/* Hide the margin between the new buttons */
.tutor-sidebar-card .tutor-mb-16 {
    margin-bottom: 0 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-trailer-container {
        margin-bottom: 1.5rem;
    }
    
    .trailer-caption {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }
}
