/**
 * Recipe Suites Mobile - Modern 2025+ Design
 * Mobile layout for povar.ru
 * Horizontal scrollable recipe cards
 */

/* Section Container */
.recipe-suites-mobile {
    width: 100%;
    padding: 16px 0;
    overflow: hidden;
}

/* Main Heading */
.recipe-suites-mobile__heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c2c2c;
    margin: 0 0 16px 0;
    padding: 0 10px;
}

/* Suite Block - takes full width */
.suite-block-mobile {
    margin-bottom: 1em;
}

.suite-block-mobile:last-child {
    margin-bottom: 0;
}

/* Suite Title */
.suite-block-mobile__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px 0;
    padding: 0 10px;
}

.suite-block-mobile__link {
    color: #FF8400;
    text-decoration: none;
    transition: color 0.2s ease;
}

.suite-block-mobile__link:hover,
.suite-block-mobile__link:active {
    color: #FF5600;
}

/* Recipe Horizontal Scroll Container */
.suite-block-mobile__recipes {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.suite-block-mobile__recipes::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Recipe Card - Horizontal Layout */
.recipe-card-mobile {
    flex: 0 0 auto;
    width: 280px;
    display: flex;
    flex-direction: row;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

/* Recipe Link */
.recipe-card-mobile__link {
    display: flex;
    flex-direction: row;
    width: 100%;
    text-decoration: none;
    color: inherit;
    gap: 12px;
    padding: 10px;
}

.recipe-card-mobile__link:active {
    opacity: 0.8;
}

/* Recipe Figure - Left Side */
.recipe-card-mobile__figure {
    position: relative;
    flex: 0 0 100px;
    width: 100px;
    height: 70px;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

/* Recipe Image */
.recipe-card-mobile__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Recipe Title - Right Side */
.recipe-card-mobile__title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: #2c2c2c;
    margin: 0;
    padding: 12px;
    display: flex;
    align-items: center;
    max-height: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.recipe-card-mobile__link:active .recipe-card-mobile__title {
    color: #FF8400;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .suite-block-mobile__recipes {
        scroll-behavior: auto;
    }
}
