/* =============================================
   BİLİMSES - PROFİL SAYFASI STİLLERİ (TEMİZ)
   ============================================= */

body { 
    padding-top: 120px; 
    background: linear-gradient(135deg, #0a0e27, #0f142e); 
    min-height: 100vh; 
}
.profil-wrapper { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* ========== KAPAK FOTOĞRAFI ========== */
.cover-photo {
    background: linear-gradient(135deg, #1e3a5f, #0f142e, #3b1f5f);
    border-radius: 24px;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #2d3a5e;
}
.cover-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.cover-avatar { font-size: 64px; }
.cover-name { font-size: 28px; color: #facc15; font-weight: 800; margin-top: 8px; }
.cover-username { color: #a0b0c8; font-size: 14px; }

/* ========== PROFİL BAŞLIK (SOLDa Avatar+Durum | SAĞDA Butonlar) ========== */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26, 31, 62, 0.7);
    border-radius: 20px;
    padding: 20px 25px;
    margin-bottom: 20px;
    border: 1px solid #2d3a5e;
    gap: 20px;
    flex-wrap: wrap;
}

/* Sol: avatar ve durum alt alta */
.profile-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 80px;
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
}

.profile-avatar-large {
    font-size: 64px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.avatar-change-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: #facc15;
    color: #0f142e;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0f142e;
    cursor: pointer;
}

/* Durum göstergesi (ikon + yazı) */
.profile-status-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #cbd5e1;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    flex-shrink: 0;
}
.status-dot.online { background: #22c55e; }
.status-dot.busy { background: #f59e0b; }
.status-dot.dnd { background: #ef4444; }
.status-dot.offline { background: #6b7280; }

.status-text {
    color: #e2e8f0;
    font-weight: 500;
}

/* İsim ve kullanıcı adı (opsiyonel, başlıkta gösterilebilir) */
.profile-info-name-status {
    display: none; /* bu yapıda kapak foto zaten isimleri gösteriyor */
}

/* Sağ: butonlar */
.profile-header-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.status-btn-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid #2d3a5e;
    background: rgba(0,0,0,0.2);
    color: #cbd5e1;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.status-btn-box:hover {
    border-color: #facc15;
    background: rgba(250,204,21,0.1);
    color: #facc15;
}

.status-btn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-btn-dot.online { background: #22c55e; }
.status-btn-dot.busy { background: #f59e0b; }
.status-btn-dot.dnd { background: #ef4444; }
.status-btn-dot.offline { background: #6b7280; }

/* ========== KULLANICI BİLGİ KARTI ========== */
.user-info-card {
    background: rgba(26,31,62,0.9);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #2d3a5e;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.info-left { display: flex; flex-direction: column; gap: 8px; }
.info-item { color: #cbd5e1; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.info-item i { color: #facc15; width: 18px; text-align: center; }
.vip-badge { 
    background: linear-gradient(135deg,#facc15,#f59e0b); 
    color:#0f142e; 
    padding:4px 12px; 
    border-radius:20px; 
    font-weight:700; 
    font-size:13px; 
    display:inline-block; 
    margin-bottom:10px; 
}
.info-right { max-width: 400px; color: #a0b0c8; font-size: 14px; line-height: 1.6; }

/* ========== SEKMELER ========== */
.tabs { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 20px; 
    flex-wrap: wrap; 
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-btn {
    background: rgba(26,31,62,0.8); 
    border: 1px solid #2d3a5e; 
    color: #a0b0c8;
    padding: 10px 20px; 
    border-radius: 40px; 
    cursor: pointer; 
    font-size: 14px; 
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}
.tab-btn.active { 
    background: linear-gradient(135deg,#facc15,#f59e0b); 
    color:#0f142e; 
    border-color: transparent; 
}
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ========== OYUN SEÇİCİ ========== */
.game-selector { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.game-selector label { color: #a0b0c8; font-weight: 600; white-space: nowrap; }
.game-selector select {
    background: #1e293b; 
    border: 1px solid #2d3a5e; 
    color: white;
    padding: 10px 16px; 
    border-radius: 30px; 
    font-size: 14px; 
    cursor: pointer;
    outline: none;
    width: 100%;
    max-width: 300px;
}

/* ========== İSTATİSTİK KARTLARI ========== */
.stats-cards { 
    display: grid; 
    grid-template-columns: repeat(4,1fr); 
    gap: 12px; 
    margin-bottom: 20px; 
}
.stat-card {
    background: rgba(26,31,62,0.9); 
    border-radius: 16px; 
    padding: 20px; 
    text-align: center; 
    border: 1px solid #2d3a5e;
}
.stat-card .icon { font-size: 28px; margin-bottom: 10px; }
.stat-card .value { font-size: 22px; font-weight: 800; color: #facc15; }
.stat-card .label { font-size: 11px; color: #6b7280; margin-top: 5px; }

/* ========== RÜTBE ========== */
.rank-progress {
    background: rgba(26,31,62,0.9); 
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 20px; 
    border: 1px solid #2d3a5e;
}
.rank-header { display: flex; justify-content: space-between; color: #a0b0c8; margin-bottom: 10px; font-weight: 600; }
.rank-bar-bg { height: 12px; background: #2d3a5e; border-radius: 10px; overflow: hidden; }
.rank-bar-fill { height: 100%; background: linear-gradient(90deg,#facc15,#f59e0b); border-radius: 10px; transition: width 0.5s; }
.rank-info { color: #6b7280; font-size: 12px; margin-top: 8px; text-align: center; }

/* ========== ALT PANELLER (ARKADAŞLAR) ========== */
.bottom-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: rgba(26,31,62,0.9); border-radius: 16px; padding: 20px; border: 1px solid #2d3a5e; }
.panel h3 { color: #facc15; font-size: 16px; margin-bottom: 15px; }

/* Arkadaş Arama */
.friend-search { position: relative; margin-bottom: 15px; }
.friend-search input {
    width: 100%; padding: 10px 15px; background: #0f1430; border: 1px solid #2d3a5e;
    border-radius: 30px; color: white; font-size: 14px; outline: none;
}
.search-results { 
    position: absolute; top: 100%; left: 0; right: 0; background: #1e293b; 
    border: 1px solid #facc15; border-radius: 12px; z-index: 100; 
    max-height: 200px; overflow-y: auto; display: none; 
}
.search-result-item { padding: 10px 15px; color: white; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.search-result-item:hover { background: #2d3a5e; }

/* Arkadaş Listesi */
.friends-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.friend-item {
    display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(0,0,0,0.2);
    border-radius: 12px; cursor: pointer;
}
.friend-item:hover { background: #2d3a5e; }
.friend-avatar { font-size: 28px; }
.friend-name { color: white; font-weight: 600; flex: 1; }
.friend-level { color: #6b7280; font-size: 11px; }
.friend-status { width: 8px; height: 8px; border-radius: 50%; }
.friend-status.online { background: #22c55e; }
.friend-status.busy { background: #f59e0b; }
.friend-status.dnd { background: #ef4444; }
.friend-status.offline { background: #6b7280; }

/* Eski durum butonları (arkadaş sekmesindeki) */
.status-buttons { display: flex; flex-direction: column; gap: 8px; }
.status-btn {
    padding: 10px 15px; border-radius: 30px; border: 1px solid #2d3a5e; background: rgba(0,0,0,0.2);
    color: white; cursor: pointer; font-size: 14px; text-align: left;
}
.status-btn:hover { background: #2d3a5e; }
.status-btn.online { border-left: 4px solid #22c55e; }
.status-btn.busy { border-left: 4px solid #f59e0b; }
.status-btn.dnd { border-left: 4px solid #ef4444; }
.status-btn.offline { border-left: 4px solid #6b7280; }

/* ========== BİRLİK SEKMESİ ========== */
.clan-full-card {
    background: rgba(26,31,62,0.9);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #2d3a5e;
    max-width: 600px;
    margin: 0 auto;
}
.clan-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #2d3a5e;
}
.clan-icon { font-size: 48px; }
.clan-header h2 { color: #facc15; font-size: 24px; }
.clan-details { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.clan-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
}
.clan-detail-label { color: #a0b0c8; font-size: 14px; }
.clan-detail-value { color: white; font-weight: 600; font-size: 14px; }
.clan-actions { display: flex; gap: 15px; }
.clan-actions .btn-primary,
.clan-actions .btn-secondary {
    flex: 1;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 14px;
}
.clan-actions .btn-primary {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #0f142e;
}
.clan-actions .btn-secondary {
    background: #334155;
    color: white;
}

/* ========== BIO DÜZENLEME ========== */
.bio-display {
    position: relative;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px dashed transparent;
    transition: all 0.2s;
}
.bio-display:hover {
    border-color: #facc15;
    background: rgba(250,204,21,0.05);
}
.bio-edit-hint {
    font-size: 10px;
    color: #6b7280;
    opacity: 0;
    transition: opacity 0.2s;
}
.bio-display:hover .bio-edit-hint {
    opacity: 1;
}
.bio-edit textarea {
    width: 100%;
    padding: 12px 15px;
    background: #0f1430;
    border: 1px solid #facc15;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    resize: vertical;
    outline: none;
    -webkit-user-select: text !important;
    user-select: text !important;
}
.bio-edit-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.btn-save {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}
.btn-cancel {
    background: #334155;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

/* ========== BİLDİRİMLER ========== */
.notif-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    line-height: 1.2;
}
.notifications-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(26, 31, 62, 0.8);
    border-radius: 16px;
    border: 1px solid #2d3a5e;
    transition: all 0.2s;
}
.notification-item.unread {
    border-left: 4px solid #facc15;
    background: rgba(250, 204, 21, 0.05);
}
.notification-icon { font-size: 28px; flex-shrink: 0; }
.notification-content { flex: 1; min-width: 0; }
.notification-text { color: #eef2ff; font-size: 14px; margin-bottom: 4px; }
.notification-time { font-size: 11px; color: #6b7280; }
.notification-actions { display: flex; gap: 8px; flex-shrink: 0; }
.notif-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.notif-btn.accept { background: #22c55e; color: white; }
.notif-btn.reject, .notif-btn.delete { background: #ef4444; color: white; }
.notif-btn:active { transform: scale(0.9); }

/* ========== AKSİYON BUTONLARI ========== */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(26, 31, 62, 0.7);
    border-radius: 16px;
    border: 1px solid #2d3a5e;
}
.action-buttons .btn {
    flex: 1 1 auto;
    min-width: 120px;
    font-size: 14px;
    padding: 12px 16px;
}

/* ========== AVATAR MENÜ ========== */
.avatar-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9998;
}
.avatar-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e293b;
    border: 2px solid #facc15;
    border-radius: 20px;
    padding: 10px;
    z-index: 9999;
    min-width: 240px;
}
.avatar-menu-item {
    padding: 12px 16px;
    color: white;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: background 0.2s;
}
.avatar-menu-item:hover { background: #2d3a5e; }

/* ========== BAŞKASININ PROFİLİ ========== */
.profile-other .bio-display { cursor: default; border-color: transparent !important; background: transparent !important; }
.profile-other .bio-edit-hint { display: none !important; }
#otherStats { margin-top: 10px; }

/* ========== MOBİL UYUMLULUK ========== */
@media (max-width: 768px) {
    .profil-wrapper { padding: 10px; }
    .cover-photo { height: 140px; border-radius: 16px; }
    .cover-avatar { font-size: 44px; }
    .cover-name { font-size: 20px; }

    .profile-header { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding: 20px 15px; 
    }
    .profile-header-left { flex-direction: column; align-items: center; }
    .profile-header-right { justify-content: center; width: 100%; }
    .status-btn-box { padding: 8px 12px; font-size: 12px; }

    .user-info-card { flex-direction: column; gap: 10px; padding: 15px; }
    .info-right { max-width: 100%; }

    .tabs { gap: 5px; }
    .tab-btn { padding: 8px 14px; font-size: 13px; }

    .stats-cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 12px; }
    .stat-card .value { font-size: 18px; }

    .bottom-panels { grid-template-columns: 1fr; gap: 15px; }
    .game-selector { flex-direction: column; align-items: flex-start; }
    .game-selector select { max-width: 100%; }

    .clan-actions { flex-direction: column; }
    .action-buttons .btn { min-width: 100px; font-size: 13px; padding: 10px 12px; }

    .notification-item { flex-wrap: wrap; }
    .notification-actions { width: 100%; justify-content: flex-end; margin-top: 5px; }
}

@media (max-width: 400px) {
    .tabs { 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 5px; 
    }
    .tab-btn { flex-shrink: 0; white-space: nowrap; }
    .stats-cards { grid-template-columns: repeat(2, 1fr); }
}
/* ========== ENGELLİ LİSTESİ ========== */
.blocked-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.blocked-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.blocked-avatar { font-size: 28px; }
.blocked-name { color: white; font-weight: 600; flex: 1; }
.unblock-btn {
    background: #22c55e;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}
.unblock-btn:hover { background: #16a34a; }