/**
 * MevaYemek tarif slider stilleri
 * 
 * Geliştirici: Vedat Ardil - www.vedatardil.com.tr
 */

.category-recipes-slider {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
}

.category-recipes-slider .section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-size: 1.75rem;
    color: var(--text-color);
}

.category-recipes-slider .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.swiper-container {
    width: 100%;
    padding: 1rem 0 3rem;
    overflow: visible;
}

.recipe-slider {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.recipe-slider.slider-initialized {
    opacity: 1;
}

.recipe-slide {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.recipe-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.recipe-slide__image {
    position: relative;
    overflow: hidden;
    height: 0;
    padding-bottom: 65%;
}

.recipe-slide__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-slide:hover .recipe-slide__image img {
    transform: scale(1.05);
}

.recipe-slide__category {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
    text-decoration: none;
}

.recipe-slide__content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-slide__title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 600;
}

.recipe-slide__title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.recipe-slide__title a:hover {
    color: var(--primary-color);
}

.recipe-slide__meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 0.75rem;
}

.recipe-slide__meta i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.recipe-slide__more {
    margin-top: auto;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.recipe-slide__more i {
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.recipe-slide__more:hover {
    color: var(--secondary-color);
}

.recipe-slide__more:hover i {
    transform: translateX(3px);
}

/* Swiper navigasyon düğmeleri */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Swiper pagination */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: var(--border-color);
    opacity: 1;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    width: 30px;
    background-color: var(--primary-color);
    border-radius: 5px;
}

/* Responsive düzenlemeler */
@media (max-width: 768px) {
    .category-recipes-slider {
        margin: 2rem 0;
        padding: 1.5rem 0;
    }
    
    .category-recipes-slider .section-title {
        font-size: 1.5rem;
    }
    
    .recipe-slide__title {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }
    
    .category-recipes-slider .section-title {
        font-size: 1.3rem;
    }
}
