/* ==========================================================================
   Yemektesin.com Ana Stil Dosyası (Revize Edilmiş Versiyon)
   Açıklama: Raporlanan header ve içerik sorunları giderilmiştir.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TEMEL AYARLAR: DEĞİŞKENLER, FONT'LAR VE RESETLEME
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #E85D04;
    --primary-hover: #F48C06;
    --secondary-color: #386641;
    --background-color: #FAF8F1;
    --text-color: #3C3633;
    --light-gray: #EAE0D5;
    --white: #ffffff;
    --danger-color: #dc3545;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

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

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

main {
    padding-top: 80px; /* Header yüksekliği için */
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

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

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

/* --------------------------------------------------------------------------
   2. HEADER VE NAVİGASYON
   -------------------------------------------------------------------------- */
#main-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 2rem;
    height: 80px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.4s ease-in-out, box-shadow 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container .logo-link {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-icon {
    height: 80px;
    width: auto;
    margin-right: 10px;
}

.main-nav-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.main-nav {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 0 15px;
}

.nav-item > a {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 5px;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.nav-item > a:hover {
    color: var(--primary-color);
}

.dropdown-menu, .mega-menu {
    display: none;
    position: absolute;
    left: 0;
    background-color: var(--white);
    list-style: none;
    padding: 10px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    /* DÜZELTME: Menünün istenmeyen alanda açılmasını önlemek için boşluk eklendi */
    top: calc(100% + 10px); 
}

.nav-item:hover .dropdown-menu, .nav-item:hover .mega-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--text-color);
    padding: 10px 20px;
    display: block;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.mega-menu {
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    padding: 1.5rem;
    gap: 1.5rem;
}

.mega-menu-column {
    flex: 1;
    min-width: 180px;
}

.mega-menu-heading {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.mega-menu-column ul {
    list-style: none;
}

.mega-menu-column li a {
    padding: 8px 0;
    color: var(--text-color);
    transition: color 0.3s ease;
    font-size: 0.95rem;
    display: block;
}

.mega-menu-column li a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. BUTONLAR VE FORMLAR
   -------------------------------------------------------------------------- */
.btn-cta, .btn-auth, .btn-secondary-auth, .btn-outline {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}
.btn-cta:hover {
    color: var(--white) !important; /* Yazının beyaz kalmasını garantiler */
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.form-group-auth {
    margin-bottom: 1.5rem;
}
.form-group-auth label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.form-group-auth input, .form-group-auth textarea, .form-group-auth select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
}
.btn-secondary-auth {
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 4px;
}
/* --------------------------------------------------------------------------
   4. ANA SAYFA BÖLÜMLERİ (HERO, SECTIONS)
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    padding: 7rem 1.5rem;
    overflow: hidden;
    background-color: #333;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}
#hero-video {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: 0;
}
.hero-content h1 {
    font-size: 3rem;
    animation: fadeInDown 1s ease-out forwards;
}
.hero-content p {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}
.search-bar-container {
    max-width: 600px;
    margin: 1.5rem auto 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}
.search-bar-container form {
    display: flex;
    width: 100%;
}
.search-bar-container input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 10px 20px;
    font-size: 1rem;
    background: transparent;
    color: var(--text-color);
}
.search-bar-container button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-bar-container button:hover {
    background-color: var(--primary-hover);
}

.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}
.bg-light {
    background-color: var(--white);
}

/* YENİDEN EKLENDİ: Pratik bilgiler kart yapısı için */
.tip-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.tip-card h4 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* DÜZELTME: Topluluk ve Bülten CTA alanları için merkezleme */
.community-cta {
    text-align: center;
    background-color: var(--light-gray);
    padding: 2.5rem;
    border-radius: 12px;
    margin-top: 3rem;
    max-width: 700px; /* Genişliği kısıtla */
    margin-left: auto;  /* Ortala */
    margin-right: auto; /* Ortala */
}

.community-cta h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--secondary-color);
}

.community-cta p {
    max-width: 500px;
    margin: 1rem auto 1.5rem;
}

.newsletter-section {
    background-color: #f7f3e9; /* Arkaplan rengini biraz daha belirgin yapalım */
    padding: 4rem 2rem;
    text-align: center;
}

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

.newsletter-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    margin-bottom: 1.5rem;
}

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

.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 12px 25px;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

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


/* --------------------------------------------------------------------------
   5. KART TASARIMLARI (TARİF, VİDEO VB.)
   -------------------------------------------------------------------------- */
