/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Quicksand:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #444;
    background-color: #fce4ec;
}

/* GİRİŞ SAYFASI STİLLERİ */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}
.login-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.login-box h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8bbd0;
    padding-bottom: 0.5rem;
}
.login-box .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}
.login-box input[type="text"], .login-box input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.login-box input[type="text"]:focus, .login-box input[type="password"]:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}
.login-box button[type="submit"] {
    width: 100%;
    background-color: #e91e63;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.login-box button[type="submit"]:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
.guest-login {
    margin-top: 1.5rem;
}
.guest-login a {
    color: #e91e63;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.guest-login a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* ANA SAYFA STİLLERİ */
.home-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.bg_heart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.heart {
    position: absolute;
    top: 110%;
    transform: rotate(-45deg);
    background-color: #ff8da1;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    animation: love 15s linear infinite;
}
.heart:nth-child(1) { left: 10%; animation-delay: 0s; width: 15px; height: 15px; }
.heart:nth-child(2) { left: 20%; animation-delay: 2s; width: 18px; height: 18px; }
.heart:nth-child(3) { left: 30%; animation-delay: 4s; width: 12px; height: 12px; }
.heart:nth-child(4) { left: 40%; animation-delay: 6s; width: 22px; height: 22px; }
.heart:nth-child(5) { left: 50%; animation-delay: 8s; width: 16px; height: 16px; }
.heart:nth-child(6) { left: 60%; animation-delay: 10s; width: 20px; height: 20px; }
.heart:nth-child(7) { left: 70%; animation-delay: 12s; width: 14px; height: 14px; }
.heart:nth-child(8) { left: 80%; animation-delay: 14s; width: 24px; height: 24px; }
.heart:nth-child(9) { left: 90%; animation-delay: 16s; width: 17px; height: 17px; }
.heart:before, .heart:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 100%;
}
.heart:before { top: -50%; left: 0; }
.heart:after { top: 0; right: -50%; }

@keyframes love {
    0% { top: 110%; opacity: 0.8; }
    100% { top: -10%; opacity: 0; }
}
.home-header {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-bottom: 3rem;
    animation: header-fade-in 1.5s ease-out;
    max-width: 600px;
}
.home-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    animation: bounceIn 1.5s ease-out;
}
.home-header p {
    font-size: 2rem;
    color: #fff;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: both;
}
.logout-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e91e63;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 20;
}
.logout-btn:hover {
    background-color: #c2185b;
    border-color: #c2185b;
    color: #fff;
}
.home-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 900px;
    animation: nav-fade-in 1.5s ease-out 1.2s;
    animation-fill-mode: both;
}
.home-nav-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    color: #444;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.home-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.home-nav-item:hover::before {
    opacity: 1;
}
.home-nav-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #e91e63;
}
.home-nav-item .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e91e63;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s, background-color 0.3s;
}
.home-nav-item:hover .icon-container {
    transform: rotate(15deg) scale(1.1);
    background-color: #ff80ab;
}
.home-nav-item svg {
    width: 40px;
    height: 40px;
    color: #fff;
    transition: transform 0.3s;
}

/* GENEL DİĞER SAYFA STİLLERİ */
header {
    background: linear-gradient(135deg, #ffc0cb 0%, #e0b0ff 100%);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
}
header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
header p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.8;
}
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.logout-link {
    background-color: #e91e63;
}
.logout-link:hover {
    background-color: #c2185b;
}

/* YEMEK MENÜSÜ VE FOTOĞRAF GALERİSİ İÇİN STİLLER */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.page { display: none; }
.page.active { display: block; }
section {
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
h2 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8bbd0;
    text-align: center;
    font-size: 2.5rem;
}
.add-recipe-btn {
    display: block;
    width: 250px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.add-recipe-btn:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
#recipe-form-container {
    background: #f8bbd0;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}
#recipe-form-container.hidden {
    display: none;
}
#recipe-form h3 {
    font-family: 'Dancing Script', cursive;
    color: #fff;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
#recipe-form .form-group {
    margin-bottom: 1rem;
}
#recipe-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}
#recipe-form input[type="text"],
#recipe-form input[type="file"],
#recipe-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ffc0cb;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: border-color 0.3s;
}
#recipe-form input:focus,
#recipe-form textarea:focus {
    border-color: #e91e63;
    outline: none;
    background-color: #fff;
}
#recipe-form button[type="submit"] {
    display: block;
    width: 200px;
    margin: 1.5rem auto 0;
    padding: 0.8rem;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
