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

/* Tarif detay sayfası modern düzenlemeleri */
.single-recipe {
    margin: 2rem 0 4rem;
}

.recipe-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.recipe-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.recipe-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
    color: var(--light-text);
}

.recipe-meta__item {
    display: flex;
    align-items: center;
    margin: 0 1.5rem 0.75rem;
    font-size: 0.95rem;
}

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

.recipe-meta__item a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

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

.recipe-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.recipe-image img {
    width: 100%;
    height: auto;
    display: block;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.recipe-info__item {
    text-align: center;
    padding: 0 1.5rem;
    flex: 1;
    min-width: 120px;
    margin-bottom: 1rem;
}

.recipe-info__label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-info__value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
}

.recipe-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.recipe-ingredients {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.recipe-ingredients__title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.recipe-ingredients__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recipe-ingredients__item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.recipe-ingredients__item:last-child {
    border-bottom: none;
}

.recipe-ingredients__item::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.4rem;
}

.recipe-instructions__title {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.recipe-instructions__list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.recipe-instructions__item {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.recipe-instructions__item::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.recipe-notes {
    margin-bottom: 3rem;
    background-color: #fff9e6;
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-color);
}

.recipe-notes h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.recipe-share {
    margin: 3rem 0;
    text-align: center;
}

.recipe-share h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.social-share {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-share .facebook {
    background-color: #3b5998;
}

.social-share .twitter {
    background-color: #1da1f2;
}

.social-share .pinterest {
    background-color: #bd081c;
}

.social-share .whatsapp {
    background-color: #25d366;
}

.social-share .email {
    background-color: #666;
}

.social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

/* İlgili tarifler */
.related-recipes {
    margin: 4rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.related-recipes h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.related-recipes h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Tarif grid düzeni */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.recipe-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

.recipe-card:hover .recipe-card__image img {
    transform: scale(1.05);
}

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

.recipe-card__category-badge:hover {
    background-color: var(--secondary-color);
    color: white;
}

.recipe-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-card__title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

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

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

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

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

.recipe-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.recipe-card__more {
    margin-top: auto;
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

.btn-view-all {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view-all:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-view-all i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn-view-all:hover i {
    transform: translateX(3px);
}

/* Responsive tarif grid */
@media (max-width: 992px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .recipe-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recipe-ingredients {
        margin-bottom: 2rem;
    }
    
    .recipe-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .recipe-info {
        flex-wrap: wrap;
    }
    
    .recipe-info__item {
        width: 50%;
        margin-bottom: 1.5rem;
    }
    
    .recipe-title {
        font-size: 1.9rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .recipe-meta__item {
        margin: 0 0 0.75rem;
    }
}

@media (max-width: 576px) {
    .recipe-info__item {
        width: 100%;
    }
    
    .recipe-title {
        font-size: 1.7rem;
    }
    
    .recipe-instructions__item {
        padding-left: 3rem;
    }
    
    .recipe-instructions__item::before {
        width: 2.2rem;
        height: 2.2rem;
    }
}