.card-container-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card-container-grid.four-columns {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.recipe-card, .video-recipe-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.recipe-card:hover, .video-recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.recipe-card a, .video-recipe-card a {
    text-decoration: none;
}

.recipe-card img, .video-thumbnail-wrapper img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.recipe-card-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.recipe-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.recipe-card-content h3 a {
    color: var(--text-color);
    transition: color 0.2s ease;
}
.recipe-card-content h3 a:hover {
    color: var(--primary-color);
}
.recipe-author-card {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.recipe-author-card a {
    font-weight: bold;
    color: var(--text-color);
}
.recipe-author-card a:hover {
    color: var(--primary-color);
}
.recipe-card-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #777;
    font-size: 0.9rem;
}
.info-item {
    display: flex;
    align-items: center;
}
.info-item svg {
    margin-right: 6px;
    fill: #777;
}
.btn-recipe {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    margin-top: auto;
    font-weight: bold;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    align-self: stretch;
}
.btn-recipe:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.video-thumbnail-wrapper {
    position: relative;
}
.video-thumbnail-wrapper .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}
.video-recipe-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}
.play-icon svg {
    width: 30px;
    height: 30px;
}
/* Diğer tüm CSS kodları aynı kalacak... Lütfen bu bölümden sonrasını önceki verdiğim temiz koddan kopyalayıp devam edin veya ihtiyacınız olan diğer bölümleri belirtin. */

/* --------------------------------------------------------------------------
   6. TARİF DETAY SAYFASI
   -------------------------------------------------------------------------- */
.recipe-detail-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}
.recipe-header h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}
.recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    justify-content: center;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 30px;
    font-size: 0.9rem;
}
.recipe-author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.recipe-author a {
    color: var(--secondary-color);
    font-weight: bold;
}
.recipe-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.recipe-categories a {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    transition: background-color 0.2s, color 0.2s;
}
.recipe-categories a:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}
.recipe-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
}
.recipe-section {
    margin-bottom: 30px;
}
.recipe-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}
.recipe-section h2 svg {
    stroke: var(--primary-color);
    width: 28px; height: 28px;
}
.ingredient-list, .instruction-list {
    list-style-type: none;
    padding-left: 0;
}
.ingredient-list li, .instruction-list li {
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
}
.ingredient-list li {
    padding-left: 35px;
    margin-bottom: 10px;
}
.ingredient-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1.2rem;
}
.instruction-list {
    counter-reset: adim-sayaci;
}
.instruction-list li {
    padding-left: 50px;
    margin-bottom: 20px;
    min-height: 35px;
}
.instruction-list li::before {
    counter-increment: adim-sayaci;
    content: counter(adim-sayaci);
    position: absolute;
    left: 0; top: 0;
    width: 35px; height: 35px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 8px;
}
.video-container iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.save-button-container {
    text-align: center;
    margin: 10px 0 20px 0;
}
.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    background-color: var(--white);
    color: var(--text-color);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-save .heart-icon {
    width: 20px; height: 20px;
    fill: #ccc;
    transition: all 0.3s ease;
}
.btn-save:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-save:hover .heart-icon {
    fill: var(--primary-color);
}
.btn-save.saved {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}
.btn-save.saved .heart-icon {
    fill: var(--white);
    animation: heartbeat 0.8s ease-in-out;
}
@keyframes heartbeat {
    0%, 50%, 100% { transform: scale(1); }
    25%, 75% { transform: scale(1.3); }
}

/* --------------------------------------------------------------------------
   7. YORUM VE PUANLAMA SİSTEMİ
   -------------------------------------------------------------------------- */