#recipe-form button[type="submit"]:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
.recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.recipe-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 350px;
    text-align: center;
    transition: transform 0.3s;
}
.recipe-card:hover {
    transform: translateY(-5px);
}
.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.recipe-card-content {
    padding: 1.5rem;
}
.recipe-card-content h3 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.recipe-card-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}
.recipe-card-content .delete-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.recipe-card-content .delete-btn:hover {
    background-color: #e55050;
}

/* FOTOĞRAF GALERİSİ STİLLERİ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.photo-card {
    background: #fff;
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.photo-card:hover {
    transform: translateY(-5px) rotate(2deg);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.photo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
}
.photo-info {
    padding-top: 1rem;
    text-align: left;
}
.photo-date, .photo-description {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    padding: 0 0.5rem;
}
.photo-date {
    font-weight: 700;
}
.photo-description {
    font-style: italic;
    margin-top: 0.25rem;
}

/* AKSİYON BUTONLARI İÇİN YENİ STİLLER */
.photo-actions {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.photo-card:hover .photo-actions {
    opacity: 1;
}
.action-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.action-btn:hover {
    background-color: #c2185b;
    transform: scale(1.1);
}
.action-btn svg {
    width: 20px;
    height: 20px;
}

/* Lightbox - Tam Ekran Görüntüleyici */
/* LİGHTBOX STİLLERİ */
/* LİGHTBOX STİLLERİ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none; /* Başlangıçta kapalı */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
	pointer-events: none; /* Sadece içeriği tıklanabilir olsun */
}

.lightbox.active {
    display: flex; /* Sadece aktifken görünür */
	pointer-events: none; /* Sadece içeriği tıklanabilir olsun */
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);
    transition: transform 0.3s ease;
}

.lightbox-img:hover {
    transform: scale(1.02);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1100;
}

.lightbox-close:hover {
    color: #e91e63;
}

.lightbox > * {
    pointer-events: auto; /* İç elementler (resim, X butonu) tıklanabilir */
}

.empty-gallery {
    text-align: center;
    padding: 5rem 0;
    color: #999;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* YEMEK MENÜSÜ KARTLARI İÇİN POLAROID STİLİ - GÜNCELLEME */
.recipe-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}
.recipe-card {
    background: #fff;
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.recipe-card h3 {
    font-family: 'Dancing Script', cursive;
    font-size: 2.2rem;
    color: #e91e63;
    margin-bottom: 0.5rem;
}
.recipe-card .recipe-details {
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    color: #555;
    padding: 0 0.5rem;
    white-space: pre-wrap; /* Boşlukları ve yeni satırları korur */
    text-align: left;
    margin-bottom: 1.5rem;
}

/* Aksiyon butonu düzenlemesi */
.recipe-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f8bbd0;
}
.delete-recipe-btn {
    background-color: #ff6b6b;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.delete-recipe-btn:hover {
    background-color: #e55050;
    transform: scale(1.1);
}
.delete-recipe-btn svg {
    width: 20px;
    height: 20px;
}

/* Mobil cihazlar için responsive tasarım */
@media (max-width: 768px) {
    .recipe-card {
        width: 100%;
    }
}

footer {
    text-align: center;
    padding: 1rem;
    color: #e91e63;
    background-color: #fce4ec;
    border-top: 1px solid #f8bbd0;
}

/* Duyarlı (Responsive) Tasarım */
@media (max-width: 768px) {
    .home-header h1 { font-size: 4rem; }
    .home-header p { font-size: 1.5rem; }
    .home-nav { flex-direction: column; gap: 2rem; }
    .home-nav-item { width: 100%; }
    .logout-btn { padding: 8px 16px; font-size: 0.9rem; }
    .main-nav { flex-direction: column; }
    .add-recipe-btn { width: 100%; }
}

/* fotoğraf_ekle.html sayfası için stil düzeltmeleri */
#add-photo-page form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background-color:  #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}
#add-photo-page .form-group {
    margin-bottom: 1.5rem;
}
#add-photo-page label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}
#add-photo-page input[type="file"],
#add-photo-page input[type="date"],
#add-photo-page textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
#add-photo-page input[type="file"]:focus,
#add-photo-page input[type="date"]:focus,
#add-photo-page textarea:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}
#add-photo-page textarea {
    resize: vertical;
}
#add-photo-page button[type="submit"] {
    display: block;
    width: 100%;
    background-color: #e91e63;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
#add-photo-page button[type="submit"]:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

body.dark-mode #add-photo-page form {
    background-color: #181818;
    border-color: #444;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}


/* ---- GÜNCELLEME: LOGIN SAYFASI VE ARKA PLAN İÇİN YENİ STİLLER ---- */

/* Renk değişkenlerini projenize uyumlu hale getirelim */
:root {
  --color-g1: #ffc0cb; /* Pembe */
  --color-g2: #fce4ec; /* Açık Pembe */
  --color-g3: #e91e63; /* Koyu Pembe */
  --color-g4: #f8bbd0; /* Orta Pembe */
  --color-g5: #ff8c94; /* Canlı Pembe */
}

