/**
 * recipe-video CSS
 * Component-specific styles only
 *
 * Uses global classes: .card, .rounded-2xl, .shadow-md, .mb-8, .p-6
 *                      .aspect-16-9, .text-sm, .text-muted, .text-center, .mt-4
 */

/* ==========================================================================
   COMPONENT: VIDEO - Specific Styles Only
   ========================================================================== */

/* Video wrapper - contains iframe with overflow hidden */
.bap_video_wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-black);
}

/* Thumbnail with play button (facade pattern - saves ~500KB) */
.bap_video_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.bap_video_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Focus state for keyboard accessibility */
.bap_video_thumbnail:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.bap_video_thumbnail:focus:not(:focus-visible) {
    outline: none;
}

.bap_video_play_btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--color-overlay-white-95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.bap_video_play_btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.bap_video_play_btn svg {
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    margin-left: 4px; /* Optical centering for play icon */
}

/* Portrait video container (Pinterest, vertical videos) */
.bap_video_wrapper--portrait {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    background: var(--color-neutral-100);
}