.comments-section {
    border-top: 1px solid var(--light-gray);
    margin-top: 40px;
    padding-top: 30px;
}
.comment-form-container {
    padding: 30px;
    margin-bottom: 40px;
    background-color: #fcfcfc;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}
.comment-form-container h4 {
    margin-top: 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.rating-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.stars {
    display: inline-block;
    direction: rtl;
}
.stars input[type="radio"] {
    position: absolute;
    opacity: 0;
}
.stars label {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}
.stars label:hover,
.stars label:hover ~ label,
.stars input[type="radio"]:checked ~ label {
    color: #f5b301;
}
.stars label::before {
    content: '★';
}
.comment-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-gray);
}
.comment-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.comment-avatar img {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
}
.comment-header strong a {
    color: var(--text-color);
    font-size: 1.1rem;
}
.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}
.comment-date {
    font-size: 0.85rem;
    color: #888;
}
.delete-comment-btn {
    color: var(--danger-color);
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.delete-comment-btn:hover {
    opacity: 1;
    text-decoration: underline;
}
.comment-rating {
    margin-bottom: 10px;
}
.comment-rating .star {
    font-size: 1rem;
    color: #ddd;
}
.comment-rating .star.filled {
    color: #f5b301;
}
.comment-body p {
    margin: 0;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
    background-color: var(--text-color);
    color: var(--background-color);
    padding: 4rem 2rem 0;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}
.footer-column h3, .footer-column h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.footer-column.about p, .footer-column.social p {
    color: #ccc;
}
.footer-column.links ul {
    list-style: none;
}
.footer-column.links li {
    margin-bottom: 0.75rem;
}
.footer-column.links a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-column.links a:hover {
    color: var(--white);
}
.social-icons-footer {
    display: flex;
    gap: 15px;
    align-items: center;
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.social-icon:hover {
    transform: scale(1.15);
}
.social-icon svg {
    width: 16px; height: 16px;
    fill: var(--white);
}
.social-icon.instagram { background: #E1306C; }
.social-icon.tiktok { background: #000000; }
.social-icon.youtube { background: #FF0000; }
.social-icon.facebook { background: #1877F2; }
.footer-bottom {
    border-top: 1px solid #4a4a4a;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   9. MODAL (GİRİŞ/KAYIT) VE CANLI ARAMA
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none; border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
}
.modal-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
}
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
}
#live-search-results-hero {
    display: none;
    position: absolute;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 10001;
    max-height: 400px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-color);
    border-bottom: 1px solid var(--light-gray);
    transition: background-color 0.2s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #f7f7f7;
}
.search-result-item img {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}
.search-result-item span {
    font-size: 1rem;
    font-weight: 700;
}
.no-results {
    padding: 15px;
    color: #888;
    text-align: center;
}

/* --------------------------------------------------------------------------
   10. MOBİL VE RESPONSIVE AYARLAR
   -------------------------------------------------------------------------- */
.mobile-menu-toggle { display: none; }
.mobile-logo { display: none; }
.mobile-user-actions { display: none; }

@media (max-width: 1024px) {
    #main-header { padding: 0 1rem; }
    .header-container > .main-nav-container, .user-actions { display: none; }
    .desktop-logo { display: none; }
    .mobile-logo { display: block; }
    .mobile-logo .logo-icon { height: 180px; margin-right: 0; }
    
    .mobile-menu-toggle {
        display: block;
        width: 30px; height: 25px;
        position: relative;
        cursor: pointer;
        z-index: 1002;
        background: transparent;
        border: none;
    }
    .mobile-menu-toggle span {
        display: block;
        position: absolute;
        height: 3px; width: 100%;
        background: var(--text-color);
        border-radius: 3px;
        left: 0;
        transition: all 0.3s ease-in-out;
    }
    .mobile-menu-toggle span:nth-child(1) { top: 0px; }
    .mobile-menu-toggle span:nth-child(2) { top: 10px; }
    .mobile-menu-toggle span:nth-child(3) { top: 20px; }
    .mobile-menu-toggle.active span:nth-child(1) { top: 10px; transform: rotate(135deg); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; left: -30px; }
    .mobile-menu-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-135deg); }
    
    .main-nav-container#mainNav {
        display: block;
        position: fixed;
        top: 0; right: -100%;
        width: 100%; max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        overflow-y: auto;
    }
    .main-nav-container#mainNav.active { right: 0; }
    .main-nav-container#mainNav .main-nav { flex-direction: column; align-items: flex-start; }
    .main-nav-container#mainNav .nav-item { width: 100%; margin: 0; border-bottom: 1px solid var(--light-gray); }
    .main-nav-container#mainNav .nav-item > a { padding: 18px 20px; display: block; width: 100%; font-size: 1.1rem; }
    
    .main-nav-container#mainNav .dropdown-menu,
    .main-nav-container#mainNav .mega-menu {
        display: none; position: static; box-shadow: none;
        width: 100%; opacity: 1; transform: none;
        background-color: #f7f7f7; padding: 0; visibility: visible;
        border-radius: 0;
    }
    .main-nav-container#mainNav .mega-menu { flex-direction: column; gap: 0; }
    .main-nav-container#mainNav .mega-menu-heading {
        background-color: #efefef; padding: 10px 30px;
        font-size: 0.9rem; margin: 0; border: none;
    }
    .main-nav-container#mainNav .dropdown-menu li a,
    .main-nav-container#mainNav .mega-menu-column li a {
        padding: 12px 20px 12px 40px;
        font-size: 1rem; color: #555;
        border-bottom: 1px solid #e9e9e9;
    }
    .mobile-user-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        margin-top: 15px;
        padding: 20px 15px;
        border-top: 1px solid var(--light-gray);
    }
    .nav-item-mobile-user {
        display: block; padding: 12px; border-radius: 5px;
        text-align: center; font-weight: bold;
        transition: opacity 0.2s;
    }
    .nav-item-mobile-user[href="#login"], .nav-item-mobile-user[href^="/profil/"] {
        background-color: transparent;
        border: 1px solid var(--primary-color);
        color: var(--primary-color);
    }
    .nav-item-mobile-user[href="#register"], .nav-item-mobile-user[href="/admin/tarifler.php"], .nav-item-mobile-user[href="/tarif-gonder"] {
        background-color: var(--primary-color);
        color: var(--white);
        border: 1px solid var(--primary-color);
    }
    .nav-item-mobile-user[href="/logout"] {
        background-color: var(--danger-color);
        color: var(--white);
        border: 1px solid var(--danger-color);
    }
    .hero-content h1 { font-size: 2.5rem; }
}

