/* Image Comparison Section Styles */
.image-comparison-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Image Comparison Slider Styles */
.image-compare-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
}

.image-compare-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 55.89%; /* 1073/1920 = 0.5589 -> 16:9 ratio */
    min-height: 500px;
    overflow: hidden;
}

@media (max-width: 1920px) {
    .image-compare-wrapper {
        padding-bottom: 55.89%;
        min-height: 450px;
    }
}

@media (max-width: 1440px) {
    .image-compare-wrapper {
        padding-bottom: 56.25%; /* Standard 16:9 */
        min-height: 400px;
    }
}

/* Title Overlay */
.image-compare-title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
    z-index: 14; /* Slider'ın (z-index: 10) altında */
    pointer-events: none; /* Overlay tıklanamaz */
    padding: 8px 0px;
}

.image-compare-title-overlay h2 {
    color: var(--white-color);
    font-size: 35px;
    line-height: 1.3;
    text-align: center;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0;
    pointer-events: none; /* Text de tıklanamaz */
    user-select: none; /* Text seçilemez */
}

.image-compare-title-overlay p {
    color: var(--white-color);
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 1px 3px rgba(0, 0, 0, 0.4);
    max-width: 800px;
    margin: 0 auto;
    pointer-events: none; /* Text de tıklanamaz */
    user-select: none; /* Text seçilemez */
}

.image-compare-before,
.image-compare-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.1s ease-out; /* Smooth parallax */
    will-change: transform; /* Performance optimization */
}

.image-compare-after {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    transition: none; /* Transition kaldırıldı - anında tepki */
}

.image-compare-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        #c6620c 0%, 
        #fbb861 50%, 
        #c6620c 100%
    );
    cursor: ew-resize; /* Tıklanabilir */
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 20px rgba(198, 102, 12, 0.5);
    transition: box-shadow 0.3s ease; /* Hover efekti için */
}

.image-compare-slider:hover {
    box-shadow: 0 0 30px rgba(198, 102, 12, 0.7);
    cursor: ew-resize;
}

.image-compare-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        #040404 0%, 
        #1a1a1a 50%, 
        #040404 100%
    );
    border: 4px solid var(--white-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    box-shadow: 
        0 0 0 8px rgba(198, 102, 12, 0.2),
        0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-compare-handle::before {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    background-image: url('../images/loader.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.image-compare-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.image-compare-label {
    position: absolute;
    top: 30px;
    padding: 12px 25px;
    background: rgba(4, 4, 4, 0.85);
    backdrop-filter: blur(10px);
    color: var(--white-color);
    font-family: var(--accent-font);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    z-index: 5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(198, 102, 12, 0.3);
}

.image-compare-label-before {
    left: 30px;
}

.image-compare-label-after {
    right: 30px;
}

/* Hover Effects */
.image-compare-handle:hover {
    box-shadow: 
        0 0 0 12px rgba(198, 102, 12, 0.3),
        0 5px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, 
        #1a1a1a 0%, 
        #2a2a2a 50%, 
        #1a1a1a 100%
    );
}

/* Responsive */
@media (max-width: 768px) {
    .image-compare-wrapper {
        padding-bottom: 75%; /* Mobilde biraz daha kare */
        min-height: 350px;
    }
    
    .image-compare-title-overlay {
        padding: 0px 0px;
    }
    
    .image-compare-title-overlay h2 {
        font-size: 28px;
        line-height: 1.4;
    }
    
    .image-compare-title-overlay p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .image-compare-handle {
        width: 50px;
        height: 50px;
        background-size: 65% 65%;
    }
    
    .image-compare-label {
        font-size: 14px;
        padding: 8px 16px;
        top: 20px;
    }
    
    .image-compare-label-before {
        left: 15px;
    }
    
    .image-compare-label-after {
        right: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .image-compare-wrapper {
        padding-bottom: 60%; /* Tablet için optimize */
        min-height: 400px;
    }
    
    .image-compare-title-overlay h2 {
        font-size: 38px;
    }
    
    .image-compare-title-overlay p {
        font-size: 17px;
    }
}

/* Intro animation handled by JavaScript */