/* LOGIN SAYFASININ ANA KAPSAYICISI VE EFEKTLERİ */
.login-body {
    /* Login kutusunu tam ekran ortalamak için Flexbox kullanıyoruz */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden; /* Sayfa dışına taşmaları engeller */
    position: relative; /* İçerikler için pozisyon referansı olur */
    background: #fff; /* Arka planı beyaz yapalım ki animasyon renkleri daha belirgin olsun */
}

/* Arka plan animasyonunun kendisi */
.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* İçeriğin arkasında kalmasını sağlar */
    filter: url(#goo) blur(40px); /* Filtre, baloncukların birleşmesini sağlar */
}

/* Baloncukların kapsayıcısı */
.gradients-container {
    width: 100%;
    height: 100%;
}

.g1, .g2, .g3, .g4, .g5 {
    position: absolute;
    border-radius: 50%;
    animation: move-up-down 10s ease-in-out infinite alternate;
}

.g1 { background: var(--color-g1); width: 20rem; height: 20rem; top: -5rem; left: -5rem; animation: move-g1 15s ease-in-out infinite alternate; }
.g2 { background: var(--color-g2); width: 20rem; height: 20rem; bottom: -5rem; right: -5rem; animation: move-g2 18s ease-in-out infinite alternate; }
.g3 { background: var(--color-g3); width: 15rem; height: 15rem; top: 50%; left: 20%; animation: move-g3 12s ease-in-out infinite alternate; }
.g4 { background: var(--color-g4); width: 25rem; height: 25rem; bottom: 30%; right: 15%; animation: move-g4 14s ease-in-out infinite alternate; }
.g5 { background: var(--color-g5); width: 18rem; height: 18rem; top: 10%; right: 20%; animation: move-g5 16s ease-in-out infinite alternate; }

.interactive {
    position: absolute;
    background: var(--color-g1);
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 10s ease-in-out infinite;
}

/* Animasyon keyframe'leri */
@keyframes move-g1 { 0% { transform: translate(0, 0); } 100% { transform: translate(50vw, 50vh); } }
@keyframes move-g2 { 0% { transform: translate(0, 0); } 100% { transform: translate(-50vw, -50vh); } }
@keyframes move-g3 { 0% { transform: translate(0, 0); } 100% { transform: translate(50vw, -30vh); } }
@keyframes move-g4 { 0% { transform: translate(0, 0); } 100% { transform: translate(-40vw, 40vh); } }
@keyframes move-g5 { 0% { transform: translate(0, 0); } 100% { transform: translate(-30vw, -20vh); } }

/* LOGIN KUTUSUNUN KENDİ STİLLERİ */
.login-container {
    background-color: rgba(255, 255, 255, 0.85); /* Arka planı hafif şeffaf yapalım */
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative; /* Bu çok önemli: Arka plandan önde durmasını sağlar */
    z-index: 10; /* Arka planın (z-index: -1) üzerinde kalmasını garantiler */
    max-width: 400px;
}

