/**
 * MevaYemek özel CSS düzenlemeleri
 * 
 * Geliştirici: Vedat Ardil - www.vedatardil.com.tr
 */

/* Header düzenlemeleri */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo ve başlık düzenlemeleri */
.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.2;
}

.site-title a {
    color: var(--primary-color);
}

.site-description {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--light-text);
    margin: 0;
}

/* Menü düzenlemeleri */
#site-navigation { /* Use the nav container ID for specificity */
    flex: 1;
    display: flex;
    justify-content: center;
}

#primary-menu { /* Use the menu ID for the top-level ul */
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#primary-menu > li { /* Target only top-level li */
    margin: 0 1rem;
    position: relative;
}

#primary-menu > li > a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    position: relative;
    transition: color 0.3s ease;
    text-transform: capitalize; /* İlk harfleri büyük, diğerleri küçük */
}

#primary-menu > li > a:hover {
    color: var(--primary-color);
}

#primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#primary-menu > li > a:hover::after {
    width: 100%;
}

#primary-menu .current-menu-item > a {
    color: var(--primary-color);
}

#primary-menu .current-menu-item > a::after {
    width: 100%;
}

/* --- KESİN ALT MENÜ ÇÖZÜMÜ (YENİDEN EKLENDİ) --- */
#primary-menu ul.sub-menu {
    display: block; /* Geçici olarak her zaman görünür, alttaki kurallarla kontrol edilecek */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    border-radius: 4px;
    border-top: 3px solid var(--primary-color);
    z-index: 1000;
    list-style: none;
    margin-top: 0;
    opacity: 0; /* Başlangıçta gizli */
    visibility: hidden; /* Başlangıçta gizli */
    transform: translateY(10px); /* Hafif aşağıda başla */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#primary-menu li.menu-item-has-children:hover > ul.sub-menu {
    opacity: 1; /* Üzerine gelince görünür yap */
    visibility: visible;
    transform: translateY(0); /* Normal konumuna getir */
}
/* --- KESİN ÇÖZÜM SONU --- */

#primary-menu .sub-menu li {
    margin: 0;
    padding: 0;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

#primary-menu .sub-menu li:last-child {
    border-bottom: none;
}

#primary-menu .sub-menu a {
    text-transform: capitalize;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    display: block;
    width: 100%;
    color: var(--text-color);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
}

#primary-menu .sub-menu a:hover {
    color: var(--primary-color);
    background-color: #f7f7f7;
    padding-left: 1.8rem;
}

#primary-menu .sub-menu a::after {
    content: '';
    position: absolute;
    bottom: 0.4rem; /* Adjusted position */
    left: 1.5rem;
    right: 1.5rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

#primary-menu .sub-menu a:hover::after {
    transform: scaleX(1);
}

/* Alt menünün alt menüsü (3. seviye) */
#primary-menu .sub-menu .sub-menu {
    left: 100%;
    top: -0.5rem; /* Align with parent item */
    margin-top: 0;
}

/* Mobil için dropdown toggle butonu (desktop'ta gizli) */
.dropdown-toggle {
    display: none;
}

/* Arama düğmesi */
.header-actions {
    display: flex;
    align-items: center;
}

