/* Ürün Galeri Stilleri */
.product-image-container {
    position: relative;
    overflow: hidden;
    display: block;
}

.product-images-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: block;
}

.product-image.active {
    opacity: 1 !important;
    z-index: 2;
}


.image-indicators {
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    background: var(--primary-background);
    padding: 10px 10px 10px;
    backdrop-filter: blur(20px);
}

.product-image-container:hover .image-indicators {
    opacity: 1;
    pointer-events: auto;
}

.indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    margin: 0 2px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.indicator::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
}

.indicator.active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    width: 5px;
    height: 5px;
}

.indicator.active::before {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(2);
}

.indicator:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

/* Soft pulse animasyonu */
@keyframes softPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

.indicator:not(.active):hover {
    animation: softPulse 2s ease-in-out infinite;
}

/* Soft fade geçişi */
@keyframes softFadeIn {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(5px);
    }
    100% { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}


/* Performans optimizasyonu */
.product-images-slider * {
    will-change: opacity, transform;
}

.product-image {
    contain: layout style paint;
}

.product-image img {
    backface-visibility: hidden;
    perspective: 1000px;
    object-fit: cover;
}

/* Loading state */
.product-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hover efekti geliştirmeleri */
.product-image-container {
    transition: all 0.3s ease;
}

.product-image-container:hover {
    transform: translateY(-2px);
}

/* Mobil cihazlar için soft optimizasyon */
@media (max-width: 768px) {
    .image-indicators {
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.08) 100%);
        padding: 8px 12px 12px;
        backdrop-filter: blur(4px);
    }
    
    .indicator {
        width: 3px;
        height: 3px;
        margin: 0 3px;
        background: rgba(255, 255, 255, 0.5);
    }
    
    .indicator.active {
        transform: scale(2.2);
        width: 4px;
        height: 4px;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .indicator:hover:not(.active) {
        transform: scale(1.5);
        background: rgba(255, 255, 255, 0.7);
    }
    
    .product-image-container:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
}

/* Touch cihazlar için */
@media (hover: none) and (pointer: coarse) {
    .image-indicators {
        opacity: 1;
        pointer-events: auto;
    }
    
    .product-image-container:hover .product-image.active img {
        transform: none;
    }
}

/* Prefers-reduced-motion desteği */
@media (prefers-reduced-motion: reduce) {
    .product-image,
    .product-image img,
    .indicator,
    .product-image-container {
        transition: none !important;
        animation: none !important;
    }
}

/* Dark mode için soft tasarım */
@media (prefers-color-scheme: dark) {
    .image-indicators {
        background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
        backdrop-filter: blur(12px);
    }
    
    .indicator {
        background: rgba(255, 255, 255, 0.3);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    }
    
    .indicator.active {
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    }
    
    .indicator.active::before {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .indicator:hover:not(.active) {
        background: rgba(255, 255, 255, 0.55);
        box-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
    }
}
