:root {
    --bg-dark: #070405;
    --bg-color-1: #1c0a11;
    --bg-color-2: #260e17;
    --bg-gradient: linear-gradient(-45deg, #070405, var(--bg-color-1), #0a0508, var(--bg-color-2));
    --accent-red: #ff3b6b;
    --accent-rose: #ffb3c6;
    --text-main: #f0f0f0;
    --text-muted: #a3a3b3;
    --font-romantic: 'Great Vibes', cursive;
    --font-modern: 'Montserrat', sans-serif;
    --font-handwriting: 'Kalam', cursive;
    --glass-bg: rgba(20, 12, 18, 0.5);
    --glass-border: rgba(255, 59, 107, 0.2);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Mobilde beyazlama sorununu kökünden çözen kilit komutlar */
html {
    background-color: var(--bg-dark); /* Gradient bozulursa bembeyaz olmasını engeller */
    overflow-x: hidden; 
    width: 100%; 
    max-width: 100vw;
}

body { 
    background-color: var(--bg-dark); /* Kesin karanlık arka plan koruması */
    background-image: var(--bg-gradient);
    background-size: 400% 400%;
    background-attachment: fixed; /* Arka planı ekrana çiviler, kaydırınca beyazlamaz */
    animation: gradientBG 15s ease infinite;
    font-family: var(--font-modern); 
    color: var(--text-main); 
    min-height: 100vh; 
    overflow-x: hidden; 
    width: 100%; 
    max-width: 100vw; 
    position: relative; 
}

@keyframes gradientBG { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

/* ŞİFRE (GÜVENLİK) EKRANI */
#auth-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: var(--bg-dark); background-image: var(--bg-gradient); background-size: 400% 400%; background-attachment: fixed; animation: gradientBG 15s ease infinite; z-index: 100000; display: flex; justify-content: center; align-items: center; padding: 20px; transition: opacity 0.6s ease, visibility 0.6s; }
.auth-box { width: 100%; max-width: 380px; padding: 50px 30px; text-align: center; display: flex; flex-direction: column; align-items: center; }
#auth-password { width: 100%; padding: 18px; border-radius: 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.6); color: #fff; text-align: center; font-size: 1.5rem; letter-spacing: 8px; margin-bottom: 25px; font-family: var(--font-modern); transition: 0.3s; }
#auth-password:focus { outline: none; border-color: var(--accent-red); box-shadow: 0 0 20px rgba(255, 59, 107, 0.4); }
#auth-btn { width: 100%; padding: 16px; border-radius: 12px; background: linear-gradient(45deg, var(--accent-red), #d62852); color: #fff; border: none; font-weight: 600; cursor: pointer; transition: 0.4s; font-size: 1.1rem; box-shadow: 0 5px 15px rgba(255, 59, 107, 0.3); font-family: var(--font-modern); }
#auth-btn:hover { box-shadow: 0 8px 25px rgba(255, 59, 107, 0.6); transform: translateY(-3px); }

#go-admin-btn { width: 100%; padding: 14px; margin-top: 15px; border-radius: 12px; background: rgba(255,255,255,0.03); color: var(--text-muted); border: 1px solid var(--glass-border); font-weight: 500; cursor: pointer; transition: 0.4s; font-size: 0.95rem; font-family: var(--font-modern); display: flex; justify-content: center; align-items: center; gap: 10px; }
#go-admin-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); transform: translateY(-2px); }

#auth-error { color: var(--accent-red); margin-top: 15px; font-size: 0.9rem; font-weight: 500; display: none; animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }

/* YÜKLEME EKRANI */
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-dark); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s; }
.beating-heart { font-size: 4.5rem; color: var(--accent-red); animation: heartbeat 1.2s infinite; text-shadow: 0 0 35px rgba(255, 59, 107, 0.8); }
.loader-text { margin-top: 25px; font-size: 2.8rem; color: var(--accent-rose); letter-spacing: 2px; }

/* GLASSMORPHISM */
.dark-glass { background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 59, 107, 0.05); transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease; }
.dark-glass:hover { box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), inset 0 0 25px rgba(255, 59, 107, 0.1); border-color: rgba(255, 59, 107, 0.4); }

.glow-text { color: var(--accent-red); text-shadow: 0 0 15px rgba(255, 59, 107, 0.6), 0 0 30px rgba(255, 59, 107, 0.4); }
.romantic-font { font-family: var(--font-romantic); }

