/* Slider Overlay */
.slider-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.slider-overlay.active {
    display: flex;
}

/* Modal Pencere */
.slider-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

/* Başlık */
.slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.slider-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #00244f;
    letter-spacing: 0.3px;
}

.slider-close {
    background: #f5f5f5;
    border: none;
    color: #555;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.slider-close:hover {
    background: #00244f;
    color: #fff;
    transform: rotate(90deg);
}

/* Ana Görsel Alanı */
.slider-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0f1e;
    overflow: hidden;
    min-height: 0;
}

.slider-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.slider-image-wrap img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Ok Butonları */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
    font-family: inherit;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

/* Thumbnail'lar */
.slider-thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    overflow-x: auto;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.slider-thumbs::-webkit-scrollbar {
    height: 4px;
}

.slider-thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.slider-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.slider-thumbs .thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    opacity: 0.55;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.slider-thumbs .thumb:hover {
    opacity: 0.85;
}

.slider-thumbs .thumb.active {
    opacity: 1;
    border-color: #4c9fd4;
}

/* Footer */
.slider-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.slider-counter {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Dark Mode */
body.dark .slider-modal {
    background: #0d1526;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
}

body.dark .slider-header {
    border-bottom-color: #1a2a45;
}

body.dark .slider-title {
    color: #e0e6f0;
}

body.dark .slider-close {
    background: #1a2a45;
    color: #c0cfe0;
}

body.dark .slider-close:hover {
    background: #4c9fd4;
    color: #fff;
}

body.dark .slider-thumbs {
    background: #0a0f1e;
    border-top-color: #1a2a45;
}

body.dark .slider-footer {
    border-top-color: #1a2a45;
}

body.dark .slider-counter {
    color: #6a8aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .slider-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .slider-modal {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        max-width: 100%;
    }

    .slider-image-wrap img {
        max-height: 45vh;
    }

    .slider-thumbs .thumb {
        width: 52px;
        height: 40px;
    }
}
