/* Genel Ayarlar ve Font */
body {
    font-family: 'Inter', sans-serif;
    /* Tailwind varsayılan fontu */
    margin: 0;
    padding: 0;
    /* Hafif bir degrade arka plan veya desen */
    background: linear-gradient(135deg, #f0f4f8 0%, #e8edf3 100%);
    color: #334155;
    /* Koyu gri metin */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    /* Tam ekran yüksekliği */
    overflow-x: hidden;
    /* Yatay kaydırmayı engelle */
    transition: background-color 0.5s ease;
    /* Arka plan değişimi için geçiş */
}

/* Tailwind CSS ile uyumlu temel stil sıfırlamaları */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Yükleme Ekranı */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    /* Biraz daha opak */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    /* Daha büyük font */
    font-weight: bold;
    color: #4f46e5;
    /* Mor tonu */
    z-index: 1000;
    opacity: 1;
    /* Varsayılan olarak görünür */
    visibility: visible;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
    /* Hafif gölge */
}

#loadingOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Başlık */
#headerTitle {
    font-size: 3rem;
    /* Daha büyük font */
    color: #6b21a8;
    /* Derin mor */
    margin-top: 40px;
    /* Daha fazla üst boşluk */
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 2px;
    /* Harf aralığı */
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    /* Daha belirgin gölge */
    position: relative;
    /* Animasyon için */
    animation: fadeInDown 1s ease-out;
    /* Giriş animasyonu */
}

/* Hoş Geldin Metni */
#greeting {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 1.2s ease-out;
}

/* Genel Kapsayıcılar (Section) */
section {
    background-color: #ffffff;
    padding: 30px;
    /* Daha fazla padding */
    margin: 25px auto;
    /* Daha fazla marjin */
    border-radius: 16px;
    /* Daha yuvarlak köşeler */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    /* Daha belirgin gölge */
    width: 90%;
    max-width: 750px;
    /* Daha geniş */
    border: 1px solid #e2e8f0;
    /* Hafif kenarlık */
    position: relative;
    overflow: hidden;
    /* İçerik taşmasını engelle */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    /* Geçiş efektleri */
    animation: fadeInUp 0.8s ease-out forwards;
    /* Giriş animasyonu */
    opacity: 0;
    /* Başlangıçta gizli */
}

section:nth-of-type(1) {
    animation-delay: 0.2s;
}

section:nth-of-type(2) {
    animation-delay: 0.4s;
}

section:nth-of-type(3) {
    animation-delay: 0.6s;
}

section:nth-of-type(4) {
    animation-delay: 0.8s;
}

section:nth-of-type(5) {
    animation-delay: 1.0s;
}

/* Yeni eklenen yapılacaklar listesi section'ı için animation delay */
#bucketListSection {
    animation-delay: 1.2s; /* Diğer section'lardan sonra gelsin */
}


section:hover {
    transform: translateY(-5px);
    /* Hafif yukarı kayma */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    /* Daha belirgin hover gölgesi */
}

section h2 {
    color: #4f46e5;
    /* Mor tonu */
    font-size: 1.8rem;
    /* Daha büyük font */
    margin-bottom: 25px;
    border-bottom: 3px solid #e0e7ff;
    /* Kalın alt çizgi */
    padding-bottom: 12px;
    font-weight: 700;
    position: relative;
    text-align: left; /* Başlıklar sola hizalı kalsın */
}

section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 60px;
    /* Vurgu çizgisi */
    height: 3px;
    background-color: #a78bfa;
    /* Açık mor vurgu */
    border-radius: 2px;
}

/* Giriş Alanları (Günlükler) */
.entryLink {
    display: block;
    padding: 20px;
    /* Daha fazla padding */
    background-color: #f8fafc;
    /* Çok açık gri */
    border-radius: 10px;
    /* Daha yuvarlak */
    text-decoration: none;
    color: #334155;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    margin-top: 20px;
    border: 1px solid #cbd5e1;
    /* Hafif kenarlık */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* Hafif iç gölge */
}

.entryLink:hover:not(.disabled) {
    background-color: #eef2ff;
    /* Daha belirgin hafif mavi */
    transform: translateY(-5px);
    /* Daha belirgin yukarı kayma */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Hover gölgesi */
}

.entryLink.disabled {
    cursor: not-allowed;
    opacity: 0.6;
    /* Biraz daha şeffaf */
    background-color: #e2e8f0;
    color: #64748b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
    /* Daha belirgin iç gölge */
}

.entryLink p {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    /* Daha büyük font */
    font-weight: 600;
    /* Daha kalın */
    color: #2d3748;
    /* Koyu metin */
}

.entryDate {
    display: block;
    text-align: right;
    font-size: 0.95rem;
    /* Biraz daha büyük */
    color: #64748b;
    margin-top: 8px;
    font-style: italic;
    /* İtalik */
}

/* Günlük Yaz Butonu */
#writeBtn {
    background: linear-gradient(45deg, #4f46e5, #6d28d9);
    /* Degrade arka plan */
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    /* Daha büyük padding */
    font-size: 1.2rem;
    /* Daha büyük font */
    font-weight: 700;
    /* Daha kalın */
    border-radius: 10px;
    /* Daha yuvarlak */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    /* Tüm özellikler için geçiş */
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
    /* Daha belirgin gölge */
    text-transform: uppercase;
    /* Büyük harf */
    letter-spacing: 0.5px;
}

