/*
Theme Name: Kolay Yemek Tarifleri
Theme URI: https://kolayyemektarifleri.com
Author: Kolay Yemek Tarifleri
Description: Yemek tarifleri için dinamik, modern ve responsive WordPress teması.
Version: 1.0
Text Domain: kolayyemektarifleri
*/

/* Genel Sıfırlama ve Temel Stiller */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            text-decoration: none!important;
        }

a:visited {
    color:rgb(255, 255, 255);
}
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            color: #000000;
        }

        /* Container for content sections */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Header & Navigation */
        header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: bold;
            text-decoration: none;
            color: white;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            transition: opacity 0.3s;
            font-weight: 500;
        }

        .nav-links a:hover {
            opacity: 0.8;
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* === HERO ARAMA MODÜLÜ STİLLERİ === */
        /* Hero Section */
        .hero {
            margin-top: 70px;
            background:
    linear-gradient(rgba(0,0,0,0.30), rgba(0,0,0,0.50)),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600" preserveAspectRatio="xMidYMid slice"><rect width="1200" height="600" fill="%23667eea"/><circle cx="250" cy="180" r="160" fill="%23764ba2" opacity="0.35"/><circle cx="900" cy="350" r="230" fill="%2383a0f5" opacity="0.25"/><circle cx="1100" cy="150" r="120" fill="%23764ba2" opacity="0.30"/><g transform="translate(600,475) rotate(0) scale(1.2)"><animateTransform attributeName="transform" type="rotate" values="86;94;86" dur="4s" repeatCount="indefinite" additive="sum"/><animateTransform attributeName="transform" type="translate" values="0 0;0 -8;0 0" dur="2.2s" repeatCount="indefinite" additive="sum"/><ellipse cx="0" cy="0" rx="20" ry="28" fill="%23ffffff" opacity="0.85"/><rect x="-7" y="25" width="14" height="110" rx="7" fill="%23ffffff" opacity="0.85"/></g></svg>');




            background-size: cover;
            background-position: center;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
        }

        .hero-content {
            padding: 1rem;
            max-width: 600px;
            width: 90%;
            /* Animasyonlar (mevcut stilinizden) */
        }

        .hero-content h1 {
            font-size: 3rem;
            margin-bottom: 1rem;
            animation: fadeInUp 1s ease;
        }

        .hero-content p {
            font-size: 1.3rem;
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease 0.2s backwards;
        }
        
        /* Arama Modülü Stilleri */
        .live-search-container {
            position: relative;
            margin: 0 auto;
            max-width: 450px;
            animation: fadeInUp 1s ease 0.4s backwards;
        }

        .search-input-hero {
            width: 100%;
            padding: 1rem 1.5rem;
            border-radius: 50px;
            border: none;
            font-size: 1.1rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }

   .search-input-hero:focus {
    outline: 2px solid #172f96;
    box-shadow: 0 0 8px rgba(23, 47, 150, 0.6);
}




        .search-results-hero {
            position: absolute;
            top: 100%; /* Giriş alanının hemen altına konumlandır */
            left: 0;
            width: 100%; 
            max-height: 250px;
            overflow-y: auto;
            background: white;
            border-radius: 0 0 15px 15px;
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
            z-index: 50; /* Z-index'i hero içinde yüksek tut */
            display: none; 
            margin-top: 5px; /* Giriş alanından biraz boşluk */
            color:#ffffff!important;
        }

        .search-results-hero.active {
            display: block;
            color:#ffffff!important;
            background-color:#667eea!important ;
        }

        .search-input-hero::placeholder {
    transition: opacity 0.4s ease;
}


        /* Arama sonucu öğesi için stil */
        .search-item {
            padding: 0.75rem 1.5rem;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            color: #ffffff;
            text-decoration: none;
            display: flex; /* İçerik ve görseli yan yana koymak için */
            align-items: center; /* Dikeyde ortala */
            transition: background-color 0.2s;
        }

        .search-item:last-child {
            border-bottom: none;
        }

        .search-item:hover {
            background-color: #4c60bc; /* Açık turuncu hover */
            color: #ffffff;
        }

        /* Arama sonucu görseli için stil */
        .search-item-image {
            width: 40px; /* Görsel genişliği */
            height: 40px; /* Görsel yüksekliği */
            border-radius: 5px; /* Hafif yuvarlak köşeler */
            margin-right: 1rem; /* Metinle arasında boşluk */
            object-fit: cover; /* Görselin kutuya sığmasını sağla */
            background-color: #4c60bc; /* Placeholder arka planı */
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem; /* Emoji boyutunu ayarla */
            flex-shrink: 0; /* Küçülmesini engelle */
        }

        .search-item-image {
    width: 55px;
    height: 55px;
    overflow: hidden;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

        
        .no-results {
            padding: 0.75rem 1.5rem;
            color: #ffffff;
            text-align: center;
            font-style: italic;
        }
        
        /* Önceki CTA butonu artık kullanılmadığı için kaldırıldı. */
        .cta-button { 
            display: none; 
        }

  /* Categories Section */
/* Categories Section */
.categories {
	/*     padding: 2.5rem 1rem; */
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #000000;
    text-decoration: none!important;
}

/* Grid — daha sıkı */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1.2rem; /* boşluklar azaltıldı */
    justify-items: center;
}

/* Card */
.category-card {
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s;
    text-decoration: none;
}

.category-card:hover {
    transform: scale(1.05);
}

/* Küçültülmüş Instagram-style circular image */
.category-image {
    width: 80px;    /* küçültüldü */
    height: 80px;   /* küçültüldü */
    border-radius: 50%;
    background: white;
    border: 3px solid #ff6b6b; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem; /* emoji küçültüldü */
    margin: 0 auto 0.6rem; /* alt boşluk azaldı */
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Content */



.category-content h3 {
    font-size: 0.95rem; /* küçültüldü */
    margin-bottom: 0.2rem;
    color: #000000;
      

}

.category-content p {
    font-size: 0.75rem; /* küçültüldü */
    color: #000000;
    margin: 0;
       
}

.see-more-wrapper {
    text-align: center;
    margin-top: 15px;
}

.see-more-button {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.2s;
}

.see-more-button:hover {
    background: #764ba2;
}



        /* Featured Recipes */
.featured {
    position: relative;
   /*  background: #f8f9fa; */
    /* box-shadow: 0 4px 12px rgba(118, 75, 162, 0.35); */ 
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Parlama animasyon efekti */
.featured::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-20deg);
    transition: 2.9s ease;
}

/* Hover'da soldan sağa akma */
.featured:hover::before {
    left: 120%;
}

.recipe-info h3 a:visited {

color:#667eeaed;

}




        .recipe-grid {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
        }

        .recipe-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }

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

   .recipe-image {
    width: 100%;
    height: 250px;
    overflow: hidden; /* Önemli */
    border-radius: 10px; /* İstersen */
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* resmi kırpmadan doldurur */
    object-position: center; /* ortalar */
    display: block;
}



        .recipe-info {
            padding: 1.5rem;
        }

        .recipe-info h3 {
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
            color: #000000;
        }

        .recipe-meta {
            display: flex;
            gap: 1rem;
            color: #000000;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .recipe-meta span {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .view-recipe {
            display: inline-block;
            padding: 0.7rem 1.5rem;
            background: #667eea;
            color: white;
            text-decoration: none;
            border-radius: 25px;
            transition: background 0.3s;
        }

        .view-recipe:hover {
            background: #764ba2;
        }
        
           /* Cookie Consent Banner */
        .cookie-consent { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: white; padding: 1.5rem 2rem; box-shadow: 0 -5px 20px rgba(0,0,0,0.3); z-index: 9999; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; animation: slideUp 0.5s ease; }
        .cookie-consent.hidden { display: none; }
        @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
        .cookie-content { flex: 1; min-width: 250px; }
        .cookie-content h4 { font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
        .cookie-content p { font-size: 0.95rem; opacity: 0.9; line-height: 1.5; }
        .cookie-content a { color: #4fc3f7; text-decoration: underline; }
        .cookie-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
        .cookie-btn { padding: 0.8rem 2rem; border: none; border-radius: 25px; font-weight: bold; cursor: pointer; transition: all 0.3s; font-size: 0.95rem; }
        .cookie-accept { background: #4caf50; color: white; }
        .cookie-accept:hover { background: #45a049; transform: translateY(-2px); }
        .cookie-decline { background: white; color: #333; }
        .cookie-decline:hover { background: #f0f0f0; }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 3rem 2rem;
            margin-top: 4rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        .footer-section h3 {
            margin-bottom: 1rem;
            color: #ffffff;
        }

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

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

        .footer-section a {
            color: #ffffff;
            text-decoration: none;
            transition: color 0.3s;
        }

        .footer-section a:hover {
            color: #eeddff;
        }

        .footer-bottom {
            text-align: center;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid #ffffff;
            color: #ffffff;
        }

        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .nav-links {
                position: fixed;
                right: -100%;
                top: 70px;
                flex-direction: column;
                background: #667eea;
                width: 100%;
                text-align: center;
                transition: 0.3s;
                padding: 2rem 0;
            }

            .nav-links.active {
                right: 0;
            }

            .menu-toggle {
                display: block;
            }

            .hero-content h1 {
                font-size: 2rem;
            }

            .hero-content p {
                font-size: 1rem;
            }
            
            .search-input-hero {
                padding: 0.8rem 1rem;
                font-size: 1rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .category-grid,
            .recipe-grid {
                grid-template-columns: 1fr;
            }
        }