/* FORM GRUBU VE BUTON STİLLERİ */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-container button {
    display: block;
    width: 100%;
    background-color: #e91e63;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.login-container button:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
.guest-login-link {
    display: block;
    margin-top: 1rem;
    color: #e91e63;
    text-decoration: none;
    font-size: 0.9rem;
}


/* --- Ana sayfa butonları için estetik ve animasyonlu tasarım --- */
.home-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.home-nav-item {
    background: linear-gradient(145deg, #fff0f6, #ffe6f0);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e91e63;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.home-nav-item:nth-child(1) { animation-delay: 0.2s; }
.home-nav-item:nth-child(2) { animation-delay: 0.4s; }
.home-nav-item:nth-child(3) { animation-delay: 0.6s; }

.home-nav-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.home-nav-item:hover::before {
    opacity: 1;
}

.home-nav-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e91e63;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(233,30,99,0.4);
    transition: transform 0.3s ease, background 0.3s ease;
}

.home-nav-item:hover .icon-container {
    background: #ff80ab;
    transform: rotate(10deg) scale(1.1);
}

.home-nav-item svg {
    width: 40px;
    height: 40px;
    color: #fff;
    z-index: 1;
}

.home-nav-item span {
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 1;
    text-align: center;
}

/* Giriş animasyonu */
@keyframes fadeInUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Quicksand:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    line-height: 1.6;
    color: #444;
    background-color: #fce4ec;
    transition: background-color 0.3s, color 0.3s;
}

/* Karanlık Mod */
body.dark-mode {
    background-color: #0d0d0d;
    color: #e0e0e0;
}
body.dark-mode header {
    background: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-bottom: 2px solid #ff69b4;
}
body.dark-mode header h1, body.dark-mode header p {
    color: #e0e0e0;
    text-shadow: 1px 1px 4px rgba(255,255,255,0.1);
}
body.dark-mode .main-nav {
    border-bottom: 2px solid #333;
}
body.dark-mode .nav-link {
    color: #aaa;
}
body.dark-mode .nav-link:hover, body.dark-mode .nav-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ff69b4;
}
body.dark-mode .logout-link {
    background-color: #ff4d4d;
}
body.dark-mode .logout-link:hover {
    background-color: #e54242;
}
body.dark-mode .add-recipe-btn, body.dark-mode #add-photo-btn {
    background-color: #ff69b4;
}
body.dark-mode .add-recipe-btn:hover, body.dark-mode #add-photo-btn:hover {
    background-color: #e55a9b;
}
body.dark-mode section {
    background: #161616;
    border: 1px solid #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode h2 {
    color: #ff69b4;
    border-bottom-color: #222;
}
body.dark-mode #recipe-form-container {
    background: #2a2a2a;
    border: 1px solid #333;
}
body.dark-mode #recipe-form h3 {
    color: #ff69b4;
}
body.dark-mode #recipe-form label {
    color: #e0e0e0;
}
body.dark-mode #recipe-form input[type="text"], 
body.dark-mode #recipe-form input[type="file"], 
body.dark-mode #recipe-form textarea,
body.dark-mode #photo-form input[type="file"],
body.dark-mode #photo-form input[type="date"],
body.dark-mode #photo-form textarea {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-color: #333;
}
body.dark-mode #recipe-form input:focus, 
body.dark-mode #recipe-form textarea:focus,
body.dark-mode #photo-form input:focus,
body.dark-mode #photo-form textarea:focus {
    border-color: #ff69b4;
    background-color: #222;
}
body.dark-mode #recipe-form button[type="submit"], body.dark-mode #photo-form button[type="submit"] {
    background-color: #ff69b4;
}
body.dark-mode #recipe-form button[type="submit"]:hover, body.dark-mode #photo-form button[type="submit"]:hover {
    background-color: #e55a9b;
}
body.dark-mode .recipe-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
body.dark-mode .recipe-card-content h3 {
    color: #ff69b4;
}
body.dark-mode .recipe-card-content p {
    color: #ccc;
}
body.dark-mode .recipe-card-content .delete-btn {
    background-color: #ff4d4d;
}
body.dark-mode .recipe-card-content .delete-btn:hover {
    background-color: #e54242;
}
body.dark-mode .gallery-container {
    background-color: #161616;
    border: 1px solid #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .photo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
body.dark-mode .photo-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}
body.dark-mode .photo-info {
    color: #e0e0e0;
}
body.dark-mode .photo-date {
    color: #ff69b4;
}
body.dark-mode .photo-description {
    color: #aaa;
}
body.dark-mode .photo-actions .action-btn {
    color: #ff69b4;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
body.dark-mode .photo-actions .action-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
body.dark-mode .photo-actions .favorite-btn.favorited svg {
    fill: #ff69b4;
    stroke: #ff69b4;
}
body.dark-mode footer {
    color: #666;
}
body.dark-mode .home-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .home-header h1, body.dark-mode .home-header p {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}
body.dark-mode .logout-btn {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
}
body.dark-mode .logout-btn:hover {
    background-color: #e54242;
    border-color: #e54242;
}
body.dark-mode .home-nav-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .home-nav-item:hover {
    color: #ff69b4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    background: rgba(255, 255, 255, 0.1);
}
body.dark-mode .home-nav-item .icon-container {
    background-color: #ff69b4;
}
body.dark-mode .home-nav-item:hover .icon-container {
    background-color: #e55a9b;
}
body.dark-mode .home-nav-item svg {
    color: #fff;
}
body.dark-mode .lightbox {
    background-color: rgba(0, 0, 0, 0.9);
}
body.dark-mode .lightbox-close {
    color: #fff;
}

/* GİRİŞ SAYFASI STİLLERİ */
body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}
.dark-mode-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 20;
    color: #e91e63;
    transition: color 0.3s, transform 0.2s;
}
body.dark-mode .dark-mode-toggle {
    color: #ff69b4;
}
.dark-mode-toggle:hover {
    transform: scale(1.1);
}
.dark-mode-toggle svg {
    width: 28px;
    height: 28px;
}
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    position: relative;
    z-index: 10;
}
.login-box {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
body.dark-mode .login-box {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-mode .login-box h2 {
    color: #ff69b4;
    border-bottom-color: #333;
}
body.dark-mode .login-box label {
    color: #ccc;
}
body.dark-mode .login-box input[type="text"], 
body.dark-mode .login-box input[type="password"] {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #444;
}
body.dark-mode .login-box input[type="text"]:focus, 
body.dark-mode .login-box input[type="password"]:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.2);
}
body.dark-mode .login-box button[type="submit"] {
    background-color: #ff69b4;
}
body.dark-mode .login-box button[type="submit"]:hover {
    background-color: #e55a9b;
}
body.dark-mode .guest-login a {
    color: #ff69b4;
}
body.dark-mode .guest-login a:hover {
    color: #e55a9b;
}
.login-box h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #e91e63;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f8bbd0;
    padding-bottom: 0.5rem;
}
.login-box .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.login-box label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}
.login-box input[type="text"], .login-box input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
.login-box input[type="text"]:focus, .login-box input[type="password"]:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.2);
}
.login-box button[type="submit"] {
    width: 100%;
    background-color: #e91e63;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.login-box button[type="submit"]:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
.guest-login {
    margin-top: 1.5rem;
}
.guest-login a {
    color: #e91e63;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}
.guest-login a:hover {
    color: #c2185b;
    text-decoration: underline;
}

/* ANA SAYFA STİLLERİ */
body.home-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}
.bg_heart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}
.heart {
    position: absolute;
    top: 110%;
    transform: rotate(-45deg);
    background-color: #ff8da1;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    animation: love 15s linear infinite;
}
.heart:nth-child(1) { left: 10%; animation-delay: 0s; width: 15px; height: 15px; }
.heart:nth-child(2) { left: 20%; animation-delay: 2s; width: 18px; height: 18px; }
.heart:nth-child(3) { left: 30%; animation-delay: 4s; width: 12px; height: 12px; }
.heart:nth-child(4) { left: 40%; animation-delay: 6s; width: 22px; height: 22px; }
.heart:nth-child(5) { left: 50%; animation-delay: 8s; width: 16px; height: 16px; }
.heart:nth-child(6) { left: 60%; animation-delay: 10s; width: 20px; height: 20px; }
.heart:nth-child(7) { left: 70%; animation-delay: 12s; width: 14px; height: 14px; }
.heart:nth-child(8) { left: 80%; animation-delay: 14s; width: 24px; height: 24px; }
.heart:nth-child(9) { left: 90%; animation-delay: 16s; width: 17px; height: 17px; }
.heart:before, .heart:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 100%;
}
.heart:before { top: -50%; left: 0; }
.heart:after { top: 0; right: -50%; }