#writeBtn:hover {
    background: linear-gradient(45deg, #6d28d9, #4f46e5);
    /* Degrade yönünü değiştir */
    transform: translateY(-3px) scale(1.02);
    /* Hafif yukarı kayma ve büyüme */
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.5);
    /* Daha belirgin hover gölgesi */
}

#writeBtn:active {
    transform: translateY(0) scale(0.98);
    /* Tıklama efekti */
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.4);
}

/* Geçmiş Günlükler Listesi */
#entriesList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#entriesList li {
    padding: 15px 0;
    /* Daha fazla padding */
    border-bottom: 1px solid #eef2f6;
    /* Düz ve daha açık bir çizgi */
    font-size: 1.05rem;
    /* Biraz daha büyük font */
    color: #475569;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

#entriesList li:hover {
    background-color: #fcfdfe;
    /* Hafif hover arka planı */
}

#entriesList li:last-child {
    border-bottom: none;
}

#entriesList li a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    /* Daha kalın */
    transition: color 0.2s ease;
}

#entriesList li a:hover {
    text-decoration: underline;
    color: #6d28d9;
    /* Hover rengi */
}

#entriesList li small {
    color: #64748b;
    font-size: 0.9rem;
    /* Biraz daha büyük */
}

/* Geri Sayım Kutuları */
#countdowns {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    /* Daha fazla boşluk */
}

#countdown1,
#countdown2 {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    /* Degrade arka plan */
    padding: 25px;
    /* Daha fazla padding */
    border-radius: 16px;
    /* Daha yuvarlak */
    text-align: center;
    flex: 1 1 300px;
    /* Esnek boyutlandırma, biraz daha büyük */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    /* Daha belirgin gölge */
    border: 1px solid #a78bfa;
    /* Mor kenarlık */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#countdown1:hover,
#countdown2:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#countdown1 div:first-child,
#countdown2 div:first-child {
    font-size: 4rem;
    /* Daha büyük sayılar */
    font-weight: 800;
    /* Daha kalın */
    color: #4338ca;
    /* Koyu mor */
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

#countdown1 div:last-child,
#countdown2 div:last-child {
    font-size: 1.1rem;
    /* Daha büyük font */
    color: #4f46e5;
    font-weight: 600;
}

/* Strike Display */
.strike-box {
    position: fixed;
    /* Sabit pozisyon */
    top: 25px;
    /* Biraz daha aşağı */
    right: 25px;
    /* Biraz daha sola */
    background-color: #fef2f2;
    /* Çok açık kırmızı */
    border: 3px solid #dc2626;
    /* Kalın kenarlık */
    border-radius: 30px;
    /* Daha oval */
    padding: 10px 20px;
    /* Daha fazla padding */
    display: flex;
    align-items: center;
    gap: 10px;
    /* Daha fazla boşluk */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    /* Daha belirgin gölge */
    z-index: 500;
    animation: pulse 1.5s infinite ease-in-out;
    /* Nabız animasyonu */
    /* font-family: 'Press Start 2P', cursive; */
    /* Piksel fontu (eğer uygunsa) - bu fontu eklemek için harici bir link gerekir */
}

.fire-gif {
    height: 35px;
    /* GIF boyutu */
    width: 35px;
}

.strike-count {
    font-size: 1.8rem;
    /* Daha büyük font */
    font-weight: bold;
    color: #ef4444;
    /* Kırmızı metin */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Harita Bölümü */
#map {
    height: 450px;
    /* Haritanın yüksekliği */
    width: 100%;
    border-radius: 12px;
    margin-top: 25px;
    box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.15);
    /* Daha belirgin iç gölge */
    border: 1px solid #cbd5e1;
}

/* Leaflet pop-up'ları içindeki resim boyutlandırması */
.leaflet-popup-content img {
    max-width: 100%;
    /* Resimlerin pop-up genişliğini aşmamasını sağlar */
    height: auto;
    /* Oranlarını korur */
    display: block;
    /* Ekstra boşlukları kaldırır */
    margin: 0 auto;
    /* Resmi ortalar */
    border-radius: 8px;
    /* Resim köşelerini yuvarlar */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Hafif gölge ekler */
}


/* Footer */
footer {
    width: 100%;
    margin-top: 50px;
    /* Daha fazla üst boşluk */
    padding: 20px 20px;
    /* Daha fazla padding */
    background-color: #e2e8f0;
    /* Hafif gri arka plan */
    border-top: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 0.95rem;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    /* Hafif üst gölge */
}

footer p {
    margin: 5px 0;
}

footer strong {
    color: #4f46e5;
}

footer em {
    color: #ef4444;
    /* Kırmızı vurgu */
}

/* Keyframe Animasyonları */
@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);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    }
}

