﻿.language-selector {
    display: inline-block;
}

.lang-toggle-btn {
    background-color: #ff7f41;
    color: #fff;
    border: none;
    padding: 3px 4px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
    width: 40px;
    height: 40px;
}

    .lang-toggle-btn:hover {
        background-color: #ff7f41;
    }

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 6px 0;
    display: none;
    min-width: 120px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .lang-dropdown button {
        background: none;
        border: none;
        width: 100%;
        text-align: left;
        padding: 8px 12px;
        font-weight: bold;
        color: #333;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

        .lang-dropdown button:hover {
            background-color: #f2f2f2;
        }

.language-selector:hover .lang-dropdown {
    display: block;
}

/* Slider Container */
.slider-container {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px 0;
    background-color: #f5f5f5;
    scrollbar-width: none; /* Firefox için */
    text-align: center;
    -webkit-overflow-scrolling: touch; /* iOS kaydırma performansı */
}

/* Slider Animasyonu */
.slider {
    display: inline-block;
    white-space: nowrap;
    padding: 0 15px;
    margin-top: 130px;
    animation: slide 60s linear infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.item {
    display: inline-block;
    width: 100px;
    min-width: 120px;
    height: 100px; /* tüm kartlara aynı yükseklik */
    text-align: center;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 6px;
    vertical-align: top;
    transition: all 0.3s ease;
}


    .item img {
        width: 40%; /* 60% → küçültüldü */
        max-width: 70px; /* 120px → küçültüldü */
        height: 70px; /* 100px → küçültüldü */
        object-fit: cover;
        display: block;
        margin: 0 auto;
        padding-top: 6px; /* Biraz daha dar */
    }

    .item p {
        margin: 0px 0;
        padding: 0 -3px;
        font-size: 10px;
        color: #333;
        font-weight: bold;
        word-break: normal; /* kelime bölme */
        overflow-wrap: break-word; /* uzun kelimeler sığmazsa satır atla */
        white-space: normal; /* satır atlamaya izin ver */
    }



/* Slider'ın sürekli devam etmesi için içeriği kopyalama */
.slider-container .slider {
    display: inline-block;
    white-space: nowrap;
}

    .slider-container .slider:nth-child(2) {
        position: absolute;
        top: 15px;
        left: 100%;
    }

/* Responsive Ayarlar */
@media (max-width: 1280px) {
    .slider {
        margin-top: 115px;
    }

    .item {
        width: 150px;
    }

        .item p {
            font-size: 10px;
            font-weight: bold;
        }
}
@media (min-width: 769px) and (max-width: 1279px) {
    .slider {
        margin-top: 170px;
    }

    .item {
        width: 150px;
    }

        .item p {
            font-size: 10px;
            font-weight: bold;
        }
}
@media (max-width: 768px) {
    .slider {
        margin-top: 170px;
    }

    .item img {
        width: 70%;
    }

    .item p {
        font-size: 13px;
        font-weight: bold;
    }
}

@media (max-width: 480px) {
    .slider {
        margin-top: 125px;
    }

    .item {
        width: 120px;
    }

        .item p {
            font-size: 12px;
            font-weight: bold;
        }
}