@keyframes love {
    0% { top: 110%; opacity: 0.8; }
    100% { top: -10%; opacity: 0; }
}
.home-header {
    position: relative;
    width: 100%;
    z-index: 1;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-bottom: 3rem;
    animation: header-fade-in 1.5s ease-out;
    max-width: 600px;
    transition: background-color 0.3s, color 0.3s;
}
.home-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 6rem;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 0.5rem;
    animation: bounceIn 1.5s ease-out;
    transition: color 0.3s;
}
.home-header p {
    font-size: 2rem;
    color: #fff;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 1s;
    animation-fill-mode: both;
    transition: color 0.3s;
}
.logout-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #e91e63;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s, border-color 0.3s;
    z-index: 20;
}
.logout-btn:hover {
    background-color: #c2185b;
    border-color: #c2185b;
    color: #fff;
}
.home-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    max-width: 900px;
    animation: nav-fade-in 1.5s ease-out 1.2s;
    animation-fill-mode: both;
}
.home-nav-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 250px;
    color: #444;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.home-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.home-nav-item:hover::before {
    opacity: 1;
}
.home-nav-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    color: #e91e63;
}
.home-nav-item .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #e91e63;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s, background-color 0.3s;
}
.home-nav-item:hover .icon-container {
    transform: rotate(15deg) scale(1.1);
    background-color: #ff80ab;
}
.home-nav-item svg {
    width: 40px;
    height: 40px;
    color: #fff;
    transition: transform 0.3s;
}

/* GENEL DİĞER SAYFA STİLLERİ */
header {
    background: linear-gradient(135deg, #ffc0cb 0%, #e0b0ff 100%);
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: relative;
    transition: background-color 0.3s;
}
header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}
header p {
    font-size: 1.2rem;
    color: #fff;
    opacity: 0.8;
}
.main-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}
.nav-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.logout-link {
    background-color: #e91e63;
}
.logout-link:hover {
    background-color: #c2185b;
}

