/* ==============================================
   1. GENEL AYARLAR & RENKLER (Yumuşak, Sıcak Romantik)
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    --bg-gradient-warm: linear-gradient(to right top, #ffd1d1, #ffc5d9, #e8c4e4, #c9c6e3, #b8c8d9);
    --text-dark: #4a4a4a;
    --text-muted: #737373;
    --accent-color: #ff6b81; /* Sevimli pembe */
    --accent-hover: #ff4757;
    --card-bg: rgba(255, 255, 255, 0.65);
    
    --font-heading: 'Dancing Script', cursive;
    --font-body: 'Quicksand', sans-serif;
}

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

body {
    background-image: var(--bg-gradient-warm);
    background-attachment: fixed;
    color: var(--text-dark);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

/* ==============================================
   2. GİRİŞ EKRANI (Sevimli Kilit Ekranı)
   ============================================== */
.login-screen {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-gradient-warm);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease, visibility 1s;
}

.login-screen.fade-out {
    opacity: 0; visibility: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(255, 107, 129, 0.15);
    max-width: 400px;
    width: 90%;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.heart-lock {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: bounceHeart 2s infinite;
}

@keyframes bounceHeart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-card h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

input[type="password"] {
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid #ffe0e6;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    color: var(--text-dark);
    transition: border-color 0.3s;
}

input[type="password"]:focus {
    border-color: var(--accent-color);
}

.cute-btn {
    background: var(--accent-color);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.3);
    transition: all 0.3s;
}

.cute-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 107, 129, 0.4);
}

.error-msg {
    margin-top: 15px;
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==============================================
   3. ANA İÇERİK
   ============================================== */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* Müzik Butonu */
.music-btn {
    position: fixed;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
    border: 2px solid white;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--accent-color);
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.music-btn:hover {
    transform: scale(1.05);
}

/* Karşılama ve Sayaç */
.hero-header {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 2px solid rgba(255,255,255,0.8);
}

.hero-header h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.hero-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.counter-box {
    display: inline-flex;
    gap: 20px;
    background: #fff;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block span {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.time-block label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* ==============================================
   4. POLAROID/SCRAPBOOK GALERİ
   ============================================== */
.scrapbook-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 60px;
}

.polaroid {
    background: #fff;
    padding: 15px 15px 30px 15px;
    border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    width: 300px;
    transform: rotate(calc(var(--r) * 1deg));
    transition: transform 0.3s, box-shadow 0.3s, z-index 0s;
    position: relative;
    cursor: default;
}

.polaroid:nth-child(1) { --r: -3; }
.polaroid:nth-child(2) { --r: 2; margin-top: 30px; }
.polaroid:nth-child(3) { --r: -1; }
.polaroid:nth-child(4) { --r: 4; margin-top: 10px; }

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Bant Görünümü */
.tape {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%) rotate(calc(var(--r) * -2deg));
    width: 100px; height: 35px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
    z-index: 2;
}

.polaroid-img {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    border-radius: 3px;
    margin-bottom: 15px;
}

.polaroid h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--accent-color);
    text-align: center;
    line-height: 1;
}

.polaroid p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Metin Kartı (Daha Geniş) */
.note-card {
    background: #fff9e6;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    margin: 40px auto;
    text-align: center;
    position: relative;
}

.note-card::before {
    content: "📌";
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
}

.note-card p {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-dark);
    line-height: 1.2;
}

/* ==============================================
   5. MEKTUP KISMI
   ============================================== */
.letter-section {
    text-align: center;
    margin-bottom: 80px;
}

/* ==============================================
   6. MEKTUP MODAL (Zarf Şeklinde Açılış Hissi)
   ============================================== */
.letter-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.5s;
}

.letter-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.paper {
    background: #fcfaf0; /* Eski kağıt rengi */
    width: 100%;
    max-width: 550px;
    padding: 50px 40px;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    /* Çizgili defter efekti */
    background-image: repeating-linear-gradient(transparent, transparent 31px, #e0e0e0 32px);
    background-size: 100% 32px;
    line-height: 32px;
}

.close-btn {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none;
    font-size: 2rem; color: #888;
    cursor: pointer;
}

.paper h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    text-align: center;
}

