/* GENEL AYARLAR */
:root {
    --bg-color: #0f0f1a;
    --terminal-bg: #0c0c0c;
    --terminal-text: #33ff00;
    --primary-color: #e94560;
    --text-color: #fff;
    --font-retro: 'VT323', monospace;
    --font-script: 'Great Vibes', cursive;
    --font-main: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- GİRİŞ EKRANI (RETRO) --- */
#login-screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    font-family: var(--font-retro);
    z-index: 9999;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.terminal-window {
    width: 80%;
    max-width: 600px;
    background-color: var(--terminal-bg);
    border: 2px solid #333;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(51, 255, 0, 0.2);
}

.terminal-header {
    background-color: #333;
    padding: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #444;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.terminal-title {
    margin-left: auto;
    color: #ccc;
    font-size: 1rem;
}

.terminal-content {
    padding: 20px;
    color: var(--terminal-text);
    font-size: 1.5rem;
    min-height: 300px;
}

.input-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.prompt {
    margin-right: 10px;
}

#answer-input {
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: var(--font-retro);
    font-size: 1.5rem;
    outline: none;
    flex: 1;
    text-transform: lowercase; /* Cevapları küçük harfe zorla */
}

#error-message {
    color: red;
    margin-top: 10px;
    min-height: 1.5rem;
}

/* --- ANA İÇERİK --- */
#main-content {
    background: linear-gradient(to bottom, #16213e, #1a1a2e);
    min-height: 100vh;
}

/* Karşılama Bölümü */
#welcome-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.name-title {
    font-family: 'Montserrat', sans-serif; /* Daha okunaklı font */
    font-weight: 700;
    font-size: 6rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.8); /* Daha güçlü parlama */
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
    letter-spacing: 5px;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.messages-container {
    font-size: 1.2rem;
    line-height: 1.6;
}

.love-message {
    margin: 10px 0;
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
}

.love-message.tr { animation-delay: 1s; }
.love-message.uz { animation-delay: 2s; color: #aaa; font-style: italic; }

/* Scroll Göstergesi */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll 2s infinite;
}
.scroll-down span:nth-child(2) { animation-delay: .2s; }
.scroll-down span:nth-child(3) { animation-delay: .4s; }

@keyframes scroll {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(20px, 20px); }
}

/* --- ANI TÜNELİ --- */
#memory-lane {
    padding: 50px 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.memory-card {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    /* opacity: 0;  ScrollReveal kullanmazsak görünsün diye kapattım */
}

.memory-card.left { flex-direction: row; }
.memory-card.right { flex-direction: row-reverse; text-align: right; }

.img-frame {
    background: #fff;
    padding: 10px 10px 40px 10px; /* Polaroid efekti */
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    transition: transform 0.3s;
    width: 45%;
}

.memory-card.right .img-frame { transform: rotate(3deg); }
.img-frame:hover { transform: rotate(0) scale(1.05); z-index: 10; }

.img-frame img {
    width: 100%;
    display: block;
    filter: sepia(20%); /* Nostaljik hava */
    min-height: 200px; /* Görünürlük için min yükseklik */
    background-color: #eee; /* Yüklenmezse gri arka plan */
}

.note {
    width: 50%;
    padding: 0 20px;
}

.note h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-script);
    font-size: 2rem;
}

/* --- ZAMAN SAYACI --- */
#counter-section {
    padding: 50px 20px;
    text-align: center;
    background-color: rgba(255,255,255,0.05);
}

#counter-section h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.counters-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.counter-box {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 10px;
    min-width: 200px;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    color: #4cd137;
}

.sub-text {
    font-size: 0.9rem;
    color: #ccc;
    font-style: italic;
}

.heart-divider {
    font-size: 2rem;
    color: var(--primary-color);
    animation: beat 1s infinite;
}

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

/* --- GİZLİ NOT --- */
#secret-section {
    padding: 100px 20px;
    text-align: center;
}

#love-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: var(--font-main);
}

#love-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(233, 69, 96, 0.4);
}

#secret-letter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.hidden { display: none !important; }

.letter-content {
    background: #fff;
    color: #333;
    padding: 40px;
    max-width: 900px; /* Genişliği artırdım */
    width: 90%;
    max-height: 90vh; /* Çok uzun olursa scroll olsun */
    overflow-y: auto;
    border-radius: 5px;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
    background-image: url('https://www.transparenttextures.com/patterns/paper.png'); /* Kağıt dokusu */
    transform: rotate(0deg); /* Düz dursun */
}

.letter-columns {
    display: flex;
    gap: 30px;
    justify-content: space-between;
}

.letter-column {
    flex: 1;
    text-align: left; /* Şiir gibi dursun */
}

.letter-column h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    font-family: var(--font-script);
    font-size: 2rem;
}

.letter-divider {
    width: 1px;
    background-color: #ddd;
    margin: 0 10px;
}

/* Mobil için mektup ayarı */
@media (max-width: 768px) {
    .letter-columns {
        flex-direction: column;
    }
    .letter-divider {
        display: none;
    }
    .letter-column {
        margin-bottom: 30px;
        text-align: center;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .name-title { font-size: 4rem; }
    .memory-card, .memory-card.right { flex-direction: column; text-align: center; }
    .img-frame, .note { width: 100%; }
    .note { margin-top: 20px; }
    .counters-wrapper { flex-direction: column; }
}
