/**
 * Cuisine Horizontal Scroll - Yemeksepeti Style
 * Horizontale Küchen-Icons mit Scroll-Arrows
 * CSP-konform
 */

/* === Container === */
.cuisines-horizontal {
    position: relative;
    background: white;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 12px;
}

/* === Scroll Container === */
.cuisines-scroll-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 40px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cuisines-scroll-container::-webkit-scrollbar {
    display: none;
}

/* === Cuisine Item === */
.cuisine-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    min-width: 80px;
}

.cuisine-item:hover {
    background: #f8f8f8;
}

.cuisine-item.active {
    background: #FFF7F0;
    border-bottom: 3px solid var(--theme-primary, #E87722);
}

/* === Icon Wrapper === */
.cuisine-icon-wrapper {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: #f8f8f8;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cuisine-item:hover .cuisine-icon-wrapper {
    background: #f0f0f0;
    transform: scale(1.05);
}

.cuisine-item.active .cuisine-icon-wrapper {
    background: #FFEAD9;
}

/* === Label === */
.cuisine-label {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    font-weight: 500;
}

.cuisine-item.active .cuisine-label {
    color: var(--theme-primary, #E87722);
    font-weight: 600;
}

/* === Scroll Arrows === */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scroll-arrow:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.scroll-arrow i {
    color: #666;
    font-size: 14px;
}

.scroll-left {
    left: 4px;
}

.scroll-right {
    right: 4px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .cuisines-horizontal {
        margin: 0 -12px 20px -12px;
        border-radius: 0;
        padding: 12px 0;
    }

    .cuisines-scroll-container {
        padding: 0 12px;
    }

    .cuisine-item {
        padding: 8px 12px;
        min-width: 70px;
    }

    .cuisine-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .cuisine-label {
        font-size: 12px;
    }

    .scroll-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .cuisine-item {
        padding: 6px 10px;
        min-width: 60px;
    }

    .cuisine-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .cuisine-label {
        font-size: 11px;
    }
}