/* --------------------------------------------------------------------------
   11. DİĞER SAYFALAR (PROFİL, İLETİŞİM, FİLTRELEME VB.)
   -------------------------------------------------------------------------- */
.page-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 2.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}
.page-title {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
}
.profile-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    align-items: flex-start;
}
.profile-sidebar {
    flex-basis: 300px;
    flex-shrink: 0;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.profile-avatar {
    width: 150px; height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-sidebar h1 { margin: 0; font-size: 1.8rem; font-family: var(--font-heading); }
.profile-username { color: #888; margin-top: 5px; margin-bottom: 20px; }
.profile-main-content { flex-grow: 1; }
.profile-tabs { display: flex; border-bottom: 1px solid var(--light-gray); margin-bottom: 30px; }
.tab-link {
    padding: 15px 25px; cursor: pointer; border: none;
    background-color: transparent; font-size: 1.1rem;
    font-weight: bold; color: var(--secondary-color);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}
.tab-link.active, .tab-link:hover { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.filter-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }
.filter-sidebar { background-color: var(--white); padding: 25px; border-radius: 8px; height: fit-content; }
.filter-group { margin-bottom: 25px; border-bottom: 1px solid var(--light-gray); padding-bottom: 25px; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 { font-family: var(--font-heading); margin-top: 0; margin-bottom: 15px; }
.filter-options, .filter-options-scroll { display: flex; flex-direction: column; gap: 10px; }
.filter-options-scroll { max-height: 200px; overflow-y: auto; padding-right: 10px; }
.filter-options label, .filter-options-scroll label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
#results-count { margin-bottom: 1rem; font-size: 1.1rem; }
@media (max-width: 992px) {
    .filter-layout { grid-template-columns: 1fr; }
    .profile-container { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   12. YARDIMCI SINIFLAR VE ANİMASYONLAR
   -------------------------------------------------------------------------- */
.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
}
.alert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.alert.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   DÜZELTME 1: HEADER ARAMA ÇUBUĞU ANİMASYONU
   Açıklama: Kaybolan arama çubuğu açılma/kapanma animasyonunu düzeltir.
   ========================================================================== */
#header-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#header-search-form {
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

#header-search-input {
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 8px 15px 8px 35px; /* İkon için soldan boşluk */
    font-size: 0.9rem;
    width: 100%;
    outline: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23aaa" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px center;
}

#header-search-icon {
    display: block; /* Her zaman görünür olsun */
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

/* Arama aktif olduğunda */
#header-search-container.active #header-search-form {
    width: 220px; /* Veya istediğiniz bir genişlik */
    opacity: 1;
    visibility: visible;
    margin-left: 10px;
}

#header-search-container.active #header-search-icon {
    /* İkonu gizlemek yerine etkisiz hale getirelim */
    opacity: 0;
    transform: scale(0);
    width: 0;
    margin-right: -10px; /* Kaymayı önlemek için */
}

/* Header içindeki canlı arama sonuçları için konumlandırma */
#header-live-search-results {
    display: none;
    position: absolute;
    top: 120%;
    right: 0;
    width: 300px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}


/* ==========================================================================
   DÜZELTME 2: MEGA MENÜ AÇILMA SORUNU İÇİN GÜNCEL KOD
   Açıklama: Menünün sadece link üzerindeyken açılmasını sağlar.
   ========================================================================== */
.nav-item .dropdown-menu, 
.nav-item .mega-menu {
    top: 100%; /* Konumu sıfırlayalım */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Tıklama/hover olaylarını devre dışı bırak */
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* Sadece linkin veya menünün kendisinin üzerindeyken görünür yap */
.nav-item:hover > .dropdown-menu,
.nav-item:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Tıklama/hover olaylarını yeniden etkinleştir */
    transform: translateY(0);
}

/* ==========================================================================
   DÜZELTME 7 (NİHAİ VE KARARLI VERSİYON): Masaüstü ve Mobil Menü
   Açıklama: Bu kod, masaüstü mega menüsünü çok sütunlu yapar ve
   mobil menünün bozulmasını engeller.
   ========================================================================== */

/* Önceki tüm mega-menu DÜZELTME bloklarını silip bunu ekleyin. */

/* --- 1. SADECE MASAÜSTÜ GÖRÜNÜMÜ İÇİN GEÇERLİ KURALLAR --- */
@media (min-width: 1025px) {
    
    /* Mega menünün genel boyutları */
    .mega-menu {
        width: 800px;
        padding: 1.5rem;
    }

    /* Başlıkların stili */
    .mega-menu-heading {
        font-family: var(--font-heading);
        color: var(--text-color);
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        border-bottom: 3px solid var(--primary-color);
    }

    /* UZUN LİSTELERİ 2 SÜTUNA BÖLEN KURAL */
    .mega-menu-column ul {
        list-style: none;
        padding: 0;
        margin: 0;
        column-count: 2; /* Listeyi 2 sütuna böl */
        column-gap: 20px;  /* Sütunlar arası boşluk */
    }

    /* Liste elemanlarının bölünmesini engelle */
    .mega-menu-column li {
        break-inside: avoid;
    }

    /* Liste linklerinin stili */
    .mega-menu-column li a {
        display: block;
        padding: 8px 10px;
        border-radius: 4px;
        font-size: 0.95rem;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .mega-menu-column li a:hover {
        background-color: var(--light-gray);
        color: var(--primary-color);
    }
}

/* --- 2. MOBİL MENÜNÜN BOZULMASINI ENGELLEYEN KURAL --- */
/* Bu kural, mobil menüdeki listelerin her zaman tek sütun kalmasını garantiler. */
@media (max-width: 1024px) {
    .main-nav-container#mainNav .mega-menu-column ul {
        column-count: 1; /* Masaüstü için olan sütun bölmeyi mobilde sıfırla */
    }
}

/* ==========================================================================
   DÜZELTME 8: ÇIKIŞ YAP BUTONU STİLİ
   Açıklama: Metin şeklindeki "Çıkış Yap" linkine, diğer butonlarla
   uyumlu, kırmızı ve belirgin bir buton stili kazandırır.
   ========================================================================== */
.btn-logout {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    background-color: var(--danger-color); /* Kırmızı renk */
    border: 2px solid var(--danger-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: #c82333; /* Kırmızının biraz daha koyu tonu */
    border-color: #c82333;
}

/* ==========================================================================
   DÜZELTME 9: İLETİŞİM SAYFASI STİLLERİ
   Açıklama: İletişim sayfasındaki form ve bilgi kartları için
   iki sütunlu, modern ve mobil uyumlu bir yerleşim düzeni ekler.
   ========================================================================== */

/* Sayfa başlığını ortalar ve boşluk verir */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0.5rem auto 0;
}

/* Ana konteyneri 2 sütunlu bir ızgaraya dönüştürür */
/* Form alanı (2 birim), bilgi alanı (1 birim) yer kaplar */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px; /* Sütunlar arası boşluk */
    align-items: flex-start; /* Sütunları yukarıdan hizala */
}

