/* YGY Slider Stilleri */
.ygySlider-container {
    width: 100%;
    height: auto;
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 3.2/1;
    border-radius: 12px; /* Köşelere ovallik eklendi */
}

.ygySlider-slide {
    min-width: 100%;
    height: 100%;
    border-radius: 12px; /* Slide'lara da ovallik eklendi */
    overflow: hidden; /* Resimlerin köşelerden taşmasını engellemek için */
    position: relative;
    cursor: pointer;
}

.ygySlider-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.ygySlider-wrapper {
    width: 100%;
    position: relative;
    padding: 0 40px; /* Oklara alan açıyoruz */
}

.ygySlider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.ygySlider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease-in;
    position: relative;
    z-index: 0;
}

.ygySlider-slide img.loaded {
    opacity: 1;
}

.ygySlider-slide:first-child img,
.ygySlider-slide img.loaded {
    opacity: 1 !important; /* Force show first image and loaded images */
}

.ygySlider-slide:first-child .loading-placeholder {
    display: none;
}

.ygySlider-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    text-decoration: none;
    cursor: pointer;
}

.ygySlider-button {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.ygySlider-button img {
    width: 100%;
    height: 100%;
    filter: brightness(0) saturate(100%) invert(11%) sepia(96%) saturate(4929%) hue-rotate(356deg) brightness(92%) contrast(102%);
    transition: filter 0.3s ease;
}

.ygySlider-button:hover img {
    filter: brightness(0) saturate(100%) invert(40%) sepia(94%) saturate(7499%) hue-rotate(356deg) brightness(101%) contrast(115%);
}

.ygySlider-prev {
    left: 0;
}

.ygySlider-next {
    right: 0;
}

.ygySlider-dots-container {
    position: relative;
    display: flex;
    gap: clamp(5px, 1vw, 10px);
    justify-content: center;
    margin-top: 20px;
}

.ygySlider-dot {
    width: clamp(8px, 1.5vw, 12px);
    height: clamp(8px, 1.5vw, 12px);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    border: none;
    touch-action: manipulation;
}

.ygySlider-dot.active {
    background: #c00e0e;
}

/* Placeholder için loading animasyonu */
.loading-placeholder {
    /* position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: loading 1.5s linear infinite;*/
}

@keyframes loading {
    to {
        background-position-x: -200%;
    }
}

/* Carousel Overlay ve Metinler */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(192, 14, 14, 0.4); /* Kırmızı overlay */
    z-index: 1;
    pointer-events: none;
}

.carousel-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #ffffff;
    text-align: center;
    width: 90%;
    max-width: 1200px;
    pointer-events: none;
}

.carousel-main-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.carousel-sub-title {
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.carousel-small-text {
    font-size: clamp(14px, 1.8vw, 20px);
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.carousel-small-text .theme-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c00e0e;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    pointer-events: auto;
}

.carousel-small-text .theme-btn:hover {
    background-color: #a00c0c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .ygySlider-wrapper {
        padding: 0 40px;
    }
    
    .ygySlider-button {
        width: 30px;
        height: 30px;
    }
    
    .carousel-text-overlay {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .ygySlider-wrapper {
        padding: 0 30px;
    }
    
    .ygySlider-button {
        width: 25px;
        height: 25px;
    }
}
