/**
 * Slider Thumbnail Navigation Styles
 * Görseldeki gibi slider altında thumbnail kutucukları
 */

/* Revolution Slider'ın kendi bullet sistemini gizle */
.tp-bullets,
.tp-bullet {
    display: none !important;
    visibility: hidden !important;
}

/* Thumbnail Container */
.tp-bullets {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 1000 !important;
    display: flex !important;
    gap: 10px !important;
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
}

/* Thumbnail Items */
.tp-bullet {
    width: 80px !important;
    height: 60px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #e0e0e0 !important;
    /* Fallback background */
    border: 3px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0.6 !important;
    position: relative !important;
    overflow: hidden !important;
    display: inline-block !important;
}

/* Thumbnail Image - Revolution Slider uses background-image inline */
.tp-bullet-image {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Thumbnail Hover Effect */
.tp-bullet:hover {
    opacity: 0.9 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Active Thumbnail */
.tp-bullet.selected {
    border-color: #007bff !important;
    opacity: 1 !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4) !important;
}

/* Thumbnail Overlay Effect */
.tp-bullet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.tp-bullet:hover::before,
.tp-bullet.selected::before {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tp-bullets {
        gap: 8px !important;
        padding: 12px 15px !important;
    }

    .tp-bullet {
        width: 70px !important;
        height: 50px !important;
    }
}

@media (max-width: 768px) {
    .tp-bullets {
        gap: 6px !important;
        padding: 10px 12px !important;
        bottom: 10px !important;
    }

    .tp-bullet {
        width: 60px !important;
        height: 45px !important;
        border-width: 2px !important;
    }
}

@media (max-width: 480px) {
    .tp-bullets {
        gap: 5px !important;
        padding: 8px 10px !important;
        max-width: 90% !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
    }

    .tp-bullet {
        width: 50px !important;
        height: 40px !important;
        flex-shrink: 0 !important;
    }
}

/* Scrollbar for mobile when too many thumbnails */
@media (max-width: 480px) {
    .tp-bullets::-webkit-scrollbar {
        height: 4px;
    }

    .tp-bullets::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }

    .tp-bullets::-webkit-scrollbar-thumb {
        background: rgba(0, 123, 255, 0.5);
        border-radius: 2px;
    }

    .tp-bullets::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 123, 255, 0.7);
    }
}

/* Custom Thumbnail Navigation - Alternatif Sistem */
.custom-slider-thumbnails {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 90% !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 9999 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* .rev-slider div'ine relative positioning ekle */
.rev-slider {
    position: relative !important;
}

.custom-thumb {
    width: 100px !important;
    min-width: 100px !important;
    height: 80px !important;
    min-height: 80px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-color: #e0e0e0 !important;
    border: 3px solid transparent !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 0.6 !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    visibility: visible !important;
    flex-shrink: 0 !important;
}

.custom-thumb:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.custom-thumb.active {
    border-color: #007bff;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.custom-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease;
}

.custom-thumb:hover::before,
.custom-thumb.active::before {
    opacity: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .custom-slider-thumbnails {
        gap: 8px;
        padding: 12px 15px;
    }

    .custom-thumb {
        width: 70px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .custom-slider-thumbnails {
        gap: 6px;
        padding: 10px 12px;
        margin: -60px auto 30px;
    }

    .custom-thumb {
        width: 60px;
        height: 45px;
        border-width: 2px;
    }
}

@media (max-width: 480px) {
    .custom-slider-thumbnails {
        gap: 5px;
        padding: 8px 10px;
        max-width: 90%;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .custom-thumb {
        width: 50px;
        height: 40px;
        flex-shrink: 0;
    }

    .custom-slider-thumbnails::-webkit-scrollbar {
        height: 4px;
    }

    .custom-slider-thumbnails::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
    }

    .custom-slider-thumbnails::-webkit-scrollbar-thumb {
        background: rgba(0, 123, 255, 0.5);
        border-radius: 2px;
    }

    .custom-slider-thumbnails::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 123, 255, 0.7);
    }
}