@charset "utf-8";

header:has(.smooth-slider) {
    margin-top: 10px;
}

.smooth-slider {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-left: 8px;
    padding-right: 8px;
}

    .smooth-slider .slider-container {
        border-radius: 10px;
        overflow: hidden;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .smooth-slider .slide {
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        flex: 0 0 100%;
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        .smooth-slider .slide:first-child {
            border-radius: 10px 0 0 10px;
            overflow: hidden;
        }

        .smooth-slider .slide:last-child {
            border-radius: 0 10px 10px 0;
            overflow: hidden;
        }

    .smooth-slider .slide-container {
        backdrop-filter: blur(10px);
        background-color: rgba(0, 0, 0, 0.7);
        height: 100%;
        width: 100%;
    }

    .smooth-slider .slide .slide-content {
        margin: 0 auto;
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .smooth-slider .slide-content .slide-image img:not(.audio-cover) {
        vertical-align: middle;
        border-radius: 10px;
        box-shadow: var(--shadow-light);
    }

    .smooth-slider .slide-content .slide-image img.audio-cover {
        height: auto;
    }

    .smooth-slider .slide .slide-content .slide-info {
    }

        .smooth-slider .slide .slide-content .slide-info .slide-title {
            color: white;
            font-size: 35px;
            margin: 0;
            padding: 0;
        }

        .smooth-slider .slide .slide-content .slide-info .slide-subtitle {
            color: white;
            margin: 0;
            padding: 0;
            font-size: 21px;
        }

        .smooth-slider .slide .slide-content .slide-info .slide-text {
            color: white;
            text-align: justify;
            hyphens: auto;
            font-size: 18px;
            overflow: hidden;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            /* Maksimum satır sayısı */
        }

    .smooth-slider .slide .slide-button {
        border: none;
        outline: none;
        background-color: orangered;
        color: white;
        padding: 8px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 18px;
        margin-top: 10px;
    }

    /* Buton yerine link (<a>) kullanılıyor: arama motorları detay sayfalarını takip edebilsin */
    .smooth-slider .slide a.slide-button {
        display: inline-block;
        text-decoration: none;
        line-height: normal;
    }

        .smooth-slider .slide .slide-button:hover {
            background-color: orange;
            color: black;
        }

    .smooth-slider .slider-button {
        border: none;
        outline: none;
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        cursor: pointer;
    }

        .smooth-slider .slider-button.prev {
            left: 20px;
        }

        .smooth-slider .slider-button.next {
            right: 20px;
        }

    .smooth-slider + .slider-dots {
        text-align: center;
        margin: 0 auto;
        user-select: none;
        margin-top: 10px;
    }

        .smooth-slider + .slider-dots .slider-dot {
            width: 20px;
            height: 20px;
            background-color: gray;
            display: inline-block;
            border-radius: 10px;
            cursor: pointer;
        }

            .smooth-slider + .slider-dots .slider-dot.active {
                background-color: dodgerblue;
            }



@media screen and (min-width: 1536px) {
    .smooth-slider {
        max-width: 1536px;
    }

        .smooth-slider .slide-content {
            height: 600px;
            padding: 0 150px;
        }

        .smooth-slider .slide-image img {
            width: 300px;
            height: 400px;
        }

        .smooth-slider .slide-text {
            -webkit-line-clamp: 8;
        }
}

@media screen and (min-width: 1280px) and (max-width: 1535px) {
    .smooth-slider {
        max-width: 1280px;
    }

        .smooth-slider .slide-content {
            height: 480px;
            padding: 0 120px;
        }

        .smooth-slider .slide-image img {
            width: 240px;
            height: 320px;
        }

        .smooth-slider .slide-text {
            -webkit-line-clamp: 6;
        }
}

@media screen and (min-width: 1024px) and (max-width: 1279px) {
    .smooth-slider {
        max-width: 1024px;
    }

        .smooth-slider .slide-content {
            height: 360px;
            padding: 0 90px;
        }

        .smooth-slider .slide-image img {
            width: 180px;
            height: 240px;
        }

        .smooth-slider .slide-text {
            -webkit-line-clamp: 5;
        }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    .smooth-slider {
        max-width: 768px;
    }

        .smooth-slider .slide-content {
            height: 350px;
            padding: 0 75px;
        }

        .smooth-slider .slide .slide-content .slide-info .slide-title {
            font-size: 25px;
        }

        .smooth-slider .slide-image img {
            width: 150px;
            height: 200px;
        }

        .smooth-slider .slide-text {
            -webkit-line-clamp: 5;
        }
}

@media screen and (min-width: 641px) and (max-width: 767px) {
    .smooth-slider {
        max-width: 641px;
    }

        .smooth-slider .slide-content {
            padding: 60px;
            flex-direction: column;
        }

        .smooth-slider .slide .slide-content .slide-info .slide-title {
            font-size: 25px;
        }

        .smooth-slider .slide .slide-info {
            text-align: center;
        }

        .smooth-slider .slide-image img {
            width: 180px;
            height: 240px;
        }

        .smooth-slider .slide-text {
            -webkit-line-clamp: 5;
        }
}

@media screen and (max-width: 640px) {
    .smooth-slider {
        max-width: 100%;
    }

        .smooth-slider .slide-content {
            padding: 20px;
            flex-direction: column;
        }

        .smooth-slider .slide .slide-content .slide-info .slide-title {
            font-size: 25px;
        }

        .smooth-slider .slide .slide-info {
            text-align: center;
        }

        .smooth-slider .slide-image img {
            width: 180px;
            height: 240px;
        }

        .smooth-slider .slide-text {
            -webkit-line-clamp: 5;
        }
}

.smooth-slider .slide .slide-content .slide-info .slide-title,
.smooth-slider .slide .slide-content .slide-info .slide-text {
    overflow-wrap: break-word; /* Uzun kelimeleri böler */
    word-wrap: break-word; /* Eski tarayıcılar için */
    word-break: break-word; /* Gerekirse kelime ortasından böler */
}
