/* =====================================================
   DOSYA: public/css/user-profile.css
   Modern Kullanıcı Profil - SAĞ PANEL DROPDOWN
   ===================================================== */

/* Profil Panel - Sağ Taraftan Açılır */
#profilePanel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 990;
    transition: right 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    border-left: 1px solid rgba(88, 101, 242, 0.1);
}

#profilePanel.open {
    right: 0;
}

/* Profil Panel Content */
.profile-panel-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Profil Header Section */
.profile-header-section {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.08) 0%, transparent 100%);
    border-radius: 12px;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 32px;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.3);
    border: 4px solid var(--bg-secondary);
}

.profile-status-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.profile-info {
    flex: 1;
    padding-top: 4px;
}

.profile-username {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    word-break: break-word;
}

.profile-status-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profil Bio */
.profile-bio {
    padding: 12px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 8px;
    border-left: 3px solid #5865F2;
}

/* Profil Divider */
.profile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(88, 101, 242, 0.2), transparent);
}

/* Profil Section */
.profile-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 700;
}

/* Profil Stats */
.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.profile-stat {
    padding: 12px;
    background: rgba(88, 101, 242, 0.05);
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(88, 101, 242, 0.1);
    transition: all 0.2s ease;
}

.profile-stat:hover {
    background: rgba(88, 101, 242, 0.1);
    border-color: rgba(88, 101, 242, 0.2);
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.stat-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Profil Actions */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
}

.profile-action-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

/* Primary Button */
.profile-action-btn.primary-btn {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-hover) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.profile-action-btn.primary-btn:hover {
    border-color: #5865F2;
    background: linear-gradient(135deg, var(--bg-hover) 0%, var(--bg-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.1);
}

.profile-action-btn.primary-btn:active {
    transform: translateY(0);
}

/* Friend Button */
.profile-action-btn.friend-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.profile-action-btn.friend-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.profile-action-btn.friend-btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Friend Button - Accepted */
.profile-action-btn.friend-btn.accepted {
    background: linear-gradient(135deg, #43b581 0%, #3a9a6a 100%);
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: 0 4px 12px rgba(67, 181, 129, 0.2);
}

/* Friend Button - Pending */
.profile-action-btn.friend-btn.pending {
    background: linear-gradient(135deg, #faa61a 0%, #f59e0b 100%);
    box-shadow: 0 4px 12px rgba(250, 166, 26, 0.3);
}

.profile-action-btn.friend-btn.pending:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(250, 166, 26, 0.4);
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar */
#profilePanel::-webkit-scrollbar {
    width: 8px;
}

#profilePanel::-webkit-scrollbar-track {
    background: transparent;
}

#profilePanel::-webkit-scrollbar-thumb {
    background: rgba(88, 101, 242, 0.2);
    border-radius: 4px;
}

#profilePanel::-webkit-scrollbar-thumb:hover {
    background: rgba(88, 101, 242, 0.3);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    #profilePanel {
        width: 380px;
        right: -380px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    #profilePanel {
        width: 100%;
        right: -100%;
        max-width: 100%;
    }
    
    .profile-panel-content {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .profile-username {
        font-size: 16px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-action-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}


/* ===== AVATAR & BANNER UPLOAD BUTTONS ===== */

.profile-avatar-container {
    position: relative;
    display: inline-block;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.avatar-upload-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

.profile-banner-container {
    position: relative;
}

.banner-upload-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-upload-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.status-edit-section {
    margin-top: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.status-input-group {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.status-emoji-picker {
    width: 48px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.status-emoji-picker:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.status-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.status-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.1);
}

.status-input::placeholder {
    color: var(--text-muted);
}

.status-save-btn {
    padding: 10px 16px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-save-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}