/* header.css - TK Game Studios Precision Alignment */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px; /* Kenar boşluğu 60px yapıldı */
    height: 80px;
    background-color: #0a0a0a;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
    width: 100%;
}

.nav-left, .nav-right { 
    display: flex; 
    align-items: center; 
    height: 100%; 
}

.logo img { height: 45px; width: auto; }

.nav-links { display: flex; gap: 30px; margin-left: 40px; }
.nav-links a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    transition: 0.3s;
}
.nav-links a:hover { color: #fff; }

.nav-right { gap: 25px; }

.btn-launcher {
    background-color: #0078f2;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    transition: 0.3s;
}

/* --- KRİTİK ALAN: PROFİL KONTEYNER --- */
.profile-container {
    position: relative !important; 
    display: flex !important;
    align-items: center;
    height: 100%; /* Header'ın 80px yüksekliğini tam kaplamalı */
}

.user-name-display {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px; /* Ok ile metin arasında boşluk */
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    color: #efefef;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.03);
}

.user-name-display:hover { background: rgba(255, 255, 255, 0.08); }

.user-name-display span { 
    border-right: 2px solid #0078f2; 
    padding-right: 15px; 
    margin-right: 0; /* Ek boşluk yok */
    display: inline-block;
}

.user-name-display i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* --- ÇEKMECE MENÜ (MİLİMETRİK HİZALAMA) --- */
.dropdown-menu {
    display: none;
    position: absolute !important;
    /* Header'ın tam altında açılsın */
    top: calc(100% + 8px); 
    right: 0;
    background: #111 !important;
    width: 240px;
    border-radius: 12px;
    border: 1px solid #333;
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,1);
    z-index: 999999 !important;
}

.dropdown-menu.active { 
    display: block !important; 
    animation: slideDown 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown-menu a, .dropdown-item-static {
    display: flex; align-items: center;
    color: #ccc; padding: 12px; text-decoration: none;
    font-size: 14px; border-radius: 8px;
    transition: 0.2s;
}

.dropdown-menu a i, .dropdown-item-static i { 
    width: 20px;
    min-width: 20px;
    margin-right: 12px; 
    color: #666; 
}
.dropdown-menu a:hover { background: #1a1a1a; color: #fff; }

.user-info-dropdown { 
    padding: 12px;
    border-bottom: 1px solid #222; 
    margin-bottom: 8px; 
}
.user-info-dropdown strong { display: block; color: #fff; font-size: 15px; }
.user-info-dropdown span { font-size: 11px; color: #0078f2; font-weight: 800; text-transform: uppercase; }

.lang-sub-menu { 
    display: flex;
    margin-left: auto;
    gap: 6px; 
}
.lang-sub-menu a { 
    padding: 4px 8px !important;
    white-space: nowrap;
    font-size: 10px !important; 
    background: #222; 
    border: 1px solid #333; 
    flex-shrink: 0;
}
.lang-sub-menu a.active { 
    color: #0078f2; 
    border-color: #0078f2; 
    background: rgba(0, 120, 242, 0.1); 
}

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