@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Playwrite+DE+SAS:wght@100..400&display=swap');

/* Yeni Romantic Vurgu Rengi */
:root {
    --primary-color: #FAEAB1;
    --white-color: #FAF8F1;
    --blue-color: #34656D;
    --dark-blue-color: #334443;
    --romantic-pink: #D98880; 
}

/* --- YENİ: PRELOADER VE KALP ŞEKLİ --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.heart-shape {
    width: 100px;
    height: 100px;
    background-color: var(--romantic-pink);
    position: relative;
    transform: rotate(-45deg); /* Kareyi kalp formuna dönüştür */
}

.heart-shape::before,
.heart-shape::after {
    content: "";
    background-color: var(--romantic-pink);
    border-radius: 50%;
    height: 100px;
    width: 100px;
    position: absolute;
    /* Kalbin üst yuvarlak kısımları */
}

.heart-shape::before {
    top: -50px;
    left: 0;
}

.heart-shape::after {
    left: 50px;
    top: 0;
}


.love-letter {
    min-height: auto;
    padding: 80px 5%;
    background-color: var(--romantic-pink);
    color: var(--white-color);
    font-family: "DM Sans", sans-serif;
    text-align: left;
    max-width: 900px;
    margin: 50px auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.love-letter h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-blue-color);
}

.love-letter p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--white-color);
    background: none; 
}

.photo-gallery a {
    text-decoration: none; 
}

@media (max-width: 768px) {
    .love-letter {
        margin: 30px 10px;
        padding: 40px 20px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    font-family: "DM Sans", sans-serif;
    color: var(--dark-blue-color);
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* --- HERO SECTION --- */
.hero {
    background-color: var(--primary-color);
}

.hero h1 {
    font-family: "Playwrite DE SAS", cursive;
    font-size: clamp(2rem, 5vw, 4.5rem); 
    color: var(--dark-blue-color);
    margin-bottom: 20px;
    margin-top: 20px;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--blue-color);
    font-family: "Playwrite DE SAS", cursive;
    margin-bottom: 40px;
}

/* Kalp Animasyonu */
.pulsating-heart {
    font-size: 5rem;
    color: var(--romantic-pink);
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* --- COUNTER SECTION --- */
.counter-div {
    padding: 50px 20px;
}

.counter-div h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--dark-blue-color);
    margin-bottom: 40px;
}

.counter-box {
    margin: 20px 0;
    padding: 20px;
    border: 2px solid var(--blue-color);
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
}

.counter-label {
    font-size: 1rem;
    color: var(--blue-color);
    margin-bottom: 10px;
}

.counter strong {
    color: var(--romantic-pink);
    font-size: 1.8rem;
    font-weight: bold;
}

.counter {
    font-size: 1.2rem;
    font-weight: normal;
}

/* --- GALLERY SECTION --- */
.gallery-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
}

.gallery-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--dark-blue-color);
    margin-bottom: 40px;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Mobil ve Masaüstü için esnek grid */
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
}

.photo-card {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: var(--blue-color);
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(52, 101, 109, 0.3); /* Mavi gölge */
    transition: transform 0.3s ease-in-out;
    overflow: hidden;
}

.photo-card:hover {
    transform: scale(1.05) rotate(1deg);
}

