/* Mini Reportage Viewer - Frontend Styles */

.mini-reportage-viewer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y pinch-zoom;
    overflow-x: hidden;
}

.reportage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #c41e3a;
}

.reportage-title {
    margin: 0;
    font-size: 2rem;
    color: #1a1a1a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reportage-counter {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    background: #f8f8f8;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.reportage-container {
    position: relative;
    margin-bottom: 2rem;
}

.reportage-content {
    position: relative;
    overflow: visible;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    background: #fff;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    transition: height 0.4s ease-in-out;
}

.reportage-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.3s ease-out;
    will-change: transform, opacity;
}

.reportage-slide.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.6s ease-in-out;
    transform: translateX(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-image-wrapper {
    position: relative;
    width: 100%;
    overflow: visible;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.4s ease-in-out;
}

.slide-image {
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
    display: block;
    margin: 0 auto;
}

/* Landscape images - full width */
.slide-image-wrapper.landscape {
    width: 100%;
}

.slide-image-wrapper.landscape .slide-image {
    width: 100%;
    height: auto;
    max-height: 85vh;
}

/* Portrait images - centered, limited width */
.slide-image-wrapper.portrait {
    max-width: 600px !important;
    margin: 0 auto !important;
    overflow: visible !important;
    width: auto !important;
}

.slide-image-wrapper.portrait .slide-image {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
}

/* Ensure portrait wrapper doesn't stretch to full width */
.reportage-content .reportage-slide[data-orientation="portrait"] .slide-image-wrapper {
    width: auto !important;
    max-width: 600px !important;
    margin: 0 auto !important;
}

.reportage-slide.active .slide-image {
    transform: scale(1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.slide-description {
    padding: 2rem;
    background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
    border-top: 4px solid #c41e3a;
}

.slide-description p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    font-style: italic;
}

.reportage-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #c41e3a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #c41e3a;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.2);
    -webkit-tap-highlight-color: rgba(196, 30, 58, 0.2);
    user-select: none;
    -webkit-user-select: none;
}

.reportage-navigation:hover {
    background: #c41e3a;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.reportage-navigation:active {
    transform: translateY(-50%) scale(0.95);
    background: #c41e3a;
    color: #fff;
}

.reportage-navigation.prev {
    left: -25px;
}

.reportage-navigation.next {
    right: -25px;
}

.reportage-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.reportage-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #c41e3a;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    -webkit-tap-highlight-color: rgba(196, 30, 58, 0.2);
    user-select: none;
    -webkit-user-select: none;
    /* Grotere touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reportage-dots .dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #c41e3a;
    background: transparent;
    transition: all 0.3s ease;
}

.reportage-dots .dot:hover::before,
.reportage-dots .dot:active::before {
    background: rgba(196, 30, 58, 0.3);
    transform: scale(1.2);
}

.reportage-dots .dot.active::before {
    background: #c41e3a;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mini-reportage-viewer {
        padding: 1rem 0.5rem;
    }
    
    .reportage-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
    }
    
    .reportage-title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .reportage-counter {
        font-size: 1rem;
        padding: 0.4rem 0.9rem;
    }
    
    .reportage-content {
        border-radius: 8px;
    }
    
    .reportage-navigation {
        width: 48px;
        height: 48px;
        /* Grotere touch target voor mobiel */
        min-width: 48px;
        min-height: 48px;
    }
    
    .reportage-navigation svg {
        width: 20px;
        height: 20px;
    }
    
    .reportage-navigation.prev {
        left: 8px;
    }
    
    .reportage-navigation.next {
        right: 8px;
    }
    
    .slide-description {
        padding: 1.5rem 1rem;
    }
    
    .slide-description p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .reportage-dots {
        gap: 0.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .mini-reportage-viewer {
        padding: 0.75rem 0.25rem;
    }
    
    .reportage-header {
        margin-bottom: 1rem;
    }
    
    .reportage-title {
        font-size: 1.2rem;
        letter-spacing: 0;
    }
    
    .reportage-counter {
        font-size: 0.9rem;
        padding: 0.35rem 0.75rem;
    }
    
    .reportage-content {
        border-radius: 6px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }
    
    .slide-image-wrapper {
        max-height: 75vh;
    }
    
    .slide-image {
        max-height: 75vh;
    }
    
    .reportage-navigation {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        background: rgba(255, 255, 255, 0.98);
    }
    
    .reportage-navigation svg {
        width: 18px;
        height: 18px;
    }
    
    .reportage-navigation.prev {
        left: 4px;
    }
    
    .reportage-navigation.next {
        right: 4px;
    }
    
    .slide-description {
        padding: 1.25rem 0.75rem;
    }
    
    .slide-description p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .reportage-dots {
        gap: 0.4rem;
        margin-top: 1.25rem;
    }
    
    .reportage-dots .dot {
        min-width: 40px;
        min-height: 40px;
    }
}

/* Keyboard navigation indicator */
.reportage-navigation:focus {
    outline: 3px solid #c41e3a;
    outline-offset: 2px;
}

.reportage-dots .dot:focus {
    outline: 2px solid #c41e3a;
    outline-offset: 2px;
}

