/* Social Media Embed Styles */

.video-embed-container {
    width: 100%;
    margin: 40px 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}


.instagram-embed-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
}

.instagram-preview {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 25%, #8134af 50%, #515bd4 100%);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 540px;
    min-width: 326px;
    width: 100%;
}

.instagram-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
}

.instagram-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.instagram-info {
    flex: 1;
}

.instagram-username {
    color: white;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2px;
}

.instagram-type {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.instagram-content {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.instagram-content p {
    color: white;
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.instagram-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.instagram-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Fallback for old embed style */
.instagram-embed-container blockquote {
    margin: 0 !important;
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 25%, #8134af 50%, #515bd4 100%) !important;
    color: white !important;
}

.instagram-embed-container blockquote a {
    color: white !important;
    font-weight: 600;
}

.social-link {
    padding: 15px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link a {
    color: #E4405F;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
    display: inline-block;
}

.social-link a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.facebook-embed-container {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.facebook-placeholder {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1877f2 0%, #0c5fcc 100%);
    color: white;
}

.facebook-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.facebook-placeholder p {
    margin: 10px 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.facebook-link-btn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.facebook-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-wrapper {
        padding-bottom: 56.25%;
    }
    
    .video-link a,
    .social-link a,
    .facebook-link-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .facebook-placeholder {
        padding: 30px 15px;
    }
    
    .facebook-icon {
        font-size: 2.5rem;
    }
}

/* Loading animation for embeds */
.video-embed-container,
.instagram-embed-container,
.facebook-embed-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Local Video Support */
.local-video-container {
    width: 100%;
    margin: 40px 0;
    text-align: center;
}

.local-video-container video {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    background: #000;
    outline: none;
    max-height: 80vh;
}
