/**
 * Cookiebot Video Styles
 *
 * Styles for video placeholder when cookies are not accepted
 *
 * @package HostingNoLimits
 * @version 1.0.0
 */

/* Hide Cookiebot's default blocked content message */
.CookiebotWidget,
.CookieBot-wrapper,
[data-cookieblock-src] + div {
    display: none !important;
}

/* Video container */
.video-consent-wrapper {
    position: relative;
    width: 100%;
}

/* Video placeholder container */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 10;
    display: block; /* Show by default */
}

.video-placeholder.hidden {
    display: none;
    opacity: 0;
}

.video-placeholder:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Background image/pattern for placeholder */
.video-placeholder-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Content overlay */
.video-placeholder-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
}

/* Play button overlay */
.play-button-overlay {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-placeholder:hover .play-button-overlay {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.play-button-overlay i {
    font-size: 2.5rem;
    color: #667eea;
    margin-left: 5px; /* Optical alignment */
}

/* Cookie notice */
.cookie-notice {
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 25px;
    border-radius: 25px;
    color: white;
    text-align: center;
    max-width: 90%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-notice p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
}

.cookie-notice small {
    display: block;
    margin-top: 5px;
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Video iframe styling - Cookiebot manages visibility automatically */
.video-consent-wrapper iframe {
    border-radius: 8px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .play-button-overlay {
        width: 60px;
        height: 60px;
    }
    
    .play-button-overlay i {
        font-size: 2rem;
    }
    
    .cookie-notice {
        padding: 12px 20px;
    }
    
    .cookie-notice p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .play-button-overlay {
        width: 50px;
        height: 50px;
    }
    
    .play-button-overlay i {
        font-size: 1.5rem;
    }
    
    .cookie-notice p {
        font-size: 0.8rem;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-placeholder {
    animation: fadeIn 0.5s ease-out;
}

/* Accessibility improvements */
.video-placeholder:focus {
    outline: 3px solid #667eea;
    outline-offset: 3px;
}

/* Loading state (optional, for future use) */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.video-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