.fade-in { opacity: 0; transform: scale(0.96); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: scale(1); }
.slide-up { opacity: 0; transform: translateY(35px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* BAŞLIK & SAYFA DÜZENİ */
.global-header { text-align: center; padding: 50px 20px 20px 20px; position: relative; z-index: 10; }
.hero-title { font-family: var(--font-romantic); font-size: 4rem; margin-bottom: 8px; line-height: 1.1; letter-spacing: 1px; }
.hero-subtitle { font-size: 1.05rem; color: var(--accent-rose); letter-spacing: 1px; font-weight: 300; }

#pages-container { padding: 10px 20px 140px 20px; max-width: 650px; margin: 0 auto; position: relative; width: 100%; }
.page { display: none; opacity: 0; transform: translateY(15px); animation: pageEntry 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; width: 100%; }
.page.active { display: block; }
@keyframes pageEntry { to { opacity: 1; transform: translateY(0); } }

/* SAYAÇ & VİTRİN */
.timer-wrapper { padding: 45px 20px; text-align: center; margin-top: 25px; }
.timer-container { display: flex; gap: 15px; justify-content: center; flex-wrap: nowrap; }
.time-box { display: flex; flex-direction: column; align-items: center; width: 65px;}
.time-box span:first-child { font-size: 2.5rem; font-weight: 600; color: #fff; text-shadow: 0 0 25px rgba(255,255,255,0.5); }
.time-box .label { font-size: 0.75rem; color: var(--accent-rose); text-transform: uppercase; font-weight: 500; margin-top: 6px; letter-spacing: 1px; }

.highlight-wrapper { margin-top: 25px; padding: 25px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; transition: all 0.4s ease; }
.highlight-img { width: 100%; max-height: 400px; border-radius: 14px; object-fit: cover; box-shadow: 0 5px 15px rgba(0,0,0,0.4); display: block; }
.highlight-text { font-size: 1.05rem; color: var(--text-main); line-height: 1.6; white-space: pre-wrap; font-family: var(--font-modern); word-wrap: break-word; overflow-wrap: break-word; width: 100%; }

/* HİKAYE */
.timeline { position: relative; padding-left: 25px; margin-top: 25px; width: 100%; }
.timeline::after { content: ''; position: absolute; width: 2px; background: rgba(255, 59, 107, 0.4); top: 0; bottom: 0; left: 0; box-shadow: 0 0 10px rgba(255,59,107,0.5); }
.timeline-item { padding-left: 25px; margin-bottom: 40px; position: relative; width: 100%; max-width: 100%; }
.timeline-item::before { content: ''; position: absolute; width: 14px; height: 14px; background: var(--accent-red); border-radius: 50%; left: -6px; top: 22px; box-shadow: 0 0 15px var(--accent-red), 0 0 30px var(--accent-red); z-index: 2; }
.timeline-content { padding: 25px; width: 100%; overflow-wrap: break-word; word-break: break-word; hyphens: auto; }
.timeline-content img { width: 100%; max-width: 100%; border-radius: 14px; margin-bottom: 18px; filter: contrast(1.05) brightness(0.95); transition: 0.4s ease; display: block; }
.timeline-content img:hover { filter: contrast(1.1) brightness(1.05); transform: scale(1.02); }
.timeline-content h3 { font-size: 1.5rem; color: #fff; margin-bottom: 8px; font-weight: 600; }
.timeline-content .date { font-size: 0.85rem; color: var(--accent-red); display: block; margin-bottom: 12px; font-weight: 600; letter-spacing: 0.5px; }
.timeline-content p { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }

/* GALERİ */
.gallery-filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 35px; flex-wrap: wrap; }
.filter-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-muted); padding: 10px 25px; border-radius: 30px; font-family: var(--font-modern); font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); backdrop-filter: blur(10px); }
.filter-btn.active, .filter-btn:hover { background: var(--accent-red); color: #fff; border-color: var(--accent-red); box-shadow: 0 8px 25px rgba(255, 59, 107, 0.5); transform: translateY(-3px); }

.smart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; width: 100%; }
.grid-item { transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
.polaroid { padding: 10px 10px 18px 10px; text-align: center; transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease; background: rgba(255,255,255,0.03); width: 100%; overflow: hidden; }
.polaroid:nth-child(odd) { transform: rotate(-3deg); }
.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid:hover { transform: scale(1.08) rotate(0deg) !important; z-index: 10; background: rgba(255,255,255,0.08); }
.polaroid img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); display: block; }
.polaroid .caption { font-family: var(--font-handwriting); color: #fff; font-size: 1.3rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); overflow-wrap: break-word; word-break: break-word; }

/* ZARF */
.envelope-wrapper { cursor: pointer; text-align: center; margin-top: 30px; width: 100%; max-width: 100%; overflow: hidden; }
.envelope-front { padding: 70px 20px; width: 100%; }
.heart-icon { font-size: 5rem; display: block; margin-bottom: 20px; animation: heartbeat 2s infinite; }
.letter-content { max-height: 0; overflow: hidden; opacity: 0; transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1); text-align: left; padding: 0 20px; margin-top: 30px; width: 100%; }
.letter-content h3 { font-size: 3rem; margin-bottom: 20px; }
.letter-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.7; color: var(--text-main); font-weight: 300; overflow-wrap: break-word; word-break: break-word; }
.envelope-wrapper.open .envelope-front { display: none; }
.envelope-wrapper.open .letter-content { max-height: 2000px; opacity: 1; padding: 35px 25px; overflow-y: auto; }

