/* Genel Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /*background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);*/
    background: linear-gradient(135deg, #59AC77 0%, #3A6F43 100%);
	/*background: linear-gradient(135deg, #71A95A 0%, #007944 100%);*/
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Ana Container */
.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Sahne Alanı */
.scene {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tavşan Görseli Wrapper */
.bunny-image-wrapper {
    position: relative;
    animation: float 3s ease-in-out infinite;
    z-index: 1;
}

.bunny-img {
    width: 100%;
    max-width: 450px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

/* Yüzme Animasyonu */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Tıklanabilir Kalp Butonu (Zarfın Üzerinde) */
.heart-clickable {
    position: absolute;
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    /* Tavşanın elindeki zarfın kalp pozisyonuna göre ayarla */
    bottom: 16.5%;
    left: 50%;
    transform: translateX(-50%);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease;
}

.heart-clickable:hover {
    transform: translateX(-50%) scale(1.1);
}

.heart-clickable:active {
    transform: translateX(-50%) scale(0.95);
}

/* Kalp Nabız Efekti */
.heart-pulse {
    position: relative;
    width: 60px;
    height: 60px;
}

/* Yuvarlak Parlayan Buton - Şeffaf */
.heart-pulse::before {
    content: '';
    position: absolute;
    top: 70%;
    left: 67%;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.9) 0%,
        rgba(255, 105, 180, 0.7) 20%,
        rgba(255, 64, 129, 0.6) 60%,
        rgba(233, 30, 99, 0.5) 100%
    );
    border-radius: 100%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 35px rgba(255, 105, 180, 0.9),
        0 0 60px rgba(255, 64, 129, 0.7),
        0 0 90px rgba(255, 64, 129, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.6);
    animation: glow-pulse 2s ease-in-out infinite;
    backdrop-filter: blur(2px);
}

/* Parlama Animasyonu */
@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 35px rgba(255, 105, 180, 0.9),
            0 0 60px rgba(255, 64, 129, 0.7),
            0 0 90px rgba(255, 64, 129, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.6);
        opacity: 0.95;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        box-shadow: 
            0 0 40px rgba(255, 105, 180, 0.95),
            0 0 70px rgba(255, 64, 129, 0.75),
            0 0 100px rgba(255, 64, 129, 0.55),
            inset 0 0 22px rgba(255, 255, 255, 0.65);
        opacity: 1;
    }
}

/* Dış Halka - Şeffaf */
.heart-pulse::after {
    content: '';
    position: absolute;
    top: 70%;
    left: 67%;
    width: 55px;
    height: 55px;
    background: radial-gradient(circle, 
        rgba(255, 105, 180, 0.3) 0%, 
        rgba(255, 105, 180, 0.15) 50%,
        transparent 100%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 1;
    }
}

/* Zarf Açılma Overlay */
.envelope-opening {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    pointer-events: none;
    transition: background 0.6s ease;
}

.envelope-opening.active {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: all;
}

/* Mektup İçeriği (Gizli) */
.letter-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
}

.letter-content.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

/* Mektup Kağıdı */
.letter-paper {
    background: linear-gradient(to bottom, #fff9f0 0%, #fffef8 100%);
    width: 90%;
    max-width: 500px;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                inset 0 0 30px rgba(255, 240, 220, 0.5);
    position: relative;
    transform: scale(0.5) translateY(100px) rotateX(-45deg);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.letter-content.active .letter-paper {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    transition-delay: 0.3s;
}

/* Kağıt Çizgileri Efekti */
.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 35px,
        rgba(255, 182, 193, 0.15) 35px,
        rgba(255, 182, 193, 0.15) 36px
    );
    pointer-events: none;
    border-radius: 15px;
}

@keyframes paper-lines {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Kapatma Butonu */
.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    font-weight: 300;
    line-height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

/* Mektup Başlık */
.letter-paper h2 {
    color: #ff1493;
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(255, 182, 193, 0.3);
}

/* Mektup Metni */
.letter-paper p {
    color: #333;
    font-size: 1.1rem;
    line-height: 2.2;
    margin-bottom: 20px;
    font-weight: 400;
    text-align: center;
}

/* İmza */
.signature {
    margin-top: 40px;
    font-style: italic;
    font-weight: 600;
    color: #ff69b4;
    text-align: right;
    font-size: 1.2rem !important;
}

/* Footer Stili */
footer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    margin-top: auto;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ff69b4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #ff1493;
    text-decoration: underline;
}

/* Responsive Tasarım - Mobile First */

/* Büyük Ekranlar */
@media (min-width: 1400px) {
    .heart-clickable {
        bottom: 16%;
        left: 50%;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .heart-clickable {
        bottom: 16.2%;
        left: 50%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .heart-clickable {
        bottom: 16.5%;
        left: 50%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 991px) {
    .heart-clickable {
        bottom: 17%;
        left: 50%;
    }
}

@media (max-width: 768px) {
    .scene {
        height: 500px;
        max-width: 500px;
    }
    
    .bunny-img {
        max-width: 350px;
    }
    
    .heart-clickable {
        width: 60px;
        height: 60px;
        bottom: 18%;
        left: 50%;
    }
    
    .heart-pulse {
        width: 50px;
        height: 50px;
    }
    
    .heart-pulse::before {
        width: 15px;
        height: 15px;
    }
    
    .heart-pulse::after {
        width: 48px;
        height: 48px;
    }
    
    .letter-paper {
        padding: 40px 30px;
    }
    
    .letter-paper h2 {
        font-size: 1.6rem;
    }
    
    .letter-paper p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .scene {
        height: 450px;
    }
    
    .bunny-img {
        max-width: 300px;
    }
    
    .heart-clickable {
        width: 55px;
        height: 55px;
        bottom: 19%;
        left: 50%;
    }
    
    .heart-pulse {
        width: 45px;
        height: 45px;
    }
    
    .heart-pulse::before {
        width: 13px;
        height: 13px;
    }
    
    .heart-pulse::after {
        width: 43px;
        height: 43px;
    }
    
    .letter-paper {
        padding: 35px 25px;
    }
    
    .letter-paper h2 {
        font-size: 1.4rem;
    }
    
    .letter-paper p {
        font-size: 0.95rem;
    }
}