/* --- Birlikte Yapılacaklar Listesi Stilleri (Ana Sayfa ile Uyumlu) --- */
#bucketListSection {
    /* Section'ın kendi genel stilini koruyoruz */
    /* background-color, padding, margin, border-radius, box-shadow, width, max-width, border */
    /* Yukarıdaki 'section' genel stil kurallarını zaten kullanacak */
    animation-delay: 1.2s; /* Diğer section'lardan sonra görünmesi için animasyon gecikmesi */
}

#bucketListSection h2 {
    color: #4f46e5; /* Ana başlıklara uyumlu mor tonu */
    /* font-size, margin-bottom, border-bottom, padding-bottom, font-weight, position, text-align, etc. */
    /* Genel section h2 stilini kullanacak */
}

#bucketListSection h2::after {
    /* Genel section h2::after stilini kullanacak */
    background-color: #a78bfa;
}


#bucketList {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

#bucketList li {
    background-color: #f8fafc; /* entryLink'e benzer açık gri */
    padding: 15px 20px; /* entryLink'e benzer padding */
    margin-bottom: 12px; /* Daha fazla boşluk */
    border-radius: 10px; /* entryLink'e benzer yuvarlaklık */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* entryLink'e benzer gölge */
    transition: all 0.3s ease;
    font-size: 1.1rem; /* Rem birimi ile daha tutarlı */
    color: #334155; /* Genel metin rengi */
    border: 1px solid #e2e8f0; /* Hafif kenarlık */
}

#bucketList li:hover {
    background-color: #eef2ff; /* entryLink hover'a benzer */
    transform: translateY(-3px); /* Hafif yukarı kayma */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* entryLink hover gölgesine benzer */
}

#bucketList li.completed {
    text-decoration: line-through;
    color: #8892a0; /* Daha mat bir gri */
    background-color: #eff3f7; /* Daha mat bir arka plan */
    opacity: 0.7; /* Tamamlananları biraz daha soluk yap */
}

#bucketList li .item-text {
    flex-grow: 1;
    cursor: pointer;
    font-weight: 500; /* Biraz daha az kalın, normal yazıya yakın */
}

#bucketList li .action-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4em; /* İkonlar biraz daha büyük */
    margin-left: 12px; /* Daha fazla boşluk */
    color: #64748b; /* Gri tonu */
    transition: color 0.2s ease, transform 0.2s ease;
}

#bucketList li .action-buttons button:hover {
    color: #4f46e5; /* Mor tonu */
    transform: scale(1.15); /* Hafif büyüme */
}

.add-item-form {
    display: flex;
    gap: 15px; /* Daha fazla boşluk */
    margin-top: 25px; /* Üstten boşluk */
}

#newItemInput {
    flex-grow: 1;
    padding: 12px 18px; /* Daha fazla padding */
    border: 1px solid #cbd5e1; /* Ana sayfadaki inputlara benzer kenarlık */
    border-radius: 8px; /* Daha yuvarlak */
    font-size: 1.1rem; /* Font boyutunu biraz artır */
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); /* Hafif iç gölge */
}

#newItemInput:focus {
    border-color: #a78bfa; /* Odaklandığında mor tonu */
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.08), 0 0 0 3px rgba(167, 139, 250, 0.3); /* Mor tonunda odak halkası */
}

#addItemBtn {
    padding: 12px 25px; /* writeBtn'e yakın padding */
    background: linear-gradient(45deg, #4f46e5, #6d28d9); /* writeBtn ile aynı degrade */
    color: white;
    border: none;
    border-radius: 10px; /* writeBtn ile aynı yuvarlaklık */
    cursor: pointer;
    font-size: 1.1rem; /* writeBtn'e yakın font */
    font-weight: 600; /* Daha kalın */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); /* writeBtn ile benzer gölge */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#addItemBtn:hover {
    background: linear-gradient(45deg, #6d28d9, #4f46e5); /* writeBtn hover ile aynı */
    transform: translateY(-2px) scale(1.01); /* Hafif yukarı kayma */
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

#addItemBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(79, 70, 229, 0.3);
}

/* Mobil Duyarlılık - Yapılacaklar Listesi İçin Eklemeler */
@media (max-width: 768px) {
    #bucketListSection h2 {
        font-size: 1.6rem; /* Mobil için uygun başlık boyutu */
    }

    #bucketList li {
        font-size: 1rem; /* Mobil için daha küçük font */
        padding: 12px 15px;
    }

    #bucketList li .action-buttons button {
        font-size: 1.2em; /* Mobil ikon boyutu */
        margin-left: 8px;
    }

    .add-item-form {
        flex-direction: column; /* Mobil için dikey hizala */
        gap: 10px;
    }

    #newItemInput {
        padding: 10px 15px;
        font-size: 1em;
    }

    #addItemBtn {
        width: 100%; /* Mobil için tam genişlik */
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    #bucketListSection h2 {
        font-size: 1.4rem;
    }
    #bucketList li {
        font-size: 0.95rem;
        padding: 10px 12px;
    }
    #bucketList li .action-buttons button {
        font-size: 1.1em;
        margin-left: 5px;
    }
    #newItemInput {
        font-size: 0.95em;
    }
    #addItemBtn {
        font-size: 0.95em;
    }
}

