/*
Theme Name: MevaYemek
Theme URI: https://mevayemek.com.tr
Author: Vedat Ardil
Author URI: https://www.vedatardil.com.tr
Description: Modern ve kullanıcı dostu bir yemek tarifi teması. Kullanıcıların yemek tariflerini kolayca bulup inceleyebilecekleri şık bir arayüz sunar.
Version: 1.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mevayemek
Tags: food, recipes, blog, custom-background, custom-logo, custom-menu, featured-images, translation-ready

MevaYemek WordPress Teması
Geliştirici: Vedat Ardil - www.vedatardil.com.tr
*/

:root {
    --primary-color: #FF6B35;
    --secondary-color: #2EC4B6;
    --accent-color: #FFBF69;
    --text-color: #333333;
    --light-text: #666666;
    --background-color: #FFFFFF;
    --light-background: #F5F5F5;
    --border-color: #E0E0E0;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

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

a:hover {
    color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
.site-header {
    background-color: var(--background-color);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-title {
    font-size: 1.8rem;
    margin: 0;
}

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

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

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-left: 1.5rem;
    position: relative;
}

.menu a {
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Recipe Card */
.recipe-card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

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

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

.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.05);
}

.recipe-card__content {
    padding: 1.5rem;
}

.recipe-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

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

.recipe-card__meta i {
    margin-right: 0.25rem;
}

.recipe-card__excerpt {
    margin-bottom: 1rem;
    color: var(--light-text);
}

.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 {
    background-color: var(--accent-color);
    color: var(--text-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
}

.recipe-card__more {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary-color);
}

/* Recipe Grid */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Featured Recipe */
.featured-recipe {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 3rem;
}

.featured-recipe__image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.featured-recipe__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-recipe__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.featured-recipe__title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.featured-recipe__meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.featured-recipe__meta span {
    margin-right: 1rem;
    display: flex;
    align-items: center;
}

.featured-recipe__meta i {
    margin-right: 0.25rem;
}

.featured-recipe__button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.featured-recipe__button:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Categories Section */
.categories-section {
    margin: 3rem 0;
}

.section-title {
    position: relative;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
}

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

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.category-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

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

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Single Recipe */
.single-recipe {
    margin: 3rem 0;
}

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

.recipe-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.recipe-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

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

.recipe-info {
    display: flex;
    justify-content: space-between;
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recipe-info__item {
    text-align: center;
}

.recipe-info__label {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

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

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

.recipe-ingredients {
    background-color: var(--light-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.recipe-ingredients__title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

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

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

.recipe-instructions__title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.recipe-instructions__item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

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

/* Comments */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    margin-bottom: 1.5rem;
}

.footer-widget__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--light-text);
}

/* Responsive */
@media (max-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .menu.active {
        display: block;
    }
    
    .menu li {
        margin: 0;
    }
    
    .menu a {
        padding: 0.75rem 1.5rem;
    }
    
    .recipe-content {
        grid-template-columns: 1fr;
    }
    
    .featured-recipe {
        height: 400px;
    }
    
    .featured-recipe__title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .recipe-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .recipe-info {
        flex-wrap: wrap;
    }
    
    .recipe-info__item {
        width: 50%;
        margin-bottom: 1rem;
    }
    
    .featured-recipe {
        height: 300px;
    }
    
    .featured-recipe__overlay {
        padding: 1rem;
    }
}
