/* YENİ: GİRİŞ EKRANI STİLLERİ */
#login-ekrani {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001; /* Her şeyin üstünde */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Arka planı hafifçe karart (body'deki gradyanı bozmadan) */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: opacity 0.5s ease-out; /* Gizlenme efekti için */
}

.login-kutusu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.5);
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.login-kutusu h2 {
    font-family: 'Dancing Script', cursive;
    color: #d32f2f;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.login-kutusu p {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 20px;
}

#sifre-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ddd;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 5px; /* Pin kodu gibi dursun */
}

#giris-butonu {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.2rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
    font-weight: 600;
}
#giris-butonu:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255,107,107,0.5);
}

#hata-mesaji {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 0; /* Alttaki boşluğu sıfırla */
}

.gizli {
    display: none;
}

/* Hatalı şifre için "sallanma" animasyonu */
.shake {
    animation: shake-anim 0.5s;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
}
/* --- GİRİŞ EKRANI STİLLERİ BİTTİ --- */


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

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    color: #333;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Romantik Partiküller */
.particle {
    position: fixed;
    pointer-events: none;
    animation: float 10s infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 3D Kalpler */
.floating-heart {
    position: fixed;
    font-size: 2rem;
    opacity: 0.3;
    animation: heartFloat 8s infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes heartFloat {
    0%, 100% { 
        transform: translate(0, 0) scale(0.8) rotate(0deg);
        opacity: 0;
    }
    50% { 
        opacity: 0.6;
        transform: translate(50px, -100vh) scale(1.2) rotate(180deg);
    }
}

/* Işıltı Efektleri */
.sparkle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #fff 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleAnim 3s infinite;
    box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #ffd700;
    pointer-events: none;
    z-index: 2;
}

@keyframes sparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0) translateY(0); }
    50% { opacity: 1; transform: scale(2) translateY(-30px); }
}

.s1 { top: 10%; left: 15%; animation-delay: 0s; }
.s2 { top: 50%; left: 80%; animation-delay: 1s; }
.s3 { top: 80%; left: 10%; animation-delay: 2s; }
.s4 { top: 20%; left: 90%; animation-delay: 3s; }
.s5 { top: 60%; left: 40%; animation-delay: 0.5s; }
.s6 { top: 30%; left: 60%; animation-delay: 1.5s; }
.s7 { top: 70%; left: 70%; animation-delay: 2.5s; }
.s8 { top: 40%; left: 25%; animation-delay: 3.5s; }

/* Ana Container */
.container {
    width: 100%;
    max-width: 590px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Başlık */
h1 {
    font-family: 'Dancing Script', cursive;
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 0 0 20px rgba(255,255,255,0.8), 
                 0 0 40px rgba(255,105,180,0.6),
                 0 0 60px rgba(255,105,180,0.4);
    margin-bottom: 20px;
    animation: titlePulse 2s ease-in-out infinite;
}

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

/* İstatistik Paneli */
.stats-panel {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    gap: 10px;
}

.stat-box {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 10px 15px;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    flex: 1;
    transition: all 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255,255,255,0.2);
}

.stat-box h3 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-box p {
    color: #ffd700;
    font-size: 1.5rem;
    font-weight: 600;
}

/* İlerleme Çubuğu */
.progress-container {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid rgba(255,255,255,0.3);
}

.progress-bar {
    background: rgba(255,255,255,0.3);
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #ff6b6b, #ffd700, #ff6b6b);
    background-size: 200% 100%;
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    animation: shimmer 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Anı Kutusu */
.ani-kutusu {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3),
                inset 0 0 20px rgba(255,255,255,0.5);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    border: 3px solid rgba(255,255,255,0.5);
}

.ani-kutusu.gizli {
    opacity: 0;
    transform: scale(0.9) rotateY(90deg);
}

/* Jackpot Animasyonu */
.ani-kutusu.jackpot {
    animation: jackpotExplosion 1.5s ease-out;
}

@keyframes jackpotExplosion {
    0% { 
        transform: scale(1); 
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    25% { 
        transform: scale(1.1) rotate(5deg); 
        box-shadow: 0 0 50px #ff0000, 0 0 100px #ff0000;
    }
    50% { 
        transform: scale(0.95) rotate(-5deg); 
        box-shadow: 0 0 80px #ffd700, 0 0 120px #ffd700;
    }
    75% { 
        transform: scale(1.05) rotate(3deg); 
        box-shadow: 0 0 50px #ff0000, 0 0 100px #ff0000;
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
}

/* Medya Container */
.medya-container {
    width: 100%;
    min-height: 220px;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
}

.medya-container img,
.medya-container video {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s;
}

.medya-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* Metin Alanı */
#ani-metni {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2c3e50;
    flex-grow: 1;
    min-height: 80px;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Kontrol Paneli */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Kalp Butonu */
#ani-butonu {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    border: none;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transform: scale(1);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(255,107,107,0.5),
                inset 0 -5px 10px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

#ani-butonu::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#ani-butonu:hover::before {
    width: 300px;
    height: 300px;
}

#ani-butonu:hover {
    transform: scale(1.15);
    box-shadow: 0 15px 40px rgba(255,107,107,0.7);
}

#ani-butonu:active {
    transform: scale(0.95);
}

/* Yan Butonlar */
.side-btn {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.side-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

/* Favori Butonu */
#fav-butonu {
    color: #ffd700;
}

#fav-butonu.active {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    animation: heartBeat 0.5s;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

/* Müzik Butonu */
#muzik-butonu {
    color: #ff6b6b;
}

#muzik-butonu.playing {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Konfeti Container */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Modal için Zoom */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    box-shadow: 0 0 50px rgba(255,255,255,0.3);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg);
    color: #ff6b6b;
}

/* Kalp Yağışı */
.heart-rain {
    position: fixed;
    pointer-events: none;
    font-size: 1.5rem;
    animation: rainFall 2s linear forwards;
    z-index: 9999;
}

@keyframes rainFall {
    to {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Mobil Optimizasyon */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .ani-kutusu { padding: 20px; min-height: 350px; }
    #ani-butonu { width: 70px; height: 70px; font-size: 2.5rem; }
    .side-btn { width: 50px; height: 50px; font-size: 1.5rem; }
    .stat-box h3 { font-size: 0.75rem; }
    .stat-box p { font-size: 1.2rem; }
}