/* YouTube Auto Blogger - Video Post Format Styles */

/* Video Hero Section */
.yab-video-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    cursor: pointer;
}

.yab-video-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

/* Play Button Overlay */
.yab-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.yab-play-button:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.yab-play-button svg {
    width: 36px;
    height: 36px;
    fill: #333;
    margin-left: 4px; /* Optical centering */
}

/* Video Title Overlay */
.yab-video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 2;
    color: white;
}

.yab-video-title-overlay h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

/* Video Embed Container (Hidden Initially) */
.yab-video-embed-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    display: none;
}

.yab-video-embed-container.active {
    display: block;
}

.yab-video-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Loading Spinner */
.yab-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: yab-spin 1s linear infinite;
}

@keyframes yab-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .yab-video-hero {
        height: 350px;
    }
    
    .yab-video-embed-container {
        height: 350px;
    }
    
    .yab-video-title-overlay h1 {
        font-size: 1.8rem;
    }
    
    .yab-play-button {
        width: 60px;
        height: 60px;
    }
    
    .yab-play-button svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .yab-video-hero {
        height: 250px;
    }
    
    .yab-video-embed-container {
        height: 250px;
    }
    
    .yab-video-title-overlay {
        padding: 20px;
    }
    
    .yab-video-title-overlay h1 {
        font-size: 1.4rem;
    }
    
    .yab-play-button {
        width: 50px;
        height: 50px;
    }
    
    .yab-play-button svg {
        width: 24px;
        height: 24px;
    }
}

/* Integration with existing content */
.single-post .yab-video-hero {
    margin-bottom: 30px;
}

/* Video Meta Information */
.yab-video-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-left: 4px solid #0073aa;
}

.yab-video-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yab-video-meta-item strong {
    color: #333;
}

.yab-video-meta-item span {
    color: #666;
}
