/* ============================================================================
   YouTube Video Embed Styles
   ============================================================================ */

/* YouTube video embed container */
.youtube-video-embed {
    margin: 2rem 0;
}

/* Dual video layout */
.youtube-dual-embed .youtube-dual-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.youtube-video-column {
    display: flex;
    flex-direction: column;
}

/* Video container with responsive aspect ratio */
.youtube-video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.youtube-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* YouTube controls section */
.youtube-controls {
    margin-top: 0.75rem;
    text-align: right;
}

/* Transcript toggle button */
.youtube-transcript-toggle {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #1e3268;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.youtube-transcript-toggle:hover {
    background-color: #f8f9fa;
}

.youtube-transcript-toggle:active {
    transform: translateY(1px);
}

/* Add icon to button */
.youtube-transcript-toggle::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%231e3268' viewBox='0 0 16 16'%3E%3Cpath d='M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Transcript content */
.youtube-transcript {
    margin-top: 0.75rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.8;
    color: #1e3268;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.youtube-transcript p {
    margin-bottom: 1rem;
}

.youtube-transcript p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-video-embed {
        margin: 1.5rem 0;
    }

    .youtube-transcript-toggle {
        font-size: 0.9rem;
        padding: 0.65rem 1.25rem;
    }

    .youtube-transcript {
        padding: 1.25rem;
        font-size: 0.95rem;
    }

    /* Stack dual videos on tablets */
    .youtube-dual-embed .youtube-dual-videos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .youtube-video-container {
        border-radius: 6px;
    }

    .youtube-transcript-toggle {
        width: 100%;
    }

    /* Stack dual videos on mobile */
    .youtube-dual-embed .youtube-dual-videos {
        gap: 1rem;
    }
}
