/**
 * Lazy Embed Styles
 *
 * @package BM_LazyEmbeds
 * @since 1.0.0
 */

/* === Lazy Embed Placeholders === */
.lazy-embed-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.lazy-embed-placeholder:hover {
    transform: scale(1.02);
}

.lazy-embed-placeholder img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lazy-embed-placeholder:hover img {
    opacity: 1;
}

/* Play Button Overlay */
.lazy-embed-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    transition: transform 0.2s ease;
}

.lazy-embed-placeholder:hover .lazy-embed-play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Social Platform Placeholders */
.lazy-embed-social-placeholder {
    position: relative;
    padding: 40px;
    background: #f5f8fa;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lazy-embed-social-placeholder:hover {
    border-color: #1da1f2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lazy-embed-social-placeholder.twitter {
    background: #f5f8fa;
    border-color: #1da1f2;
}

.lazy-embed-social-placeholder.instagram {
    background: linear-gradient(135deg, #feda75 0%, #fa7e1e 50%, #d62976 100%);
    color: white;
}

.lazy-embed-social-placeholder.facebook {
    background: #f0f2f5;
    border-color: #1877f2;
}

.lazy-embed-platform-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.lazy-embed-platform-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.lazy-embed-load-text {
    font-size: 14px;
    opacity: 0.8;
}

/* Loading State */
.lazy-embed-loading {
    position: relative;
}

.lazy-embed-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .lazy-embed-social-placeholder {
        padding: 24px;
        min-height: 150px;
    }

    .lazy-embed-platform-icon {
        width: 36px;
        height: 36px;
    }
}
