/* Inline Video Styles */
.video-review-container {
    position: relative;
    margin-top: 3rem;
    text-align: center;
}

.inline-video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.video-frame {
    position: relative;
    background: linear-gradient(135deg, #efb54b, #f7d78b);
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(239, 181, 75, 0.5);
    overflow: hidden;
}

.video-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #0e71bc, #027bf3);
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid rgba(239, 181, 75, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.video-body {
    position: relative;
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.video-body video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 450px;
    object-fit: contain;
}

.inline-video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(239, 181, 75, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.video-body:hover .inline-video-controls {
    opacity: 1;
}

/* Decorative corner elements for inline video */
.video-frame .corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #efb54b;
    z-index: 5;
    box-shadow: 0 0 10px rgba(239, 181, 75, 0.5);
    opacity: 0.8;
}

/* Shimmer overlay for inline video */
.video-frame .shimmer-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        transparent, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent, 
        transparent
    );
    background-size: 200% 200%;
    animation: shimmer 3s infinite linear;
    pointer-events: none;
    z-index: 1;
}

.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(239, 181, 75, 0.5);
    transform: scale(0.9);
    transition: all 0.3s ease;
    border: 8px solid #fff;
    /* Elegant gold frame */
    background: linear-gradient(135deg, #efb54b, #f7d78b);
    padding: 3px;
    /* Decorative corners */
    position: relative;
}

/* Decorative corner elements */
.video-popup-content .corner-decoration {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #efb54b;
    z-index: 5;
    box-shadow: 0 0 10px rgba(239, 181, 75, 0.5);
    opacity: 0.8;
}


.video-popup-overlay.active .video-popup-content {
    transform: scale(1);
}

.video-popup-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #0e71bc, #027bf3);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-bottom: 2px solid rgba(239, 181, 75, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-popup-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.video-popup-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.3s ease;
}

.video-popup-close:hover {
    transform: rotate(90deg);
}

.video-popup-body {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.video-popup-body video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
}

/* Loading indicator */
.video-popup-body::before {
    content: '\f110'; /* fa-spinner */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(239, 181, 75, 0.8);
    z-index: 1;
    animation: fa-spin 2s infinite linear;
}

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

/* Hide spinner when video is playing */
.video-popup-body.video-loaded::before {
    display: none;
}

.video-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(239, 181, 75, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.video-popup-body:hover .video-controls {
    opacity: 1;
}

.mute-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    margin-right: 10px;
    transition: all 0.3s ease;
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mute-toggle.active {
    background: rgba(239, 181, 75, 0.3);
    color: var(--primary-gold, #efb54b);
}

/* Sparkle effect for the frame */
@keyframes sparkle {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.video-popup-content .shimmer-overlay {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        transparent, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent, 
        transparent
    );
    background-size: 200% 200%;
    animation: shimmer 3s infinite linear;
    pointer-events: none;
    z-index: 1;
}

@keyframes shimmer {
    0% { background-position: -100% -100%; }
    100% { background-position: 200% 200%; }
}

.mute-toggle:hover {
    transform: scale(1.1);
}

.mute-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-popup-content {
        width: 95%;
    }
    
    .video-popup-title {
        font-size: 1rem;
    }
    
    .video-controls {
        bottom: 10px;
        left: 10px;
        padding: 5px 10px;
    }
    
    .mute-toggle {
        font-size: 1rem;
    }
    
    .mute-text {
        font-size: 0.8rem;
    }
    
    /* Inline video responsive styles */
    .inline-video-wrapper {
        padding: 0 0.5rem;
    }
    
    .video-frame {
        padding: 6px;
    }
    
    .video-header {
        padding: 12px 15px;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-body video {
        max-height: 300px;
    }
    
    .inline-video-controls {
        bottom: 10px;
        left: 10px;
        padding: 5px 10px;
    }
    
    .video-frame .corner-decoration {
        width: 15px;
        height: 15px;
    }
}

/* Before & After Videos Section */
.before-after-section {
    position: relative;
    overflow: hidden;
}

.before-after-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Row 1: Video Headers */
.video-headers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.video-header-section {
    padding: 1rem;
}

.video-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-text);
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(239, 181, 75, 0.2);
}

/* Row 2: Videos Side by Side */
.video-comparison-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2rem;
}

.video-section {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.video-frame.elegant-frame {
    position: relative;
    background: linear-gradient(135deg, #efb54b, #f7d78b);
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 30px rgba(239, 181, 75, 0.5);
    overflow: hidden;
}

.video-header.before-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid rgba(255, 107, 107, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-header.after-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid rgba(76, 175, 80, 0.5);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.video-body {
    position: relative;
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.video-body video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 280px;
    min-height: 180px;
    object-fit: cover;
    background: #000;
}

/* Loading state for videos */
.video-body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(239, 181, 75, 0.3);
    border-top: 3px solid var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.video-body.video-loaded::before {
    display: none;
}

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

.video-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    z-index: 10;
}

.before-overlay {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

.after-overlay {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: #fff;
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.4);
}

/* Video Controls Overlay */
.video-controls-overlay {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
    border: 1px solid rgba(239, 181, 75, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.video-body:hover .video-controls-overlay {
    opacity: 1;
}

.mute-toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 5px;
    margin-right: 8px;
    transition: all 0.3s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.mute-toggle-btn:hover {
    background: rgba(239, 181, 75, 0.3);
    transform: scale(1.1);
}

.mute-toggle-btn.active {
    background: rgba(239, 181, 75, 0.5);
    color: var(--primary-gold);
}

.video-controls-overlay .mute-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Enhanced Video Frames */
.video-section {
    position: relative;
    width: 100%;
}

.video-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, 
        rgba(239, 181, 75, 0.1), 
        rgba(239, 181, 75, 0.3), 
        rgba(239, 181, 75, 0.1));
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-section:hover::before {
    opacity: 1;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-headers-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .video-comparison-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-section-title {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
    
    .video-body video {
        max-height: 250px;
    }
    
    .video-controls-overlay {
        bottom: 10px;
        left: 10px;
        padding: 6px 12px;
    }
    
    .mute-toggle-btn {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .video-controls-overlay .mute-text {
        font-size: 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        margin-left: 0 !important;
        margin-bottom: 1rem;
    }
    
    .video-frame.elegant-frame {
        padding: 6px;
    }
    
    .video-section {
        max-width: none;
    }
}
