:root {
    --primary-red: #8e0e00;
    --secondary-red: #1f1c18;
    --gold: #ffd700;
    --text-light: #f1f1f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle, #4a0000 0%, #1a0000 100%);
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Giriş Ekranı (Overlay) */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://www.transparenttextures.com/patterns/stardust.png');
}

.login-box {
    text-align: center;
    background: rgba(142, 14, 0, 0.3);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--primary-red);
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    max-width: 90%;
    width: 400px;
}

.login-box h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--primary-red);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
    margin-bottom: 20px;
    /* Metin rengini belirginleştirmek için */
    color: #ff3f3f; 
}

#pass-input {
    padding: 10px;
    border-radius: 5px;
    border: none;
    margin-top: 20px;
    width: 80%;
    font-size: 1rem;
    text-align: center;
}

#error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
    display: none; /* Başlangıçta gizli */
}

#enter-btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: linear-gradient(45deg, #8e0e00, #ff0000);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

#enter-btn:hover {
    transform: scale(1.05);
}

/* Ana İçerik */
.main-content {
    opacity: 0; /* Giriş yapılana kadar gizli */
    transition: opacity 1.5s ease-in;
    padding-bottom: 50px;
    position: relative;
    z-index: 10;
}

/* Kalp Efektleri - Optimize Edilmiş */
.heart {
    position: fixed;
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
    font-size: 20px;
    z-index: 1;
    pointer-events: none;
    will-change: transform; /* Performans için kritik */
    animation: fall linear forwards;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.glow-text {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
}

.heart-icon {
    color: #ff0000;
    animation: beat 1s infinite;
    display: inline-block;
}

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Sayaç */
.counter-wrapper {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}

#timer {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.time-unit {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    color: #aaa;
}

.time-unit span {
    font-size: 2rem;
    font-weight: bold;
    color: var(--gold);
}

/* Sözler */
.quote-section {
    text-align: center;
    padding: 40px 20px;
}

.quote-card {
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.6;
}

.romantic-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.romantic-btn:hover {
    background: var(--gold);
    color: #000;
}

/* Fotoğraf */
.gallery {
    text-align: center;
    padding: 30px;
}

.polaroid {
    width: 250px;
    border: 10px solid #fff;
    border-bottom: 40px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    transition: transform 0.3s;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Video */
.video-section {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    padding: 0 20px;
}

.video-section h3 {
    margin-bottom: 20px;
    color: var(--gold);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Oran */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid #333;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Mobil Ayarlar */
@media (max-width: 600px) {
    .glow-text { font-size: 2.5rem; }
    .video-section { margin: 30px auto; }
}
/* --- Anılar ve Fotoğraf Kartları --- */
.memories-section {
    padding: 50px 20px;
    text-align: center;
}

.memories-section h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.memories-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.polaroid-card {
    background: #fff;
    padding: 15px 15px 50px 15px; /* Alt boşluk yazı için geniş tutuldu */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 300px;
    transform: rotate(-3deg); /* Hafif sola yatık */
    transition: all 0.4s ease;
    position: relative;
    border-radius: 2px;
}

/* Her kartın üzerine gelince düzelip büyüsün */
.polaroid-card:hover {
    transform: rotate(0deg) scale(1.1);
    z-index: 10;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

/* İkinci kartı sağa yatıralım ki dağınık/doğal dursun */
.polaroid-card.rotate-right {
    transform: rotate(3deg);
}
.polaroid-card.rotate-right:hover {
    transform: rotate(0deg) scale(1.1);
}

.photo-frame {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #000;
    margin-bottom: 15px;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption {
    font-family: 'Great Vibes', cursive; /* El yazısı fontu */
    color: #333; /* Beyaz kağıt üstüne koyu yazı */
    font-size: 1.5rem;
    line-height: 1.2;
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 0 10px;
}

/* Mobil için ayar */
@media (max-width: 600px) {
    .memories-grid {
        gap: 60px; /* Mobilde kartlar birbirine girmesin */
    }
    .polaroid-card {
        width: 100%;
        max-width: 320px;
    }
}