/* Стилі для модального вікна сезонних рецептів */
.season-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: transparent;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.season-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.season-modal {
    background: #1E2530;
    border-radius: 16px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.season-modal-overlay.active .season-modal {
    transform: translateY(0);
    opacity: 1;
}

.season-modal::-webkit-scrollbar {
    width: 8px;
}

.season-modal::-webkit-scrollbar-track {
    background: rgba(230, 238, 248, 0.1);
    border-radius: 4px;
}

.season-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.5);
    border-radius: 4px;
}

.season-modal-image {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.season-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.season-modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 300px);
}

.season-modal h3 {
    color: #e6eef8;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.season-description {
    color: #e6eef8;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.season-recipes-grid {
    /* Desktop: carousel view */
    overflow: hidden;
    height: 340px;
    margin-bottom: 1.25rem;
    position: relative;
}

.season-recipes-track {
    display: flex;
    gap: 1rem;
    align-items: center;
    transition: transform 0.35s ease;
    will-change: transform;
    padding: 0 0.25rem;
}

.season-recipe-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex: 0 0 calc((100% - 2rem) / 3);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    box-sizing: border-box;
}

.season-recipe-card:hover {
    transform: translateY(-5px);
}

.season-recipe-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.season-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.season-recipe-info {
    padding: 1rem;
}

.season-recipe-info h4 {
    color: #e6eef8;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.season-recipe-info p {
    color: #e6eef8;
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.season-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.season-recipe-time {
    color: #e6eef8;
    opacity: 0.7;
    font-size: 0.9rem;
}

.season-recipe-button {
    background: transparent;
    color: #ff6b35;
    border: 1px solid #ff6b35;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.season-recipe-button:hover {
    background: #ff6b35;
    color: #e6eef8;
}

.season-like-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #e6eef8;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    transition: all 0.15s ease;
    min-width: 44px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.season-like-btn:hover {
    background: rgba(255,107,53,0.15);
    color: #ff6b6b;
}

.season-like-btn.liked {
    color: #ff6b6b;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(11, 17, 24, 0.8);
    color: #e6eef8;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #ff6b35;
    transform: rotate(90deg);
}

/* Navigation arrows */
.season-prev, .season-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(11,17,24,0.7);
    color: #e6eef8;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: background 0.2s ease;
}
.season-prev { left: 12px; }
.season-next { right: 12px; }
.season-prev:hover, .season-next:hover { background: rgba(255,107,53,0.95); }

/* Адаптивність */
@media (max-width: 768px) {
    .season-modal-overlay {
        background-color: #1E2530;
        padding: 0;
    }

    .season-modal {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        height: auto;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        background: #1E2530;
        overflow-y: auto; /* Allow scrolling */
    }

    .season-modal-image {
        max-height: 200px;
        height: 200px;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }

    .season-modal-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        z-index: 30;
    }

    /* Hide arrows on mobile since carousel is disabled */
    .season-prev,
    .season-next {
        display: none;
    }

    .season-modal-content {
        padding: 1.5rem 0 1.5rem;
        flex: 1;
        overflow-y: visible; /* No need for scroll here */
        display: flex;
        flex-direction: column;
        gap: 1rem;
        position: static;
    }

    .season-modal h3 {
        font-size: 1.6rem;
        margin: 0;
        padding: 0 1.5rem;
        line-height: 1.2;
    }

    .season-description {
        font-size: 0.95rem;
        line-height: 1.5;
        padding: 0 1.5rem;
        margin: 0;
        color: #e6eef8;
        opacity: 0.95;
    }

    .season-recipes-grid {
        width: calc(100% - 30px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0 15px 20px;
        box-sizing: border-box;
        overflow: visible;
        height: auto;
    }

    .season-recipes-track {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        padding: 0;
    }

    .season-recipe-card {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 16px;
        overflow: hidden;
        transition: transform 0.2s ease;
        width: 100%;
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
        box-sizing: border-box;
    }

    .season-recipe-card:hover {
        transform: translateY(-2px);
    }

    .season-recipe-image {
        width: 100%;
        height: 220px;
        overflow: hidden;
    }

    .season-recipe-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .season-recipe-info {
        padding: 1rem;
        background: rgba(6, 14, 24, 0.95);
    }

    .season-recipe-info h4 {
        color: #e6eef8;
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .season-recipe-info p {
        color: #e6eef8;
        opacity: 0.85;
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .season-recipe-meta {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.75rem;
    }

    .season-recipe-time {
        color: #e6eef8;
        opacity: 0.8;
        font-size: 0.95rem;
        order: 1;
    }

    .season-like-btn {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        color: #e6eef8;
        font-size: 1rem;
        cursor: pointer;
        padding: 0.5rem 0.7rem;
        border-radius: 8px;
        transition: all 0.15s ease;
        min-width: 44px;
        aspect-ratio: 1 / 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 1;
    }

    .season-recipe-button {
        background: #ff6b35;
        color: #e6eef8;
        border: none;
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
        font-size: 1rem;
        cursor: pointer;
        transition: background 0.2s ease;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        z-index: 9999 !important;
        position: relative;
        order: 2;
    }

    .season-recipe-button:hover {
        background: #e55a2b;
        color: #e6eef8;
    }

    .season-like-btn {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.12);
        color: #e6eef8;
        font-size: 1rem;
        cursor: pointer;
        padding: 0.5rem 0.7rem;
        border-radius: 8px;
        transition: all 0.15s ease;
        min-width: 44px;
        aspect-ratio: 1 / 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hide arrows on very small screens if desired */
@media (max-width: 480px) {
    .season-prev,
    .season-next {
        width: 38px;
        height: 38px;
        font-size: 1.25rem;
    }
}