/* Mudeku Plugin Styles */

.mudeku-exhibition {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--mudeku-bg-light, #fefaf1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .mudeku-exhibition {
        background: var(--mudeku-bg-dark, #23201a);
        color: #f5f5f5;
    }
}

/* Header */
.mudeku-header {
    text-align: center;
    margin-bottom: 3rem;
}

.mudeku-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    color: var(--mudeku-openframe-light, #003893);
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
    .mudeku-title {
        color: var(--mudeku-openframe-dark, #1a2233);
    }
}

.mudeku-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 0;
    color: #666;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .mudeku-subtitle {
        color: #aaa;
    }
}

/* Slider Container */
.mudeku-slider-container {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: #fff;
}

@media (prefers-color-scheme: dark) {
    .mudeku-slider-container {
        background: #2a2a2a;
        box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    }
}

/* Swiper Anpassungen */
.mudeku-swiper {
    width: 100%;
    height: 600px;
}

.mudeku-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    position: relative;
}

@media (prefers-color-scheme: dark) {
    .mudeku-swiper .swiper-slide {
        background: #333;
    }
}

/* Bild-Container mit Schatten */
.mudeku-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mudeku-slide-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mudeku-slide-image:hover {
    transform: scale(1.02);
}

/* Bild-Informationen */
.mudeku-slide-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 80%;
    min-width: 200px;
}

@media (prefers-color-scheme: dark) {
    .mudeku-slide-info {
        background: rgba(42,42,42,0.95);
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}

.mudeku-artwork-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mudeku-openframe-light, #003893);
}

@media (prefers-color-scheme: dark) {
    .mudeku-artwork-title {
        color: var(--mudeku-openframe-dark, #1a2233);
    }
}

.mudeku-artist-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
}

@media (prefers-color-scheme: dark) {
    .mudeku-artist-name {
        color: #aaa;
    }
}

.mudeku-artwork-year {
    margin: 0;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .mudeku-artwork-year {
        color: #888;
    }
}

/* Platzhalter für Bilder */
.mudeku-slide-placeholder {
    text-align: center;
    color: #999;
    font-size: 1.1rem;
}

/* Navigation Buttons */
.mudeku-swiper .swiper-button-next,
.mudeku-swiper .swiper-button-prev {
    color: var(--mudeku-openframe-light, #003893);
    background: rgba(255,255,255,0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .mudeku-swiper .swiper-button-next,
    .mudeku-swiper .swiper-button-prev {
        color: var(--mudeku-openframe-dark, #1a2233);
        background: rgba(42,42,42,0.9);
    }
}

.mudeku-swiper .swiper-button-next:hover,
.mudeku-swiper .swiper-button-prev:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

@media (prefers-color-scheme: dark) {
    .mudeku-swiper .swiper-button-next:hover,
    .mudeku-swiper .swiper-button-prev:hover {
        background: rgba(42,42,42,1);
    }
}

/* Pagination */
.mudeku-swiper .swiper-pagination-bullet {
    background: var(--mudeku-openframe-light, #003893);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.mudeku-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

@media (prefers-color-scheme: dark) {
    .mudeku-swiper .swiper-pagination-bullet {
        background: var(--mudeku-openframe-dark, #1a2233);
    }
}

/* Beschreibung */
.mudeku-description {
    background: rgba(255,255,255,0.8);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
    .mudeku-description {
        background: rgba(42,42,42,0.8);
        box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    }
}

.mudeku-description h1,
.mudeku-description h2,
.mudeku-description h3,
.mudeku-description h4,
.mudeku-description h5,
.mudeku-description h6 {
    color: var(--mudeku-openframe-light, #003893);
    margin-top: 0;
}

@media (prefers-color-scheme: dark) {
    .mudeku-description h1,
    .mudeku-description h2,
    .mudeku-description h3,
    .mudeku-description h4,
    .mudeku-description h5,
    .mudeku-description h6 {
        color: var(--mudeku-openframe-dark, #1a2233);
    }
}

/* Kuratoren */
.mudeku-curators {
    background: rgba(255,255,255,0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--mudeku-openframe-light, #003893);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (prefers-color-scheme: dark) {
    .mudeku-curators {
        background: rgba(42,42,42,0.6);
        border-left-color: var(--mudeku-openframe-dark, #1a2233);
        box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
}

.mudeku-curators h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mudeku-curators p {
    margin: 0;
    font-style: italic;
}

/* Fehlermeldungen */
.mudeku-error {
    background: #fee;
    color: #c33;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #c33;
    margin: 1rem 0;
}

@media (prefers-color-scheme: dark) {
    .mudeku-error {
        background: rgba(204,51,51,0.2);
        border-left-color: #f66;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .mudeku-exhibition {
        padding: 1rem;
    }
    
    .mudeku-title {
        font-size: 2rem;
    }
    
    .mudeku-swiper {
        height: 400px;
    }
    
    .mudeku-swiper .swiper-button-next,
    .mudeku-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .mudeku-description,
    .mudeku-curators {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .mudeku-title {
        font-size: 1.5rem;
    }
    
    .mudeku-swiper {
        height: 300px;
    }
    
    .mudeku-swiper .swiper-button-next,
    .mudeku-swiper .swiper-button-prev {
        display: none;
    }
}

/* Loading Animation */
.mudeku-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #999;
}

.mudeku-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid var(--mudeku-openframe-light, #003893);
    border-radius: 50%;
    animation: mudeku-spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Lightbox für Bild-Details */
.mudeku-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mudeku-lightbox.active {
    opacity: 1;
}

.mudeku-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@media (prefers-color-scheme: dark) {
    .mudeku-lightbox-content {
        background: #2a2a2a;
    }
}

.mudeku-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
}

.mudeku-lightbox-close:hover {
    background: rgba(255,255,255,1);
    transform: scale(1.1);
}

@media (prefers-color-scheme: dark) {
    .mudeku-lightbox-close {
        background: rgba(42,42,42,0.9);
        color: #fff;
    }
    
    .mudeku-lightbox-close:hover {
        background: rgba(42,42,42,1);
    }
}

.mudeku-lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.mudeku-lightbox-info {
    padding: 1.5rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
    .mudeku-lightbox-info {
        background: rgba(42,42,42,0.95);
    }
}

/* Bild-Loading-States */
.mudeku-slide-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mudeku-slide-image.loaded {
    opacity: 1;
}

.mudeku-slide-image.error {
    opacity: 0.5;
    filter: grayscale(1);
}

/* Progress-Bar und Slide-Counter */
.mudeku-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    z-index: 10;
}

.mudeku-progress-bar {
    height: 100%;
    background: var(--mudeku-openframe-light, #003893);
    transition: width 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .mudeku-progress-bar {
        background: var(--mudeku-openframe-dark, #1a2233);
    }
}

.mudeku-slide-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 10;
}

@media (prefers-color-scheme: dark) {
    .mudeku-slide-counter {
        background: rgba(42,42,42,0.9);
        color: #fff;
    }
} 