/* Comparison Slider Styles */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    user-select: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%; /* Initial split */
    height: 100%;
    overflow: hidden;
    border-right: 2px solid white;
    z-index: 10;
}

.comparison-overlay .comparison-image {
    width: 600px; /* Must match container max-width to prevents squishing */
    height: 100%; 
}

.comparison-handle {
    position: absolute;
    top: 50%;
    left: 50%; /* Initial split */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.comparison-handle::after {
    content: '↔';
    color: #333;
    font-weight: bold;
}

.comparison-label {
    position: absolute;
    bottom: 20px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.label-before { left: 20px; }
.label-after { right: 20px; z-index: 1; }

/* EXIF Card Styles */
.exif-card {
    background: var(--card-bg); /* THEME FIX */
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    display: flex;
    gap: 24px;
    justify-content: space-around;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.exif-item {
    text-align: center;
}

.exif-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary-text); /* THEME FIX */
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.exif-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color); /* THEME FIX */
}

@media (max-width: 600px) {
    .comparison-container {
        height: 300px;
    }
    .comparison-overlay .comparison-image {
        width: 100vw; /* On mobile */
    }
}
