/**
 * MGE Video Player Styles
 * Autoplay video with sound toggle
 */

/* Video Wrapper */
.mge-video-wrapper {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

/* Video Container */
.mge-video-container {
    position: relative;
    width: 100%;
    border-radius: var(--video-radius, 15px);
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Video Element */
.mge-video-player {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Sound Toggle Button */
.mge-video-sound-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 16px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mge-video-sound-toggle:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

.mge-video-sound-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent, #759e41);
}

/* Sound Icons */
.mge-sound-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mge-sound-icon svg {
    width: 20px;
    height: 20px;
}

/* Sound Text */
.mge-sound-text {
    white-space: nowrap;
}

/* Sound On State */
.mge-video-sound-toggle.sound-on {
    background-color: var(--accent, #759e41);
}

.mge-video-sound-toggle.sound-on:hover {
    background-color: var(--accent-dark, #638536);
}

/* Play Overlay (for autoplay fallback) */
.mge-video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 5;
    transition: background-color 0.3s ease;
}

.mge-video-play-overlay:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.mge-video-play-overlay svg {
    color: #ffffff;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.mge-video-play-overlay:hover svg {
    transform: scale(1.1);
}

/* Playing State */
.mge-video-wrapper.is-playing .mge-video-play-overlay {
    display: none !important;
}

/* Paused State */
.mge-video-wrapper.is-paused .mge-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
}

/* Responsive - Tablet */
@media (max-width: 992px) {
    .mge-video-sound-toggle {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 13px;
    }

    .mge-sound-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .mge-video-sound-toggle {
        bottom: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }

    .mge-sound-icon svg {
        width: 16px;
        height: 16px;
    }

    .mge-video-play-overlay svg {
        width: 48px;
        height: 48px;
    }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
    .mge-video-sound-toggle {
        padding: 8px 10px;
    }

    /* Hide text on very small screens */
    .mge-sound-text {
        display: none;
    }

    .mge-video-play-overlay svg {
        width: 40px;
        height: 40px;
    }
}