/* Sağdaki bilgi kartlarının genel sarmalayıcısı */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Kartlar arası dikey boşluk */
}

/* Her bir bilgi kartının stilini belirler */
.contact-info-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contact-info-card p {
    margin-bottom: 1rem;
    color: #555;
}
.contact-info-card p:last-child {
    margin-bottom: 0;
}


/* Kart içindeki ikon ve yazıyı yan yana hizalar */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 15px; /* İkon ve yazı arası boşluk */
    font-size: 0.95rem;
}

.contact-info-item svg {
    flex-shrink: 0; /* İkonun küçülmesini engelle */
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Formun genel stili */
.user-form .form-group {
    margin-bottom: 1.5rem;
}
.user-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.user-form input[type="text"],
.user-form input[type="email"],
.user-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}

/* Mobil cihazlar için sütunları alt alta getirir */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr; /* Tek sütuna düşür */
        gap: 30px;
    }
}

/* ==========================================================================
   DÜZELTME 10: MOBİLDE ARAMA İKONUNU SAĞA YASLAMA
   Açıklama: Mobil görünümde, logo solda kalırken arama ve menü
   ikonlarını birlikte sağ tarafa hizalar.
   ========================================================================== */

@media (max-width: 1024px) {
    /* Header container'daki elemanlar arasına boşluk koy */
    .header-container {
        gap: 1rem;
    }

    /* Mobil logoya "sağındaki tüm boşluğu al" komutunu ver. */
    /* Bu kural, arama ve menü ikonunu en sağa iter. */
    .mobile-logo {
        margin-right: auto;
    }

    /* Arama ve kullanıcı aksiyonları arasındaki boşluğu sıfırla */
    /* çünkü ana container'dan boşluk geliyor artık. */
    .header-actions {
        gap: 0;
    }
}



