/* Ürün Galerisi CSS Stilleri */

.product-gallery-grid {
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Galeri Slider Stilleri */
.product-gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-slider {
    position: relative;
    height: 400px;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Galeri Navigation Dots */
.gallery-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255,255,255,0.8);
}

/* Fancybox Override */
.fancybox__container {
    z-index: 9999;
}

.fancybox__content {
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .gallery-slider {
        height: 300px;
    }
    
    .gallery-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 576px) {
    .gallery-slider {
        height: 250px;
    }
    
    .product-gallery-grid .col-6 {
        margin-bottom: 1rem;
    }
}

/* Galeri Loading Animation */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.gallery-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Galeri Empty State */
.gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.gallery-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Galeri Grid Hover Effects */
.product-gallery-grid .gallery-item {
    position: relative;
}

.product-gallery-grid .gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,123,255,0.1), rgba(0,123,255,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-gallery-grid .gallery-item:hover::before {
    opacity: 1;
}

.product-gallery-grid .gallery-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
    transition: transform 0.3s ease;
}

.product-gallery-grid .gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Admin Galeri Upload Stilleri */
.gallery-upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.gallery-upload-area:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-preview-content {
    position: relative;
    width: 100%;
    height: 150px;
}

.gallery-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    text-align: center;
}

.gallery-upload-progress {
    margin-top: 15px;
}

.gallery-upload-progress .progress {
    height: 8px;
    border-radius: 4px;
}

.gallery-upload-progress .progress-bar {
    background-color: #007bff;
    border-radius: 4px;
}

/* Drag & Drop Stilleri */
.gallery-upload-area.dragover {
    border-color: #007bff;
    background-color: #e3f2fd;
    transform: scale(1.02);
}

/* Responsive Admin Galeri */
@media (max-width: 768px) {
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .gallery-preview-content {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
         .gallery-preview-content {
         height: 100px;
     }
 }

/* Sortable Stilleri */
.sortable-ghost {
     opacity: 0.5;
     background: #f0f0f0;
     border: 2px dashed #007bff;
 }

.sortable-chosen {
     box-shadow: 0 8px 25px rgba(0,0,0,0.2);
     transform: rotate(2deg);
 }

.sortable-drag {
     opacity: 0.8;
     transform: rotate(5deg);
     z-index: 1000;
 }

