/**
 * Leseprobe Lightbox Styles
 */

.leseprobe-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--wp--preset--color--secondary, #1e3a5f);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.leseprobe-trigger:hover {
    background-color: #e8f4fc;
    color: var(--wp--preset--color--secondary, #1e3a5f);
}

.leseprobe-trigger svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Modal Overlay */
.leseprobe-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leseprobe-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leseprobe-modal.visible {
    opacity: 1;
}

/* Modal Content */
.leseprobe-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image Container */
.leseprobe-image-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leseprobe-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.leseprobe-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.leseprobe-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.leseprobe-close svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

/* Navigation Arrows */
.leseprobe-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.leseprobe-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.leseprobe-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.leseprobe-nav svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.leseprobe-prev {
    left: 1rem;
}

.leseprobe-next {
    right: 1rem;
}

/* Counter */
.leseprobe-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.875rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .leseprobe-nav {
        width: 2.5rem;
        height: 2.5rem;
    }

    .leseprobe-nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .leseprobe-close {
        width: 2.5rem;
        height: 2.5rem;
    }

    .leseprobe-close svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .leseprobe-prev {
        left: 0.5rem;
    }

    .leseprobe-next {
        right: 0.5rem;
    }
}