/* ==========================================================================
   KULLANICI FOTOĞRAFLARI GÖSTERİM BÖLÜMÜ STİLLERİ
   ========================================================================== */
.user-photos-section {
    border-top: 1px solid var(--light-gray);
    margin-top: 40px;
    padding-top: 30px;
}

.user-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.user-photo-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.user-photo-image-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.user-photo-image-link:hover img {
    transform: scale(1.05);
}

.user-photo-info {
    padding: 15px;
    text-align: center;
}

.user-name-link {
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
}

.user-name-link:hover {
    color: var(--primary-color);
}

.user-comment {
    font-style: italic;
    color: #555;
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ==========================================================================
   ANASAYFA KULLANICI FOTOĞRAFLARI SLIDER STİLLERİ
   ========================================================================== */
.community-section .splide__slide {
    padding: 5px; /* Kartların gölgesinin kesilmemesi için */
}

.community-photo-card {
    background-color: var(--white);
    border-radius: 12px; /* Yuvarlak yerine kart görünümü daha iyi durabilir */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease-in-out;
    height: 100%; /* Slaytların aynı yükseklikte olmasını sağlar */
    display: flex;
    flex-direction: column;
}

.community-photo-card .photo-info {
   margin-top: auto; /* Bilgi kısmını kartın altına iter */
}

/* Slider Oklarının Rengini Değiştirme */
.splide__arrow {
    background: var(--primary-color);
    opacity: 0.8;
}
.splide__arrow:hover {
    opacity: 1;
}
.splide__arrow svg {
    fill: var(--white);
}
/* ==========================================================================
   ANASAYFA KULLANICI FOTOĞRAFLARI KARTI BİLGİ STİLLERİ
   ========================================================================== */

.community-photo-card .photo-info {
    padding: 15px 10px; /* İç boşluğu güncelledik */
    text-align: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

/* Tarif adı için stil */
.photo-recipe-name {
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    height: 2.6em; /* Yaklaşık 2 satır yükseklik */
    overflow: hidden; /* Yüksekliği aşan kısmı gizle */
}

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

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

/* "tarafından @kullaniciadi" kısmı için stil */
.photo-credit {
    margin: 5px 0 0 0;
    font-size: 0.8rem;
    color: #777;
}

.photo-credit a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.photo-credit a:hover {
    text-decoration: underline;
}

/* =============================================
   Yatay Filtreleme Sayfası Stilleri (GÜNCELLENMİŞ TASARIM)
   ============================================= */
.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    padding: 20px;
    background-color: #f7941d; /* Örnekteki gibi turuncu arkaplan */
    border-radius: 8px;
}

.filter-group select {
    width: 100%;
    padding: 12px;
    border: none; /* Kenarlığı kaldır */
    border-radius: 6px;
    font-size: 1rem;
    background-color: var(--white); /* Beyaz arkaplan */
    cursor: pointer;
}

.popular-searches {
    padding: 15px 0;
    font-size: 0.9rem;
}

.popular-searches a {
    display: inline-block;
    background-color: var(--light-gray);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 20px;
    margin: 0 5px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.popular-searches a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.search-bar-horizontal {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-bar-horizontal input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

#reset-filters {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 700;
    flex-shrink: 0;
}