/**
 * M-Wheel Lightbox - CSS Styles
 * Minimalistisches Design ohne Navigationspfeile
 */

.mwl-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mwl-lightbox.mwl-active {
    opacity: 1;
    visibility: visible;
}

.mwl-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: pointer;
}

.mwl-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mwl-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
    cursor: pointer;
}

.mwl-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mwl-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mwl-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mwl-hint {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 25px;
    user-select: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.mwl-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    user-select: none;
}

.mwl-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mwl-spin 0.8s linear infinite;
    display: none;
}

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

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .mwl-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .mwl-counter {
        bottom: 15px;
        font-size: 13px;
        padding: 6px 12px;
    }

    .mwl-image {
        max-width: 95vw;
        max-height: 85vh;
    }
}

/* Touch-Hinweis für Mobile (optional) */
@media (hover: none) and (pointer: coarse) {
    .mwl-lightbox.mwl-active::after {
        content: '';
        position: absolute;
        bottom: 60px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        animation: mwl-hint 3s ease-in-out 1s 1;
    }
}

@keyframes mwl-hint {
    0%, 100% { opacity: 0; }
    20%, 80% { opacity: 0.6; }
}

/* Barrierefreiheit */
@media (prefers-reduced-motion: reduce) {
    .mwl-lightbox,
    .mwl-image,
    .mwl-close,
    .mwl-loader {
        transition: none;
        animation: none;
    }
}