/* MENÜ & LİGHTBOX */
.bottom-nav { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 440px; display: flex; justify-content: space-between; align-items: center; padding: 12px 15px; z-index: 1000; border-radius: 40px; border: 1px solid rgba(255,255,255,0.08); background: rgba(10, 5, 8, 0.85); backdrop-filter: blur(30px); box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--text-muted); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 25%; position: relative; z-index: 2; padding: 8px 0; }
.nav-item .icon { font-size: 1.4rem; margin-bottom: 5px; transition: 0.4s ease; opacity: 0.5; }
.nav-item .text { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px; opacity: 0; transform: translateY(8px); transition: 0.4s ease; position: absolute; bottom: -8px; }
.nav-item.active .icon { opacity: 1; color: var(--accent-red); transform: translateY(-14px); text-shadow: 0 0 20px rgba(255,59,107,0.9); }
.nav-item.active .text { opacity: 1; transform: translateY(0); color: #fff; }
.nav-indicator { position: absolute; top: 50%; left: 10%; transform: translate(-50%, -50%); width: 55px; height: 55px; background: rgba(255, 59, 107, 0.15); border-radius: 50%; z-index: 1; transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 30px rgba(255, 59, 107, 0.3); }

.lightbox { display: none; position: fixed; z-index: 200000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.98); backdrop-filter: blur(25px); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.lightbox.show { opacity: 1; display: flex; }
.lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 16px; box-shadow: 0 0 60px rgba(255, 59, 107, 0.4); border: 1px solid var(--glass-border); transform: scale(0.9); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); object-fit: contain; }
.lightbox.show .lightbox-content { transform: scale(1); }
.close-lightbox { position: absolute; top: 30px; right: 35px; color: #fff; font-size: 40px; cursor: pointer; z-index: 200001; transition: 0.3s ease; text-shadow: 0 0 15px rgba(255,255,255,0.5); }
.close-lightbox:hover { color: var(--accent-red); transform: scale(1.15) rotate(90deg); text-shadow: 0 0 20px var(--accent-red); }
.lightbox-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20, 10, 15, 0.7); border: 1px solid var(--glass-border); color: #fff; width: 60px; height: 60px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(15px); z-index: 200001; transition: 0.3s ease; }
.lightbox-btn:hover { background: var(--accent-red); border-color: var(--accent-red); box-shadow: 0 0 20px var(--accent-red); }
.lightbox-btn:active { transform: translateY(-50%) scale(0.9); }
.prev-btn { left: 20px; }
.next-btn { right: 20px; }

#particles-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.sparkle { position: absolute; bottom: -5vh; background: var(--accent-red); border-radius: 50%; opacity: 0.7; animation: floatUp linear infinite; box-shadow: 0 0 15px var(--accent-red); }
@keyframes floatUp { 0% { transform: translateY(0) scale(0); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(-110vh) scale(1.5); opacity: 0; } }

footer { text-align: center; padding: 30px 0; margin-top: 50px; color: rgba(255,255,255,0.3); font-size: 0.9rem; font-weight: 500; letter-spacing: 1.5px; }

/* MOBİL TASARIM (BEYAZLAMA VE KAYMA KORUMASI EKLENDİ) */
@media screen and (max-width: 768px) {
    html, body {
        background-color: var(--bg-dark); /* Mobil tarayıcılarda kaydırınca alttan çıkan beyazlığı engeller */
        background-attachment: fixed;
    }
    .global-header { padding: 30px 15px 10px 15px; }
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .loader-text { font-size: 2rem; }
    .beating-heart { font-size: 3.5rem; }
    .time-box span:first-child { font-size: 1.8rem; }
    .time-box { width: 55px; }
    .timer-container { gap: 10px; }
    .timeline { padding-left: 15px; }
    .timeline-item { padding-left: 20px; }
    .timeline-item::before { left: -7px; width: 12px; height: 12px; top: 25px;}
    .auth-box { padding: 35px 20px; width: 92%; }
    #auth-password { font-size: 1.2rem; letter-spacing: 5px; }
    #pages-container { padding: 10px 15px 120px 15px; }
}

@media screen and (max-width: 400px) {
    .hero-title { font-size: 2.5rem; }
    .time-box span:first-child { font-size: 1.5rem; }
    .time-box { width: 48px; }
}