.photo-card span {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px;
    background-color: rgba(51, 68, 67, 0.7); /* Koyu arkaplan */
    color: var(--white-color);
    font-weight: bold;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.photo-card:hover span {
    transform: translateY(-5px);
}

/* --- ANIMASYONLAR (Giriş Efektleri) --- */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

.fade-in-title {
    animation: fadeIn 2s ease-out;
}

.fade-in-text {
    animation: fadeIn 2.5s ease-out;
}

.pop-in {
    animation: popIn 1s ease-out;
}

.slide-up {
    animation: slideUp 1s ease-out;
}

/* --- MOBİL UYUMLULUK (576px altı) --- */
@media (max-width: 576px) {
    .hero h1 {
        font-size: 10vw;
    }
    
    .pulsating-heart {
        font-size: 3rem;
    }

    .counter-div h1 {
        font-size: 8vw;
    }
    
    .counter-box {
        padding: 15px;
    }

    .counter strong {
        display: block; /* Küçük ekranlarda süre bileşenlerini alt alta koyma */
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

.language-switcher {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100;
    background-color: var(--white-color);
    padding: 8px 12px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-switcher label {
    font-size: 0.9rem;
    color: var(--blue-color);
    margin-right: 5px;
    background: none;
}

.language-switcher select {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid var(--blue-color);
    background-color: var(--white-color);
    color: var(--dark-blue-color);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Counter Section'a daha romantik bir not ekleme stili */
.sweet-note {
    margin-top: 30px;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--romantic-pink);
    animation: fadeIn 3s ease-out 1s both; /* Gecikmeli giriş */
}

/* Mobil görünümde dil seçiciyi ayarlama */
@media (max-width: 576px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 5px 8px;
    }
}

/* --- YENİ: ŞİFRELİ MEKTUP STİLLERİ --- */
.love-letter-container {
    /* Mektup ve şifre kutusunu merkezlemek için */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px;
    min-height: auto;
}

.love-letter-container h2{
    margin-bottom: 20px;
}

.pin-entry {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#pin-input {
    padding: 12px 20px;
    font-size: 1.5rem;
    text-align: center;
    width: 150px;
    border: 2px solid var(--blue-color);
    border-radius: 8px;
    background-color: var(--white-color);
}

#pin-submit {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: var(--romantic-pink);
    color: var(--white-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#pin-submit:hover {
    background-color: #c7655f; /* Daha koyu pembe */
}

.pin-hint {
    font-size: 0.9rem;
    color: var(--blue-color);
}

.error-message {
    color: var(--romantic-pink);
    font-weight: bold;
    margin-top: 5px;
    min-height: 1.2rem; /* Mesaj geldiğinde düzeni korumak için */
}

.love-letter {
    /* Mektup içeriği stilini koru, ancak başlangıçta gizli */
    max-width: 700px;
    /*... (diğer love-letter stilleri) ...*/
    padding: 40px; /* Daha küçük iç padding */
    margin: 0;
}

.hidden {
    display: none !important;
}

/* --- YENİ: MİNİ OYUN STİLLERİ --- */
.mini-game-section {
    min-height: auto;
    padding: 50px 20px;
}

.mini-game-section h2, .mini-game-section p {
    color: var(--dark-blue-color);
    margin-bottom: 15px;
}

.mini-game-section h2 {
    font-family: "Playwrite DE SAS", cursive;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.mini-game-section p {
    font-size: 1.2rem;
}

.game-options {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.game-btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px; /* Yuvarlak butonlar */
    border: 2px solid var(--blue-color);
    background-color: var(--white-color);
    color: var(--blue-color);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.game-btn:hover {
    background-color: var(--blue-color);
    color: var(--white-color);
    transform: scale(1.05);
}

.feedback-message {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--romantic-pink) !important;
}

/* --- YENİ: HAYVANLAR BÖLÜMÜ VE ANİMASYON --- */
.animal-section {
    min-height: 20vh; /* Daha küçük bir alan */
    padding: 20px;
    flex-direction: row; /* Yan yana */
    gap: 50px;
    overflow: hidden; /* Animasyonlar dışarı taşabilir */
}

.animated-animal {
    width: 150px; /* Boyutlarını ayarlayın */
    height: auto;
    cursor: pointer;
    transition: filter 0.3s;
}

.animated-animal:hover {
    filter: drop-shadow(0 0 10px var(--romantic-pink));
}

#turtle {
    /* GSAP ile özel animasyon verilecek */
}

#dolphin {
    /* GSAP ile özel animasyon verilecek */
}

/* Mobil için hayvan boyutları */
@media (max-width: 576px) {
    .animal-section {
        gap: 20px;
    }
    .animated-animal {
        width: 100px;
    }
}

.playlist-section{
    padding: 50px 20px;
    text-align: center;
}

.playlist-section-text{
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--dark-blue-color);
    margin-bottom: 30px;
}