/* YEMEK MENÜSÜ VE FOTOĞRAF GALERİSİ İÇİN STİLLER */
main {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.page { display: none; }
.page.active { display: block; }
section {
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: background-color 0.3s, color 0.3s;
}
h2 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8bbd0;
    text-align: center;
    font-size: 2.5rem;
}
.add-recipe-btn {
    display: block;
    width: 250px;
    margin: 0 auto 2rem;
    padding: 1rem;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.add-recipe-btn:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
#recipe-form-container {
    background: #f8bbd0;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    transition: background-color 0.3s;
}
#recipe-form-container.hidden {
    display: none;
}
#recipe-form h3 {
    font-family: 'Dancing Script', cursive;
    color: #fff;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
#recipe-form .form-group {
    margin-bottom: 1rem;
}
#recipe-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 500;
}
#recipe-form input[type="text"], #recipe-form input[type="file"], #recipe-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ffc0cb;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}
#recipe-form input:focus, #recipe-form textarea:focus {
    border-color: #e91e63;
    outline: none;
    background-color: #fff;
}
#recipe-form button[type="submit"] {
    display: block;
    width: 200px;
    margin: 1.5rem auto 0;
    padding: 0.8rem;
    background-color: #e91e63;
    color: white;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
#recipe-form button[type="submit"]:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}
.recipe-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.recipe-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 350px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.recipe-card:hover {
    transform: translateY(-5px);
}
.recipe-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.recipe-card-content {
    padding: 1.5rem;
}
.recipe-card-content h3 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.recipe-card-content p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}
.recipe-card-content .delete-btn {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.recipe-card-content .delete-btn:hover {
    background-color: #c2185b;
}

/* FOTOĞRAF GALERİSİ STİLLERİ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    background-color:#fff5f9;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
body.dark-mode .gallery-container {
    background-color: #161616;
    border: 1px solid #222;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.photo-card {
    background: #fff;
    padding: 10px 10px 40px 10px; /* Polaroid çerçeve görünümü için alt boşluğu artır */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    position: relative;
    text-align: center;
    transform: rotate(0deg); /* Başlangıçta düz durması için eğimi kaldırdık */
}

.photo-card:hover {
    transform: translateY(-8px) rotate(2deg); /* Üzerine gelince yukarı kalksın ve eğim ver */
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .photo-card {
    background-color: #222;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .photo-card:hover {
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-8px) rotate(2deg);
}

.photo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.photo-info {
    padding-top: 1rem;
    text-align: center; /* Ortala */
    font-family: 'Dancing Script', cursive; /* El yazısı fontunu kullan */
    font-size: 1.5rem; /* Daha büyük yap */
}

.photo-date {
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 0.5rem;
}
body.dark-mode .photo-date {
    color: #ff69b4;
}

.photo-description {
    font-style: italic;
    font-size: 1.2rem;
    color: #777;
}
body.dark-mode .photo-description {
    color: #aaa;
}
.photo-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}
.action-btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    opacity: 0.8;
}
.action-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}
.action-btn svg {
    width: 20px;
    height: 20px;
    color: #e91e63;
}
.action-btn.favorite-btn.favorited svg {
    fill: #e91e63;
    stroke: none;
}
body.dark-mode .action-btn {
    background-color: rgba(30, 30, 30, 0.7);
}
body.dark-mode .action-btn svg {
    color: #ff69b4;
}
body.dark-mode .action-btn.favorite-btn.favorited svg {
    fill: #ff69b4;
    stroke: none;
}
.empty-gallery {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.5rem;
    color: #999;
}

/* LİGHTBOX STİLLERİ */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}
.lightbox.active {
    visibility: visible;
    opacity: 1;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    display: block;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
}

/* DİĞER GENEL STİLLER */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #999;
    font-size: 0.9rem;
}
.guest-access .add-recipe-btn, .guest-access #add-photo-btn {
    display: none !important;
}
/* Dark Mode için Giriş Sayfası Düzeltmeleri */
body.dark-mode .login-container h1,
body.dark-mode .login-container .form-group label {
    color: #ffffff; /* Yazı rengini beyaza çevirir */
}

/* Koyu modda giriş kutusunun rengini daha belirgin hale getirebiliriz */
body.dark-mode .login-container {
    background: rgba(0, 0, 0, 0.4); /* Daha koyu bir yarı saydam arka plan */
}
/* Dark Mode için Footer Düzeltmeleri */
body.dark-mode footer {
    background-color: #222222; /* Koyu bir arka plan rengi */
    border-top: 1px solid #444444; /* Daha koyu ve uyumlu bir çizgi */
    color: #f0f0f0; /* Yazı rengini açık gri yapar */
}