.search-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-background);
    color: var(--primary-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-toggle:hover {
    background-color: var(--primary-color);
    color: white;
}

.search-form-container {
    display: none;
    padding: 1rem 0;
    background-color: var(--light-background);
    border-top: 1px solid var(--border-color);
}

.search-form-container.active {
    display: block;
}

/* Arama formu */
.search-form {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrap {
    display: flex;
    position: relative;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.search-submit {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: var(--secondary-color);
}

/* Mobil menü düğmesi */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    padding: 0.5rem;
    z-index: 101;
    position: relative;
    outline: none;
}

/* Ana sayfa düzenlemeleri */
.site-main {
    padding-top: 2rem;
}

/* Kategoriler bölümü düzenlemeleri */
.categories-section {
    margin: 2rem 0 3rem;
}

.categories-section .section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.categories-section .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.category-item {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Tarif kartları düzenlemeleri */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.recipe-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.recipe-card__image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

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

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

.recipe-card__content {
    padding: 1.5rem;
}

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

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

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

.recipe-card__meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--light-text);
    font-size: 0.85rem;
}

.recipe-card__meta span {
    display: flex;
    align-items: center;
    margin-right: 1.25rem;
}

.recipe-card__meta i {
    color: var(--primary-color);
    margin-right: 0.35rem;
    font-size: 0.95rem;
}

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

.recipe-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.recipe-card__category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: #333;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.recipe-card__category-badge:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.recipe-card .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background-color: var(--light-background);
    color: var(--primary-color);
    font-size: 3rem;
}

.recipe-card__author {
    font-size: 0.85rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
}

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

.recipe-card__more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

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

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

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

/* Single Recipe Page - Daha net bölüm ayrımı, çakışma yok */
.single-recipe .recipe-hero {
    margin-bottom: 2rem;
}

.single-recipe .recipe-details-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    padding: 1.75rem 1.5rem;
    margin: 0 auto 3rem;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}

.recipe-details-bar__item {
    text-align: center;
    color: var(--text-color);
    padding: 0 1rem;
}

.recipe-details-bar__item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.recipe-details-bar__item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.recipe-details-bar__item span {
    font-size: 1rem;
    font-weight: 600;
}

.recipe-main-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.recipe-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Kart tabanlı bölümler - Her bölüm ayrı, iç içe değil */
.recipe-card-section {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.recipe-card-section__inner {
    padding: 2rem 2.25rem;
}

.recipe-description-card .recipe-card-section__inner {
    padding: 2rem 2.5rem;
}

.recipe-ingredients-card .recipe-card-section__inner,
.recipe-instructions-card .recipe-card-section__inner {
    padding: 2rem 2.25rem;
}

.recipe-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.recipe-ingredients-section .section-title,
.recipe-instructions-section .section-title,
.recipe-card-section .section-title {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--light-background);
}

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

.recipe-ingredients__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 1rem;
    line-height: 1.6;
}

.recipe-ingredients__item::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary-color);
    flex-shrink: 0;
    font-size: 1rem;
    margin-top: 0.2em;
}

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

/* Hazırlanış adımları - Daha belirgin numaralar */
.recipe-instructions__list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin: 0;
}

.recipe-instructions__item {
    position: relative;
    padding: 1.25rem 0 1.25rem 3.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.75;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.recipe-instructions__item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

/* Sidebar kart stili */
.recipe-sidebar-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}

.recipe-share-widget {
    text-align: center;
}

