/**
 * YouTube Video Fallback Styles
 * Styling for the fallback message when YouTube videos can't load due to cookie restrictions
 */

.youtube-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f5f5f5;
}

.youtube-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-fallback-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.youtube-fallback-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
}

.youtube-fallback-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 96, 141, 0.15);
}

.youtube-fallback-icon svg {
    width: 40px;
    height: 40px;
}

.youtube-fallback-title {
    font-size: 24px;
    font-weight: 600;
    color: #00608D;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.youtube-fallback-message {
    font-size: 16px;
    color: #606060;
    margin: 0 0 25px 0;
    line-height: 1.5;
}

.youtube-fallback-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00608D;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 96, 141, 0.2);
}

.youtube-fallback-button:hover {
    background-color: #004d6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 96, 141, 0.3);
    color: #ffffff !important;
}

.youtube-fallback-button:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .youtube-fallback-content {
        padding: 30px 15px;
    }

    .youtube-fallback-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 15px;
    }

    .youtube-fallback-icon svg {
        width: 32px;
        height: 32px;
    }

    .youtube-fallback-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .youtube-fallback-message {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .youtube-fallback-button {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* Special styling for news cards and smaller video containers */
.news-inner-card .youtube-fallback-container,
.info-inner-card .youtube-fallback-container {
    aspect-ratio: auto;
    height: 200px;
    min-height: 180px;
}

.news-inner-card .youtube-fallback-content,
.info-inner-card .youtube-fallback-content {
    padding: 20px 15px;
}

.news-inner-card .youtube-fallback-icon,
.info-inner-card .youtube-fallback-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.news-inner-card .youtube-fallback-icon svg,
.info-inner-card .youtube-fallback-icon svg {
    width: 28px;
    height: 28px;
}

.news-inner-card .youtube-fallback-title,
.info-inner-card .youtube-fallback-title {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-inner-card .youtube-fallback-message,
.info-inner-card .youtube-fallback-message {
    font-size: 13px;
    margin-bottom: 15px;
}

.news-inner-card .youtube-fallback-button,
.info-inner-card .youtube-fallback-button {
    padding: 8px 20px;
    font-size: 13px;
}

/* For aspectratio class videos */
.aspectratio + .youtube-fallback-container,
.youtube-iframe-wrapper.aspectratio .youtube-fallback-container {
    aspect-ratio: 16 / 9;
}

/* Gallery fallback specific styles */
.youtube-gallery-fallback {
    min-height: 400px;
    margin: 20px 0;
}

.youtube-gallery-fallback .youtube-fallback-content {
    padding: 60px 20px;
    max-width: 600px;
}

.youtube-gallery-fallback .youtube-fallback-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
}

.youtube-gallery-fallback .youtube-fallback-icon svg {
    width: 50px;
    height: 50px;
}

.youtube-gallery-fallback .youtube-fallback-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.youtube-gallery-fallback .youtube-fallback-message {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.youtube-gallery-fallback .youtube-fallback-button {
    padding: 14px 35px;
    font-size: 18px;
}

@media (max-width: 768px) {
    .youtube-gallery-fallback {
        min-height: 300px;
    }

    .youtube-gallery-fallback .youtube-fallback-content {
        padding: 40px 15px;
    }

    .youtube-gallery-fallback .youtube-fallback-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .youtube-gallery-fallback .youtube-fallback-icon svg {
        width: 40px;
        height: 40px;
    }

    .youtube-gallery-fallback .youtube-fallback-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .youtube-gallery-fallback .youtube-fallback-message {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .youtube-gallery-fallback .youtube-fallback-button {
        padding: 12px 28px;
        font-size: 16px;
    }
}