/* --- MOBİL UYUMLULUK İÇİN DÜZENLEMELER --- */
@media (max-width: 768px) {
    /* Ana sayfa başlık */
    .home-header h1 {
        font-size: 4rem;
        line-height: 1.2;
    }
    .home-header p {
        font-size: 1.5rem;
    }

    /* Çıkış butonu */
    .logout-btn {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    /* Ana sayfa navigasyon */
    .home-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .home-nav-item {
        width: 100%;
        padding: 1.5rem;
        font-size: 1.3rem;
    }
    .home-nav-item .icon-container {
        width: 70px;
        height: 70px;
    }
    .home-nav-item svg {
        width: 32px;
        height: 32px;
    }

    /* Form girişleri (login, fotoğraf ekle, tarif ekle) */
    .login-box input[type="text"],
    .login-box input[type="password"],
    #photo-upload,
    #photo-date,
    #photo-description,
    #meal-name,
    #recipe-text,
    #recipe-image-upload {
        font-size: 1rem;
        padding: 0.8rem;
    }

    /* Ekle butonları */
    .add-recipe-btn,
    #add-photo-btn {
        width: 100%;
        font-size: 1rem;
        padding: 1rem;
    }

    /* Tarif formu */
    #recipe-form-container {
        padding: 1rem;
    }
    #recipe-form h3 {
        font-size: 1.8rem;
    }

    /* Galeri ve tarif kartları */
    .gallery-container,
    .recipe-container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1rem;
    }
    .photo-card,
    .recipe-card {
        width: 100%;
        margin: 0 auto;
    }
    .photo-image {
        height: 200px;
    }
    .recipe-card img {
        height: 180px;
    }

    /* Fotoğraf bilgileri */
    .photo-info {
        font-size: 1.1rem;
    }
    .photo-date {
        font-size: 1.1rem;
    }
    .photo-description {
        font-size: 1rem;
    }

    /* Lightbox */
    .lightbox-img {
        max-height: 85vh;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }

    /* Aksiyon butonları (favori, indir, sil) */
    .photo-actions .action-btn {
        width: 40px;
        height: 40px;
    }
    .photo-actions .action-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Footer */
    footer {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    /* Header */
    header h1 {
        font-size: 2.3rem;
    }
    header p {
        font-size: 1rem;
    }
    .main-nav {
        flex-direction: column;
        gap: 10px;
    }
    .nav-link {
        font-size: 1rem;
        padding: 8px 12px;
    }
}

/* Çok küçük ekranlar (320px - 480px) */
@media (max-width: 480px) {
    .home-header h1 { font-size: 3.5rem; }
    .home-header p { font-size: 1.3rem; }
    .home-nav-item span { font-size: 1.2rem; }
    .recipe-card-content h3 { font-size: 1.8rem; }
    .empty-gallery { font-size: 1.2rem; }
    .logout-btn { font-size: 0.8rem; padding: 6px 12px; }
}

/* --- MOBİL UYUMLULUK: index.html'de Kaydırma Etkinleştirme --- */
@media (max-width: 768px) {
    body.home-body {
        overflow-y: auto; /* Dikey kaydırma etkin */
        min-height: auto; /* Veya min-height: 100vh kalabilir, ama flex ortalamayı koru */
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1rem;
        align-items: center;
    }

    /* Kalp animasyonu arka planı kaydırma sorununu etkilemesin */
    .bg_heart {
        position: absolute;
        height: 100%;
    }

    /* Ana başlık ve butonlar */
    .home-header {
        margin-bottom: 2rem;
        padding: 1.5rem 1rem;
    }
    .home-header h1 {
        font-size: 4rem;
        line-height: 1.2;
    }
    .home-header p {
        font-size: 1.5rem;
    }

    /* Çıkış butonu */
    .logout-btn {
        top: 10px;
        left: 10px;
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    /* Ana butonlar (galeri, yemek, favoriler) */
    .home-nav {
        flex-direction: column;
        gap: 1.5rem;
        width: 90%;
        max-width: 400px;
    }
    .home-nav-item {
        width: 100%;
        padding: 1.5rem;
        font-size: 1.3rem;
    }
    .home-nav-item .icon-container {
        width: 70px;
        height: 70px;
    }
    .home-nav-item svg {
        width: 32px;
        height: 32px;
    }
}

/* NOTLAR SAYFASI STİLLERİ */
#note-form-container {
    background: #ffebee; /* Açık pembe arka plan */
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f8bbd0;
}

#note-form-container h2 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 2px solid #ffc0cb;
    padding-bottom: 0.5rem;
    font-weight: bold;
}

#note-form .form-group {
    margin-bottom: 1.5rem;
}

#note-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: #d81b60;
    font-size: 1.1rem;
}

#note-form input[type="text"],
#note-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #f8bbd0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: white;
    color: #444;
}

#note-form input[type="text"]:focus,
#note-form textarea:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.1);
    background-color: #fff;
}

