@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #160a18 0%, #2d142c 100%);
    color: #f8f8f2;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Üst Menü */
.top-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    font-size: 0.9rem;
}

.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.menu a { color: #fff; text-decoration: none; margin: 0 1rem; opacity: 0.8; }
.online-status { display: flex; align-items: center; gap: 8px; color: #4ade80; }
.dot { width: 8px; height: 8px; background-color: #4ade80; border-radius: 50%; box-shadow: 0 0 8px #4ade80; }

/* Karşılama ve Sayaç */
.hero-section { text-align: center; margin-bottom: 3rem; }
.main-title { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 400; margin-bottom: 2rem; line-height: 1.2; }

.counter-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 3rem;
    border-radius: 20px;
    display: inline-block;
}

.counter-label { display: block; font-size: 0.9rem; opacity: 0.7; margin-bottom: 0.5rem; }
.counter-content { font-size: 2rem; font-weight: 300; }
.highlight { color: #ff79c6; font-weight: 600; font-size: 3rem; }

/* Özellikler Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); }
.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 0.3rem; }
.feature-card p { font-size: 0.85rem; opacity: 0.7; }

/* Mobil Uyumluluk */
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .menu { display: none; }
    .main-title { font-size: 2.2rem; }
}
/* --- Galeri Sayfası Kodları --- */
.gallery-container { max-width: 1000px; margin: 0 auto; padding: 2rem; width: 100%; }
.back-btn { color: #ff79c6; text-decoration: none; font-size: 1.1rem; opacity: 0.8; transition: opacity 0.3s; }
.back-btn:hover { opacity: 1; }
.gallery-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; text-align: center; margin: 2rem 0; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.gallery-img { width: 100%; height: 250px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform 0.3s; }
.gallery-img:hover { transform: scale(1.03); }

/* --- Lightbox (Tam Ekran Modu) --- */
.lightbox { display: none; position: fixed; z-index: 999; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; }
.lightbox img { max-width: 90%; max-height: 90%; border-radius: 10px; box-shadow: 0 0 20px rgba(255, 121, 198, 0.2); }
.close-btn { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; }

/* --- Yıl ve Ay Kategorileri --- */
.year-section {
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    border-left: 2px solid #ff79c6; /* Sol tarafta pembe bir çizgi (Zaman çizelgesi hissi) */
}

.year-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #ff79c6;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Yılların yanına küçük bir kalp ikonu ekliyoruz */
.year-title::before {
    content: "♥";
    position: absolute;
    left: -2.3rem; /* Kalbi sol çizginin tam üstüne hizalıyoruz */
    top: 0;
    background-color: #160a18;
    padding: 0 5px;
    font-size: 1.5rem;
}

.month-section {
    margin-bottom: 2.5rem;
}

.month-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f8f8f2;
}


/* --- Lightbox Yön Butonları --- */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 2.5rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s;
    z-index: 1000;
}

.nav-btn:hover { background: rgba(255, 121, 198, 0.8); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }


/* --- Mektup Sayfası --- */
.letter-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; margin-top: 1rem; }

.music-player { background: rgba(255, 121, 198, 0.1); border: 1px solid rgba(255, 121, 198, 0.3); padding: 0.8rem 1.5rem; border-radius: 50px; display: flex; align-items: center; gap: 15px; margin-bottom: 2.5rem; backdrop-filter: blur(5px); }
.music-icon { font-size: 1.5rem; }
.music-text { color: #ff79c6; font-weight: 500; font-size: 0.95rem; margin-right: 10px; letter-spacing: 1px; }
audio { height: 35px; outline: none; border-radius: 20px; }

.letter-paper { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px); padding: 3.5rem; border-radius: 15px; max-width: 750px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.letter-title { font-family: 'Playfair Display', serif; color: #ff79c6; font-size: 2.2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255, 121, 198, 0.2); padding-bottom: 1rem; }
.letter-body p { font-size: 1.1rem; line-height: 1.9; margin-bottom: 1.5rem; color: rgba(248, 248, 242, 0.9); }
.letter-footer { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: #ff79c6; text-align: right; margin-top: 3rem; font-style: italic; }
/* --- Tema Butonu --- */
.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
    margin-left: 15px;
}
.theme-btn:hover { background: rgba(255, 255, 255, 0.2); }

/* --- Aydınlık Tema Renkleri --- */
body.light-theme {
    background: linear-gradient(135deg, #fce3ec 0%, #ffe8e8 100%);
    color: #4a2c40;
}
body.light-theme .counter-box,
body.light-theme .feature-card,
body.light-theme .letter-paper,
body.light-theme .music-player {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 121, 198, 0.4);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
body.light-theme .feature-card h3, 
body.light-theme .counter-label, 
body.light-theme .feature-card p,
body.light-theme .letter-body p {
    color: #4a2c40;
    opacity: 0.9;
}
body.light-theme .menu a { color: #4a2c40; font-weight: 500; }
body.light-theme .theme-btn { color: #4a2c40; border-color: #ff79c6; }
/* --- Modal (Açılır Pencere) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 121, 198, 0.3);
    padding: 2.5rem; border-radius: 15px; max-width: 500px; text-align: center;
    position: relative; backdrop-filter: blur(15px); box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.close-modal {
    position: absolute; top: 15px; right: 20px; font-size: 1.5rem;
    cursor: pointer; color: #ff79c6; transition: 0.2s;
}
.close-modal:hover { color: #fff; }
.modal-title { color: #ff79c6; margin-bottom: 1rem; font-family: 'Playfair Display', serif; font-size: 1.8rem;}
.modal-text { line-height: 1.6; color: #f8f8f2; }

/* Aydınlık tema uyumluluğu */
body.light-theme .modal-content { background: rgba(255, 255, 255, 0.9); }
body.light-theme .modal-text { color: #4a2c40; }

/* Uçuşan Kalpler Efekti */
.floating-heart {
    position: fixed; bottom: -20px; font-size: 1.5rem;
    animation: floatUp 3s ease-in forwards; z-index: 1001; pointer-events: none;
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-100vh) scale(1.5) rotate(360deg); opacity: 0; }
}
/* --- Karnemiz İstatistik Çubukları --- */
.stat-item {
    margin-bottom: 1.5rem;
    text-align: left;
}
.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    opacity: 0.9;
}
.progress-bg {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 10px;
    /* Çubukların açıldığında doluyormuş gibi görünmesi için animasyon */
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
}
/* --- Anılarımız (Timeline) Sayfası Tasarımı --- */
.timeline-container {
    padding: 100px 20px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #f8f8f2;
    margin-bottom: 10px;
}

.page-subtitle {
    color: #ff79c6;
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-style: italic;
}

.timeline {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* Ortadaki dikey pembe çizgi */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ff79c6;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 5px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Çizgideki küçük kalpler */
.timeline-item::after {
    content: '♥';
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: #160a18;
    border: 3px solid #ff79c6;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    color: #ff79c6;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -12px; } /* Sağdaki kalbi sola al */

.timeline-content {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    text-align: left;
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 121, 198, 0.2);
}

.timeline-date {
    color: #ff79c6;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.timeline-title {
    color: #f8f8f2;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* Mobilde (telefon ekranında) çizginin sola kayması için */
@media screen and (max-width: 768px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .left, .right { left: 0; }
    .timeline-item::after { left: 19px; }
}