/* =========================================
   1. GENEL AYARLAR
   ========================================= */
body {
    background-color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #2d3436;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
button { font-family: 'Poppins', sans-serif; }

/* İçerik Ortalayıcı */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Başlık Stili */
.section-title {
    border-left: 5px solid #e67e22;
    padding-left: 15px;
    margin: 40px 0 25px 0;
    font-size: 1.6rem;
    color: #2d3436;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* =========================================
   2. HEADER & NAVBAR
   ========================================= */
.navbar { 
    background: white; padding: 15px 5%; display: flex; align-items: center; 
    justify-content: space-between; border-bottom: 1px solid #f1f1f1; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); position: sticky; top: 0; z-index: 1000;
}
.logo a { font-size: 1.5rem; font-weight: 800; color: #2d3436; letter-spacing: 1px; }
.logo span { color: #e67e22; }
.logo i { color: #e67e22; margin-right: 5px; }

.search-bar { 
    background: #f8f9fa; border-radius: 50px; padding: 8px 25px; 
    display: flex; align-items: center; width: 40%; border: 1px solid #eee;
}
.search-bar input { border: none; background: transparent; outline: none; padding: 5px; width: 100%; font-family: 'Poppins', sans-serif; }
.search-bar button { border: none; background: none; cursor: pointer; color: #636e72; font-size: 1.1rem; }

.auth-buttons { display: flex; align-items: center; gap: 15px; }
.btn-login { background: transparent; border: 2px solid #e67e22; color: #e67e22; padding: 8px 20px; border-radius: 50px; font-weight: bold; cursor: pointer; transition:0.3s; }
.btn-login:hover { background: #e67e22; color: white; }
.btn-tarif { background: #2d3436; color: white; padding: 10px 25px; border-radius: 50px; font-weight: bold; border:none; cursor: pointer; display:flex; align-items:center; gap:8px; }

.user-info { display: none; align-items: center; gap: 15px; }
.user-avatar { width: 35px; height: 35px; border-radius: 50%; object-fit: cover; border: 2px solid #e67e22; }
.btn-logout { font-size: 0.9rem; color: #e74c3c; cursor: pointer; text-decoration: underline; background: none; border: none; }

/* Alt Menü */
.sub-navbar { background: white; border-bottom: 1px solid #eee; overflow-x: auto; }
.sub-nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; gap: 30px; padding: 12px 0; }
.sub-nav-link { color: #636e72; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.sub-nav-link:hover { color: #e67e22; }

/* =========================================
   3. GRID SİSTEMİ (ANASAYFA)
   ========================================= */
.categories-container { display: flex; justify-content: center; gap: 15px; margin: 30px 0; flex-wrap: wrap; }
.category-item { 
    background: white; border: 1px solid #eee; padding: 12px 25px; 
    border-radius: 50px; font-weight: 600; color: #636e72; cursor: pointer; 
    transition: 0.3s; display: flex; align-items: center; gap: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.02);
}
.category-item:hover, .category-item.active { background: #e67e22 !important; color: white !important; border-color: #e67e22 !important; transform: translateY(-3px); }
.category-item:hover span, .category-item.active span { color: white !important; }

#recipeGrid, .recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px;
    padding: 10px 0 40px 0;
    width: 100%;
}

.recipe-card {
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); transition: all 0.3s ease;
    border: 1px solid #f0f0f0; cursor: pointer; display: flex;
    flex-direction: column; position: relative; height: 100%;
}
.recipe-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-color: #e67e22; }
.recipe-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.card-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-info h4 { margin: 0 0 10px; font-size: 1.15rem; color: #2d3436; font-weight: 700; line-height: 1.4; }
.card-info p { margin: 0; font-size: 0.85rem; color: #888; display: flex; align-items: center; gap: 5px; }
.rating { color: #ffc107; margin-top: 10px; font-size: 0.9rem; }
.badge { position: absolute; top: 15px; left: 15px; background: #e67e22; color: white; padding: 5px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: bold; box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4); }

/* =========================================
   4. TARİF DETAY SAYFASI ÖZEL (Burası Eksikti!)
   ========================================= */
.recipe-main-card { background: white; border-radius: 30px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.05); margin-top: 20px; position: relative; }
.hero-image { width: 100%; height: 450px; object-fit: cover; }
.recipe-header-info { padding: 40px; text-align: center; border-bottom: 1px solid #f0f0f0; }
.meta-info-bar { display: flex; justify-content: center; gap: 20px; margin-top: 25px; flex-wrap: wrap; }
.meta-item { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #636e72; background: #f8f9fa; padding: 10px 20px; border-radius: 50px; font-size: 0.9rem; border: 1px solid #eee; }
.meta-item i { color: #e67e22; font-size: 1.1rem; }

.recipe-body { padding: 40px; }
.recipe-grid-layout { display: grid; grid-template-columns: 350px 1fr; gap: 40px; }

/* Sol Panel (Malzemeler & Puan) */
.materials-box { background: #fffcf9; padding: 30px; border-radius: 20px; border: 2px dashed #ffe0b2; }
.material-list li { padding: 10px 0; border-bottom: 1px solid #eee; display: flex; gap: 10px; line-height: 1.6; }
.material-list i { color: #27ae60; margin-top: 5px; }

/* 🔥 GERİ GELEN KISIM: PUANLAMA KUTUSU */
.rating-area { 
    display: flex; flex-direction: column; align-items: center; 
    background: #fff; padding: 25px; border-radius: 20px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); margin-top: 30px; 
    border: 2px dashed #e67e22; /* İşte o kutu çizgisi */
}
.stars { display: flex; gap: 10px; font-size: 30px; cursor: pointer; margin: 10px 0; }
.star { color: #ddd; transition: 0.2s; }
.star:hover, .star:hover ~ .star { color: #ffd700; } /* Hover efekti */

/* Sağ Panel (Yapılış) */
.steps-box { line-height: 1.8; color: #444; }

/* Yorumlar Bölümü */
.comments-section { margin-top: 60px; border-top: 1px solid #eee; padding-top: 40px; }
.single-comment { background: #f9f9f9; padding: 15px; border-radius: 10px; margin-bottom: 15px; border-left: 4px solid #e67e22; }

/* =========================================
   5. DİĞER (MODAL, FOOTER)
   ========================================= */
.auth-modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.auth-content { background-color: white; padding: 40px; border-radius: 20px; width: 90%; max-width: 400px; text-align: center; position: relative; animation: slideDown 0.3s ease; }
@keyframes slideDown { from {transform: translateY(-50px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #aaa; }

.auth-btn-google { background: white; border: 1px solid #ddd; color: #555; width: 100%; padding: 12px; border-radius: 50px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; transition: 0.3s; }
.auth-btn-google:hover { background: #f8f9fa; border-color: #ccc; }
.auth-input { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #eee; border-radius: 8px; }
.auth-submit { background: #e67e22; color: white; border: none; width: 100%; padding: 12px; border-radius: 50px; cursor: pointer; font-weight: bold; }
.auth-toggle-text { margin-top: 15px; font-size: 0.9rem; color: #666; }
.auth-toggle-link { color: #e67e22; cursor: pointer; font-weight: bold; text-decoration: underline; }

/* FOOTER VE BÜLTEN */
section[style*="background: #e67e22"] { width: 100%; padding: 60px 20px; box-sizing: border-box; }
.main-footer { width: 100%; padding: 60px 5% 20px; margin-top: 0; background: #2d3436; color: white; box-sizing: border-box; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-section h4 { font-size: 1.5rem; margin-bottom: 20px; }
.footer-section h4 span { color: #e67e22; }
.footer-section h5 { color: #e67e22; margin-bottom: 20px; font-size: 1.1rem; }
.footer-section ul li { margin-bottom: 10px; }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 0.9rem; color: #bdc3c7; }

/* MOBİL UYUM */
@media (max-width: 1024px) { #recipeGrid, .recipe-grid { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px; }
    .search-bar { width: 100%; }
    .recipe-grid-layout { grid-template-columns: 1fr !important; }
    #recipeGrid, .recipe-grid { grid-template-columns: 1fr !important; }
    .auth-buttons { width: 100%; justify-content: center; }
}

#myBtn { display: none; position: fixed; bottom: 30px; right: 30px; z-index: 99; border: none; outline: none; background-color: #e67e22; color: white; cursor: pointer; padding: 15px; border-radius: 50%; font-size: 18px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: 0.3s; width: 50px; height: 50px; align-items: center; justify-content: center; }
/* 🔥 ARAMA ÖNERİ KUTUSU (Dropdown) */
.search-container {
    position: relative;
    width: 45%; /* Search bar genişliğiyle aynı olsun */
}

/* Arama sonuç kutusu */
.search-suggestions {
    position: absolute;
    top: 100%; /* Tam search bar'ın altına yapışsın */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 9999;
    display: none; /* Başlangıçta gizli */
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid #f1f1f1;
}

/* İçindeki başlıklar (Popüler Aramalar vb.) */
.suggestion-header {
    background: #f9f9f9;
    padding: 10px 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #aaa;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Liste elemanları */
.suggestion-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.suggestion-item:hover {
    background-color: #fff8e1; /* Üzerine gelince hafif turuncu */
    padding-left: 25px; /* Hafif sağa kayma efekti */
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-info h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #2d3436;
}

.suggestion-info span {
    font-size: 0.75rem;
    color: #e67e22;
}

/* Mobilde genişlik ayarı */
@media (max-width: 768px) {
    .search-container { width: 100%; }
}