.paper p {
    font-size: 1.1rem;
    color: #444;
}

.paper .signature {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    margin-top: 30px;
}

/* ==============================================
   7. ANİMASYONLAR VE EFEKTLER (Yumuşak)
   ============================================== */
.ambient-particles {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Tatlı Kalpler Düşüyor */
.cute-particle {
    position: absolute;
    top: -50px;
    color: rgba(255, 107, 129, 0.4);
    font-size: 20px;
    animation: floatDown linear infinite;
}

@keyframes floatDown {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Tıklama Işıltıları / Kalpleri */
.cute-sparkle {
    position: absolute;
    pointer-events: none;
    z-index: 9999;
    font-size: 24px;
    animation: popSparkle 0.8s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes popSparkle {
    0% { transform: translate(0, 0) scale(0); opacity: 1; }
    100% { 
        transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot)); 
        opacity: 0; 
    }
}

/* ==============================================
   8. BİZİM HİKAYEMİZ (Zaman Çizelgesi)
   ============================================== */
.timeline-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    border-left: 3px dashed var(--accent-color);
    margin-left: 20px;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.timeline-item::before {
    content: "❤️";
    position: absolute;
    left: -48px;
    top: 20px;
    font-size: 1.5rem;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-date {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.timeline-item p {
    color: var(--text-muted);
}

/* ==============================================
   9. 'NEDEN SENİ SEVİYORUM?' (İnteraktif Jeneratör)
   ============================================== */
.reasons-container {
    text-align: center;
    margin: 80px auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: 50px 20px;
    border-radius: 30px;
    max-width: 700px;
    border: 2px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.reasons-container h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.reason-text {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-dark);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 20px;
    transition: opacity 0.3s;
}

.magic-btn {
    background: linear-gradient(45deg, #ff6b81, #ff4757);
    color: white;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 129, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.magic-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(255, 107, 129, 0.4);
}

/* ==============================================
   10. MÜZİK (Plak Döndürme Efekti)
   ============================================== */
.vinyl-player {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.9);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 100;
    cursor: pointer;
    transition: transform 0.3s;
}

.vinyl-player:hover {
    transform: scale(1.05);
}

.vinyl-disc {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 50%;
    border: 3px solid #333;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: spin 3s linear infinite;
    animation-play-state: paused;
}

.vinyl-disc.playing {
    animation-play-state: running;
}

.vinyl-center {
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 50%;
    border: 2px solid #fff;
}

.vinyl-text {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Eski müzik butonunu gizleyelim */
.music-btn {
    display: none !important;
}

/* ==============================================
   11. SİHİRLİ İMLEÇ (Cursor Trail)
   ============================================== */
.cursor-trail {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 16px;
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(255, 107, 129, 0.5));
    animation: fadeSizeDown 0.8s ease forwards;
}

@keyframes fadeSizeDown {
    0% { transform: scale(1) translateY(0); opacity: 0.8; }
    100% { transform: scale(0.2) translateY(20px); opacity: 0; }
}

/* ==============================================
   12. İLK KONUŞMAMIZ (Chat Arayüzü)
   ============================================== */
.chat-section {
    max-width: 500px;
    margin: 80px auto;
    padding: 0 20px;
}

.chat-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 20px;
}

.phone-mockup {
    background: #f0f0f5;
    border-radius: 40px;
    padding: 20px 15px;
    border: 10px solid #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.phone-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #333;
}

.chat-bubble {
    max-width: 80%;
    margin-bottom: 15px;
    padding: 12px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    clear: both;
    animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
}

@keyframes bubblePop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.chat-bubble.received {
    float: left;
    background: #e5e5ea;
    color: #000;
    border-bottom-left-radius: 5px;
}

.chat-bubble.sent {
    float: right;
    background: #007aff;
    color: #fff;
    border-bottom-right-radius: 5px;
}

.chat-bubble.sent.pink {
    background: var(--accent-color);
}

.timestamp {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.7;
    text-align: right;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}

/* ==============================================
   13. FOTOĞRAF KAYDIRICISI (Carousel)
   ============================================== */
.carousel-section {
    margin: 80px auto;
    max-width: 900px;
    padding: 0 20px;
}

.carousel-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    background: #fff;
    padding: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.carousel-caption {
    margin-top: 20px;
    text-align: center;
}

.carousel-caption h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-color);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    color: var(--accent-color);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: background 0.3s, transform 0.3s;
}