#note-form button[type="submit"] {
    width: 100%;
    background-color: #e91e63;
    color: white;
    padding: 1.1rem;
    border: none;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 0.5rem;
}

#note-form button[type="submit"]:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

/* KARANLIK MOD - NOTLAR SAYFASI */
body.dark-mode #note-form-container {
    background: #181818;
    border-color: #444;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.dark-mode #note-form-container h2 {
    color: #ff69b4;
    border-bottom-color: #666;
}

body.dark-mode #note-form label {
    color: #ff69b4;
}

body.dark-mode #note-form input[type="text"],
body.dark-mode #note-form textarea {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-mode #note-form input[type="text"]:focus,
body.dark-mode #note-form textarea:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.2);
}

body.dark-mode #note-form button[type="submit"] {
    background-color: #ff69b4;
}

body.dark-mode #note-form button[type="submit"]:hover {
    background-color: #e55a9b;
}

/* NOT KARTLARI İÇİN GÜNCELLEME - TEMAYA UYGUN */
.note-card {
    background: #fff;
    border: 1px solid #f8bbd0;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.15);
}

.note-card h3 {
    font-family: 'Dancing Script', cursive;
    color: #e91e63;
    font-size: 1.8rem;
    margin: 0 0 0.8rem 0;
    text-align: left;
}

.note-card .note-content {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    text-align: justify;
}

.note-card .note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.note-card .note-footer .action-btn {
    background: transparent;
    border: none;
    padding: 0.4rem;
    opacity: 0.7;
    transition: all 0.2s;
    color: #e91e63;
}

.note-card .note-footer .action-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #c2185b;
}

/* BOŞ NOT MESAJI */
.empty-notes {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-style: italic;
}

/* KARANLIK MOD - NOTLAR */
body.dark-mode .note-card {
    background: #2a2a2a;
    border-color: #444;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .note-card h3 {
    color: #ff69b4;
}

body.dark-mode .note-card .note-content {
    color: #e0e0e0;
}

body.dark-mode .note-card .note-footer {
    color: #aaa;
}

body.dark-mode .note-card .action-btn svg {
    color: #ff69b4;
}

body.dark-mode .note-card .action-btn:hover {
    color: #ff69b4;
}

/* ============================
   MOBILE MENU — FIXED + HILAL
   (Paste at end of styles.css)
   ============================ */

@media (max-width: 768px) {

  /* container: sadece konum ve stacking kontrolü (interaksiyon öğelere geçirilecek) */
  .mobile-menu {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 80px;
    height: 80px;
    z-index: 2147483647; /* en üst seviyeye çıkar */
    pointer-events: none; /* interaksiyonu yalnızca buton/öğel alsın */
  }

  /* gizli checkbox (mevcut html ile uyumlu) */
  .menu-open {
    display: none;
  }

  /* görünür hamburger butonu — sabit konumda */
  .menu-open-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e91e63;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 2147483647; /* en üstteki eleman */
    pointer-events: auto; /* tıklanabilir olsun */
    transition: transform .18s ease;
  }

  .menu-open-button .lines {
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    transition: transform .2s ease, opacity .2s ease;
  }

  /* buton dönüşümü (close icon) */
  .menu-open:checked + .menu-open-button .line-1 { transform: rotate(45deg) translate(5px, 5px); }
  .menu-open:checked + .menu-open-button .line-2 { opacity: 0; }
  .menu-open:checked + .menu-open-button .line-3 { transform: rotate(-45deg) translate(5px, -5px); }

  /* Menü öğeleri — artık FIXED (viewport'a sabit) */
  .menu-item {
    position: fixed;               /* -> root-level, hiçbir üst stacking-context tarafından kırpılmaz */
    right: 24px;                   /* başlangıç pozisyonu (hamburger ile hizalı) */
    bottom: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transform: translate(0,0) scale(.88);
    transition: transform 360ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
    opacity: 0;
    pointer-events: none;          /* kapalıyken tıklanmasın */
    z-index: 2147483646;           /* butondan biraz daha düşük ama hala çok yüksek */
    will-change: transform, opacity;
  }

  .menu-item i { pointer-events: none; } /* icon tıklamasında sorun olmasın */

  /* açıldığında görünür hale getir */
  .menu-open:checked ~ .menu-item {
    opacity: 1;
    pointer-events: auto;
    transform-origin: center center;
  }

 
  /* renkler (mevcut sınıfların aynısı) */
  .pink        { background-color: #e91e63; }
  .light-pink  { background-color: #f8bbd0; color:#333; }
  .rose        { background-color: #ff6b6b; }
  .magenta     { background-color: #d81b60; }
  .deep-pink   { background-color: #ff4081; }
  .dark-pink   { background-color: #c2185b; }

} /* end media */