.recipe-share-widget .widget-title {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

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

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

.recipe-share-widget .social-share a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tarif içeriği için kullanıcı dostu tipografi - Tarif Hakkında kartı içinde */
.single-recipe .recipe-description .entry-content {
    font-size: 1.05rem;
    color: #333;
}

.single-recipe .recipe-description .entry-content p {
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.single-recipe .recipe-description .entry-content p:last-child {
    margin-bottom: 0;
}

.single-recipe .recipe-description .entry-content strong {
    font-weight: 600;
    color: var(--text-color);
}

/* İçerik içindeki başlıkları (kalın yazıları) güzelleştirelim */
.single-recipe .recipe-description .entry-content p > strong,
.single-recipe .recipe-description .entry-content h3,
.single-recipe .recipe-description .entry-content h4 {
    display: block;
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Malzeme listesi (ul) - Tarif Hakkında içindeki listeler */
.single-recipe .recipe-description .entry-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.single-recipe .recipe-description .entry-content ul li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.75em;
    line-height: 1.7;
}

.single-recipe .recipe-description .entry-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

/* Hazırlanışı listesi (ol) - Tarif Hakkında içindeki numaralı listeler */
.single-recipe .recipe-description .entry-content ol {
    list-style: none;
    counter-reset: instructions-counter;
    padding-left: 0;
    margin-bottom: 1.5em;
}

.single-recipe .recipe-description .entry-content ol li {
    position: relative;
    padding-left: 3.5em;
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.single-recipe .recipe-description .entry-content ol li::before {
    counter-increment: instructions-counter;
    content: counter(instructions-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25em;
    height: 2.25em;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Yatay çizgileri (hr) düzenleyelim */
.single-recipe .recipe-description .entry-content hr {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5em 0;
}

/* Responsive for Single Recipe */
@media (max-width: 992px) {
    .recipe-main-content {
        grid-template-columns: 1fr;
    }
    .recipe-sidebar {
        order: -1;
        margin-bottom: 2rem;
    }
    .recipe-columns {
        grid-template-columns: 1fr;
    }
    .recipe-details-bar {
        max-width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .recipe-card-section__inner {
        padding: 1.5rem 1.75rem;
    }
}

@media (max-width: 576px) {
    .recipe-details-bar {
        padding: 1.25rem 1rem;
    }
    .recipe-card-section__inner {
        padding: 1.25rem 1.5rem;
    }
}


/* Bölüm başlıkları */
.section-title {
    position: relative;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Popüler ve Son Eklenen Tarifler bölümleri */
.popular-recipes-section,
.recent-recipes-section {
    margin-bottom: 4rem;
}

/* Bülten bölümü */
.newsletter-section {
    background-color: var(--light-background);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--secondary-color);
}

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

.recipe-header {
    margin-bottom: 2rem;
}

.recipe-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.recipe-meta__item {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.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: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.recipe-info__item {
    text-align: center;
    padding: 0 1rem;
}

.recipe-info__label {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.35rem;
    font-weight: 500;
}

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

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

.recipe-ingredients {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.recipe-ingredients__title {
    margin-bottom: 1.25rem;
    font-size: 1.35rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.recipe-ingredients__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.recipe-ingredients__list {
    list-style: none;
}

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

.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.2rem;
}

.recipe-instructions__title {
    margin-bottom: 1.5rem;
    font-size: 1.35rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.recipe-instructions__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

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

.recipe-instructions__item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

.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: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.recipe-notes {
    margin-bottom: 3rem;
}

.recipe-notes h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.recipe-notes h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.recipe-share {
    margin-bottom: 3rem;
}

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

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

.social-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    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.1);
}

/* İlgili tarifler */
.related-recipes {
    margin-bottom: 3rem;
}

.related-recipes h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

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

/* Pagination */
.pagination {
    margin: 3rem 0 1rem;
    text-align: center;
}

.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.pagination .page-numbers li {
    margin: 0 0.25rem;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers a:hover {
    background-color: var(--light-background);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-numbers .current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.pagination .page-numbers .dots {
    border: none;
    background: transparent;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--light-text);
    border-bottom: 1px solid var(--border-color);
}

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

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

.breadcrumbs .current {
    color: var(--primary-color);
    font-weight: 600;
}

.breadcrumbs i {
    margin: 0 0.5rem;
    font-size: 0.7rem;
}

/* Footer */
.site-footer {
    background-color: var(--light-background);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

/* Footer widget alanları kaldırıldı */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--light-text);
}

.footer-navigation .footer-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-navigation a:hover {
    color: var(--primary-color);
}

.site-info {
    margin: 0;
}

.footer-social {
    margin: 0;
}


@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
    }
}

.footer-menu {
    margin-bottom: 1rem;
}

.footer-menu .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-menu .menu a {
    color: var(--light-text);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: capitalize; /* Footer menüsü için de ilk harfleri büyük */
}

.footer-menu .menu a:hover {
    color: var(--primary-color);
}

.site-info {
    margin-bottom: 1rem;
}

.site-info a {
    font-weight: 600;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive düzenlemeler */
@media (max-width: 992px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .recipe-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .recipe-ingredients {
        margin-bottom: 2rem;
    }
    
    .primary-navigation {
        justify-content: flex-end;
    }
    
    .menu li {
        margin: 0 0.75rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .main-navigation {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 1rem;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 4px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover, 
    .menu-toggle.active {
        background-color: var(--primary-color);
        color: white;
    }
    
    .primary-navigation {
        /* Position it absolutely below the header */
        position: absolute;
        top: calc(100% + 10px); /* Position below the header with a small gap */
        left: 0;
        width: 100%;
        
        /* Visual styling */
        background-color: #fff;
        border-radius: var(--border-radius);
        box-shadow: 0 8px 25px rgba(0,0,0,0.1);
        border: 1px solid var(--border-color);

        /* Hiding/showing mechanism with a smooth transition */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        
        z-index: 1000;
        order: 4; /* Ensure it is the last element in flex order */
    }
    
    .primary-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .menu {
        flex-direction: column;
        padding: 0.5rem 0;
    }
    
    .menu li {
        margin: 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .menu li:last-child {
        border-bottom: none;
    }
    
    .menu a {
        padding: 0.75rem 1.5rem;
        display: block;
        width: 100%;
        text-transform: capitalize; /* Mobil menü için de ilk harfleri büyük */
    }
    
    .menu a::after {
        display: none;
    }
    
    /* Mobil alt menü */
    .menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.03);
        padding: 0;
        display: none; /* Varsayılan olarak gizle */
        margin: 0;
        float: none;
        transition: height 0.3s ease; /* Yükseklik için animasyon */
        height: 0; /* Başlangıç yüksekliği */
        overflow: hidden; /* Gizli içeriği kırp */
    }
    
    .menu .menu-item-has-children.active > .sub-menu {
        display: block; /* Aktif olduğunda görünür yap */
        height: auto; /* İçeriğe göre yüksekliği ayarla */
    }
    
    .menu .sub-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        margin: 0;
        padding: 0;
        float: none;
        width: 100%;
        display: block;
    }
    
    .menu .sub-menu a {
        padding-left: 2.5rem;
        font-size: 0.9rem;
        width: calc(100% - 50px);
        white-space: normal;
        overflow: visible;
    }
    
    .menu .sub-menu .sub-menu a {
        padding-left: 3.5rem;
    }
    
    /* Mobil alt menü toggle */
    .menu-item-has-children > a {
        position: relative;
        display: inline-block;
        width: calc(100% - 50px);
    }
    
    .menu-item-has-children > a:after {
        display: none !important;
    }
    
    .dropdown-toggle {
        position: absolute;
        right: 0;
        top: 0;
        height: 44px;
        width: 50px;
        background: transparent;
        border: none;
        font-size: 1.2rem;
        color: var(--text-color);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        outline: none;
        z-index: 10;
        padding: 0;
        margin: 0;
    }
    
    .dropdown-toggle:focus {
        outline: none;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .dropdown-toggle.active i {
        transform: rotate(180deg);
    }
    
    .recipe-title {
        font-size: 1.75rem;
    }
    
    .recipe-info {
        flex-wrap: wrap;
    }
    
    .recipe-info__item {
        width: 50%;
        margin-bottom: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Mobil alt menü toggle görünür yap */
    .dropdown-toggle {
        display: flex;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-description {
        font-size: 0.8rem;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input[type="email"] {
        border-radius: 4px;
        margin-bottom: 0.75rem;
    }
    
    .newsletter-form button {
        border-radius: 4px;
        padding: 0.75rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recipe-meta__item {
        margin-bottom: 0.5rem;
    }
    
    .recipe-card__content {
        padding: 1.25rem;
    }
    
    .recipe-card__title {
        font-size: 1.1rem;
    }
    
    .recipe-card__meta {
        flex-wrap: wrap;
    }
    
    .recipe-card__meta span {
        margin-bottom: 0.5rem;
    }
    
    .recipe-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}