.carousel-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

/* ==============================================
   14. GELECEK HAYALLERİMİZ (Bucket List)
   ============================================== */
.bucket-list-section {
    max-width: 600px;
    margin: 80px auto;
    padding: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.bucket-list-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 30px;
}

.bucket-list {
    list-style: none;
    font-size: 1.2rem;
    line-height: 1.8;
}

.bucket-list li {
    margin-bottom: 15px;
    padding-left: 35px;
    position: relative;
    color: var(--text-dark);
}

.bucket-list li::before {
    content: "🤍";
    position: absolute;
    left: 0;
    top: 0;
}

.bucket-list li.checked {
    text-decoration: line-through;
    color: var(--text-muted);
}

.bucket-list li.checked::before {
    content: "❤️";
}

/* ==============================================
   15. AŞK ÇİÇEĞİMİZ (Growing Flower)
   ============================================== */
.flower-section {
    max-width: 400px;
    margin: 80px auto;
    padding: 30px;
    text-align: center;
    background: rgba(255,255,255,0.8);
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.flower-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
}

.flower-subtitle {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.flower-pot {
    position: relative;
    height: 120px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.flower-plant {
    font-size: 3rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom center;
}

.pot {
    font-size: 4rem;
    z-index: 2;
    margin-top: -10px;
}

.flower-controls {
    margin: 20px 0;
}

.flower-level-text {
    font-weight: 700;
    color: var(--accent-color);
}

/* ==============================================
   16. AŞK ÖLÇER MİNİ OYUNU
   ============================================== */
.love-meter-section {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px 20px;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.5);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.love-meter-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.love-meter-subtitle {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Kalbin dış çerçevesi */
.meter-heart-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px auto;
    position: relative;
    /* Kalp maskesi CSS ile (clip-path veya mask-image ile SVG kullanılır) */
    mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    mask-size: cover;
    mask-position: center;
    mask-repeat: no-repeat;
    /* Webkit uyumluluğu */
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>');
    -webkit-mask-size: cover;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    
    background: #e0e0e0;
    overflow: hidden;
}

[data-theme="dark"] .meter-heart-container {
    background: #333;
}

/* Kalbin içi, yavaş yavaş yükselir */
.meter-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%; /* JS ile %100'e çıkarılacak */
    background: linear-gradient(to top, #ff2a5f, var(--accent-color));
    transition: height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.love-meter-message {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 20px;
    min-height: 30px;
}

/* ==============================================
   16. BUGÜN NE YAPSAK (Öneri Motoru) 🎁
   ============================================== */
.random-date-section {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px 20px;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.date-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
}

.date-subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.date-result-box {
    min-height: 80px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: inset 0 3px 10px rgba(0,0,0,0.05);
    border: 1px dashed var(--accent-color);
}

.date-result-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.date-result-box.shake {
    animation: bounceShake 0.5s ease;
}

@keyframes bounceShake {
    0% { transform: scale(1) rotate(0); }
    25% { transform: scale(1.05) rotate(-3deg); }
    50% { transform: scale(1.05) rotate(3deg); }
    75% { transform: scale(1.05) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* ==============================================
   17. BİZİM ŞARKIMIZ (Daktilo Efekti) 🖋️
   ============================================== */
.lyrics-section {
    max-width: 600px;
    margin: 80px auto;
    padding: 40px 30px;
    background: #fffdf5; /* Eski kağıt rengi */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    border-left: 5px solid #d4a373;
}

.lyrics-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #d4a373;
    margin-bottom: 20px;
    text-align: left;
}

.typewriter-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
    min-height: 200px;
}

.typewriter-text::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* 3D PARALLAX SINIFI */
.data-parallax {
    transition: transform 0.1s linear;
}

/* ==============================================
/* ==============================================
   18. BOOTH FOTOĞRAF KABİNİ 📸
   ============================================== */
.photo-booth-section {
    max-width: 500px;
    margin: 80px auto;
    text-align: center;
    padding: 20px;
}

.booth-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.booth-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.booth-strip {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: rotate(-2deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 280px;
    margin: 0 auto 50px auto;
    border: 1px solid #eaeaea;
}

.booth-strip:hover {
    transform: scale(1.05) rotate(0deg);
}

.booth-photo {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
    /* Eski fotoğraf efekti için sepia veya grayscale eklenebilir ama canlı tutacağım */
}

.booth-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(30%) contrast(1.1);
}

/* ==============================================
   18.5 DİLEK FENERİ 🏮 (Animasyon Eklemesi)
   ============================================== */
.lantern-btn {
    margin-top: 10px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: 2px solid #ff9a9e;
}

.lantern-btn:hover {
    background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%);
}

.lantern {
    position: fixed;
    bottom: -100px;
    width: 60px;
    height: 80px;
    background: rgba(255, 178, 102, 0.8);
    border-radius: 50% 50% 10% 10%;
    box-shadow: 0 0 30px rgba(255, 178, 102, 1), inset 0 0 20px rgba(255, 204, 0, 1);
    animation: floatUp infinite linear;
    z-index: 1000;
    pointer-events: none;
}

/* Fenerin Ateşi */
.lantern::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 15px;
    background: radial-gradient(ellipse at center, #fff 0%, #ffcc00 50%, #ff5500 100%);
    border-radius: 50%;
    filter: blur(2px);
    animation: flicker 0.2s infinite alternate;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(15deg); opacity: 0; }
}

@keyframes flicker {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

/* ==============================================
   19. ZAMAN KAPSÜLÜ ⏳
   ============================================== */
.time-capsule-section {
    max-width: 600px;
    margin: 80px auto;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    text-align: center;
    padding: 40px 20px;
}

.capsule-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
}

.capsule-subtitle {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.capsule-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

.capsule-lock {
    font-size: 4rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
}

.countdown-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 15px;
    letter-spacing: 2px;
    border: 2px solid #ddd;
}

.capsule-hint {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* ==============================================
   20. GİZLİ HAZİNE SANDIĞI 🎁
   ============================================== */
.treasure-section {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.treasure-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
}

.treasure-subtitle {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.treasure-box {
    font-size: 8rem;
    cursor: pointer;
    transition: transform 0.3s;
    margin-bottom: 30px;
}

.treasure-box:hover {
    transform: scale(1.1);
}

.treasure-box.shake {
    animation: tremble 0.5s ease;
}

@keyframes tremble {
    0% { transform: translate(0, 0) rotate(0); }
    20% { transform: translate(-5px, 0) rotate(-5deg); }
    40% { transform: translate(5px, 0) rotate(5deg); }
    60% { transform: translate(-5px, 0) rotate(-5deg); }
    80% { transform: translate(5px, 0) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0); }
}

.treasure-input-area input {
    width: 80%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    margin-bottom: 15px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.treasure-input-area input:focus {
    border-color: var(--accent-color);
}

.treasure-question {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.treasure-secret {
    background: linear-gradient(to right, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    padding: 30px;
    border-radius: 20px;
    color: #444;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 30px;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.5);
    animation: fadeIn 1s ease forwards;
}

.treasure-secret h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #d63031;
    margin-bottom: 15px;
}

/* ==============================================
   20. RUH EŞİ TARAYICISI ☝️
   ============================================== */
.soulmate-section {
    max-width: 600px;
    margin: 80px auto;
    text-align: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    padding: 40px 20px;
}

.soulmate-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--accent-color);
}

.soulmate-subtitle {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.fingerprint-scan-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fingerprint-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--accent-light);
    box-shadow: 0 0 30px rgba(255, 154, 158, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.fingerprint-btn:active, .fingerprint-btn.scanning {
    transform: scale(0.95);
    box-shadow: 0 0 50px rgba(255, 107, 129, 0.8), inset 0 0 20px rgba(255, 107, 129, 0.5);
    border-color: var(--accent-hover);
}

.finger-icon {
    font-size: 4rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
    user-select: none;
}

.fingerprint-btn.scanning .finger-icon, .fingerprint-btn.success .finger-icon {
    filter: hue-rotate(-50deg) saturate(3); /* Kırmızımsı pembe kalbe dönmesi için */
}

.fingerprint-btn.success {
    background: var(--accent-light);
    border-color: #fff;
}

.scan-progress-bar {
    width: 80%;
    height: 15px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #ddd;
}

.scan-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff9a9e, #fecfef);
    transition: width 0.1s linear;
}

.scan-result-text {
    font-weight: bold;
    font-size: 1.3rem;
    color: var(--accent-hover);
    margin-top: 10px;
    animation: fadeIn 0.5s ease forwards;
}

/* ==============================================
   21. MÜHÜRLÜ AŞK MEKTUBU 💌
   ============================================== */
.sealed-letter-section {
    max-width: 600px;
    margin: 100px auto;
    text-align: center;
}

.sealed-letter-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
}

.sealed-letter-subtitle {
    margin-bottom: 50px;
    color: var(--text-muted);
}

.envelope-container {
    perspective: 1000px;
    width: 400px;
    height: 250px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s;
}

.envelope-container:hover {
    transform: translateY(-5px);
}

.envelope {
    width: 100%;
    height: 100%;
    background: #e1c09f;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #cfa882;
    overflow: visible;
}

/* Zarfın üst kapağı */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 198px solid transparent;
    border-right: 198px solid transparent;
    border-top: 150px solid #d4a983; /* Flap rengi */
    transform-origin: top;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Kırmızı Mum Mühür */
.envelope-wax-seal {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    z-index: 6;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    user-select: none;
}

.envelope-wax-seal.broken {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

/* İçinden Çıkan Mektup Kağıdı */
.the-letter {
    position: absolute;
    bottom: 5px;
    width: 90%;
    background: #fffdf5;
    padding: 30px 20px;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    z-index: 4; /* Flapın altında, zarfın içinde */
    transition: transform 0.8s ease, z-index 0s 0.6s;
    text-align: left;
    max-height: 200px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none; /* Açılmadan tıklanamasın */
}

.the-letter h3 {
    font-family: var(--font-heading);
    color: var(--accent-hover);
    margin-bottom: 10px;
}

.the-letter p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

.letter-signature {
    margin-top: 15px;
    font-style: italic;
    font-weight: bold;
    text-align: right;
    color: var(--accent-color) !important;
}

/* Açılış Durumu Class'ları */
.envelope-container.opened .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1; /* Arkaya at */
}

.envelope-container.opened .the-letter {
    transform: translateY(-260px) scale(1.05); /* Yukarı çık ve hafif büyü */
    z-index: 10;
    opacity: 1;
    max-height: 550px; /* İçeriğin tamamı görünsün */
    overflow-y: auto; /* Yazı uzunsa kaydırılabilsin */
    pointer-events: auto;
}

/* Güzel Scrollbar (Mektup içi) */
.the-letter::-webkit-scrollbar {
    width: 6px;
}
.the-letter::-webkit-scrollbar-track {
    background: transparent;
}
.the-letter::-webkit-scrollbar-thumb {
    background-color: var(--accent-light);
    border-radius: 10px;
}

/* Kâğıt Teması (Mektup için) */
.paper-style {
    background-color: #fdf5e6;
    background-image: repeating-linear-gradient(transparent, transparent 31px, rgba(0,0,0,0.1) 31px, rgba(0,0,0,0.1) 32px);
    line-height: 32px;
    background-attachment: local;
    color: #4a4a4a;
}

.paper-style h2 {
    font-family: var(--font-heading);
    color: var(--accent-hover);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-light);
    padding-bottom: 10px;
    font-size: 2rem;
}

.paper-style p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    margin-bottom: 32px; /* satır boşluklarıyla tam eşleşmesi için */
    line-height: 32px;
}

.paper-style .signature {
    text-align: right;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 30px;
}
