/* Easystory360 Ultimate - Frontend Styles */
/* Version 1.18.1 - Styles pour les widgets et embeds */

.es360u-story-widget,
.es360u-story-embed {
    box-shadow: 0 8px 32px #1a237e18, 0 1.5px 10px #0002;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #162447 0%, #1f4068 100%);
    position: relative;
    margin: 1.2em 0;
    transition: box-shadow .3s ease;
    display: block;
}

.es360u-story-widget:hover,
.es360u-story-embed:hover {
    box-shadow: 0 8px 40px #1a237e36, 0 4px 18px #1f406820;
}

.es360u-story-widget iframe,
.es360u-story-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
}

.es360u-story-widget .es360u-fullscreen-btn,
.es360u-story-embed .es360u-fullscreen-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 999 !important;
    background: rgba(255, 165, 0, 0.7) !important;
    border: none !important;
    color: transparent !important;
    padding: 0 !important;
    border-radius: 9px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 12px rgba(255, 165, 0, 0.3) !important;
    transition: all 0.2s ease !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    background-image: var(--easyul-fullscreen-icon) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
}

.es360u-fullscreen-btn:hover {
    background: rgba(255, 140, 0, 0.9) !important;
    background-image: var(--easyul-fullscreen-icon) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.5) !important;
}

.es360u-fullscreen-btn:active {
    transform: scale(0.95) !important;
    background: rgba(255, 140, 0, 1) !important;
}

.es360u-fullscreen-btn:focus {
    outline: 2px solid #fff !important;
    outline-offset: 2px !important;
}

.es360u-fullscreen-btn::before,
.es360u-fullscreen-btn::after {
    display: none !important;
    content: none !important;
}

@media (max-width: 768px) {
    .es360u-story-widget,
    .es360u-story-embed {
        margin: 1em 0;
        border-radius: 12px;
    }
    .es360u-fullscreen-btn {
        top: 10px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
        background-size: 16px 16px !important;
    }
    .es360u-story-widget iframe,
    .es360u-story-embed iframe {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .es360u-story-widget,
    .es360u-story-embed {
        border-radius: 8px;
        margin: 0.8em 0;
    }
    .es360u-fullscreen-btn {
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 4px !important;
        background-size: 14px 14px !important;
    }
    .es360u-story-widget iframe,
    .es360u-story-embed iframe {
        border-radius: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .es360u-story-widget,
    .es360u-story-embed,
    .es360u-fullscreen-btn {
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    .es360u-story-widget,
    .es360u-story-embed {
        box-shadow: 0 8px 32px #00000025, 0 1.5px 10px #00000015;
    }
    .es360u-story-widget:hover,
    .es360u-story-embed:hover {
        box-shadow: 0 8px 40px #00000040, 0 4px 18px #00000025;
    }
}

@media (prefers-contrast: high) {
    .es360u-fullscreen-btn {
        border: 2px solid #ffffff !important;
        background: rgba(255, 165, 0, 0.9) !important;
        background-image: var(--easyul-fullscreen-icon) !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
    .es360u-fullscreen-btn:hover {
        background: rgba(255, 140, 0, 1) !important;
        border-color: #ffffff !important;
    }
}