@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- 1. TEMEL AYARLAR VE DEĞİŞKENLER --- */
:root {
    --bg-color: #101119;
    --surface-color: #1c1c2b;
    --primary-color: #a855f7;
    --accent-color: #2dd4bf;
    --pink-color: #f472b6;
    --orange-color: #fb923c;
    --text-color: #e0e0e0;
    --text-muted: #94a3b8;
    --live-color: #4ade80;
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}
/* DİL DEĞİŞTİRME BUTONLARI */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 100;
}
.lang-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}
.lang-btn.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}


/* AÇILIR REHBER (MODAL) PENCERESİ */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.open {
    display: flex; /* Görünür yap */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}
#open-guide-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}
#open-guide-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}
/* --- 2. ARKA PLAN EFEKTLERİ --- */
.background-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.4; will-change: transform; animation: move1 25s infinite alternate; }
.blob1 { width: 400px; height: 400px; background: var(--primary-color); top: -100px; left: -100px; animation-name: move1; }
.blob2 { width: 500px; height: 500px; background: var(--accent-color); bottom: -150px; right: -150px; animation-name: move2; animation-duration: 30s; }
.blob3 { width: 300px; height: 300px; background: var(--pink-color); top: 50%; right: -150px; animation-name: move3; animation-duration: 28s; }
.blob4 { width: 350px; height: 350px; background: var(--orange-color); bottom: 50%; left: -100px; animation-name: move4; animation-duration: 22s; }
@keyframes move1 { from { transform: translate(0, 0) scale(1) rotate(0deg); } to { transform: translate(20vw, 30vh) scale(1.2) rotate(180deg); } }
@keyframes move2 { from { transform: translate(0, 0) scale(1.2) rotate(0deg); } to { transform: translate(-30vw, -20vh) scale(0.8) rotate(-180deg); } }
@keyframes move3 { from { transform: translate(0, 0) scale(0.8) rotate(0deg); } to { transform: translate(-20vw, -30vh) scale(1.1) rotate(180deg); } }
@keyframes move4 { from { transform: translate(0, 0) scale(1.1) rotate(0deg); } to { transform: translate(30vw, 20vh) scale(0.9) rotate(-180deg); } }

/* --- 3. ANA YAPI VE BAŞLIK --- */
.main-container { width: 100%; max-width: 960px; text-align: center; background: rgba(16, 17, 25, 0.5); padding: 40px; border-radius: 24px; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid var(--border-color); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); z-index: 1; animation: fadeIn 1s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
header h1 { font-size: 3em; font-weight: 700; margin-bottom: 8px; background: linear-gradient(45deg, var(--text-color), var(--accent-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
header p { font-size: 1.1em; color: var(--text-muted); margin-bottom: 30px; }

/* Hatalı Giriş Animasyonu */
@keyframes blink-error {
    50% { 
        border-color: #fb923c; /* Turuncu */
        box-shadow: 0 0 10px #fb923c;
    }
}

.input-error {
    animation: blink-error 1s infinite;
}
/* DİL DEĞİŞTİRME BUTONLARI */
.language-switcher {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 100;
}
.lang-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}
.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}
.lang-btn.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}


/* AÇILIR REHBER (MODAL) PENCERESİ */
.modal {
    display: none; /* Varsayılan olarak gizli */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal.open {
    display: flex; /* Görünür yap */
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--surface-color);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: slideIn 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close-btn {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    transition: color 0.3s ease;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
    color: var(--accent-color);
    text-decoration: none;
    cursor: pointer;
}
#open-guide-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}
#open-guide-btn:hover {
    background: var(--accent-color);
    color: var(--bg-color);
}