/* onchat/assets/css/profile.css - MASTER VERSION (130px Avatar Update) */

/* 1. ANA KONTEYNER */
.profile-container {
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #dfecec; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 5px solid #bdced3;
    min-height: 850px;
}

/* 2. SOL SİDEBAR */
.profile-sidebar {
    width: 260px;
    background-color: #92c8c8; 
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    border-right: 2px solid #bdced3;
    flex-shrink: 0;
}

.sidebar-menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.profile-sidebar .menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255,255,255,0.25);
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    font-size: 14px;
}

.profile-sidebar .menu-item i { width: 25px; margin-right: 10px; font-size: 16px; }
.profile-sidebar .menu-item.active, 
.profile-sidebar .menu-item:hover { background: #007bff; color: #fff; }

.admin-btn-sidebar { background: #28a745 !important; color: #fff !important; margin-top: 10px; }
.logout-menu-item { background: #dc3545 !important; color: #fff !important; margin-top: 5px; }

/* 3. SAĞ İÇERİK ALANI */
.profile-main {
    flex-grow: 1;
    background-color: #dfecec;
    min-width: 0;
}

/* 4. KAPAK VE PROFİL RESMİ */
.profile-cover-area {
    width: 100%;
    height: 300px;
    background-color: #ccdada;
    border-bottom: 5px solid #bdced3;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible !important; /* Alt yarısı görünsün diye visible */
}

.main-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

/* AVATAR WRAPPER - 20px KÜÇÜLTÜLDÜ (130px) */
.profile-avatar-wrapper {
    position: absolute;
    bottom: -65px; /* 130'un yarısı */
    left: 40px;
    z-index: 100 !important;
    width: 130px;  /* 150'den 130'a düştü */
    height: 130px; /* 150'den 130'a düştü */
}

.profile-avatar-wrapper img {
    width: 130px; 
    height: 130px;
    border-radius: 50%;
    border: 6px solid #dfecec;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    object-fit: contain !important; /* Doll resmini sığdırır */
    display: block;
}

/* 5. İÇERİK DÜZENİ */
.profile-content-padding {
    margin-top: 75px; /* Küçük avatar için dengelendi */
    padding: 0 40px 40px;
}

.profile-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #bdced3;
    padding-bottom: 20px;
}

.user-titles h1 { font-size: 28px; margin: 0; color: #333; display: flex; align-items: center; }
.user-titles p { font-size: 16px; color: #666; margin: 5px 0; }

/* 6. BİLGİ GRİDİ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    background: rgba(255,255,255,0.4);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #bdced3;
    margin-bottom: 30px;
}

.info-item { display: flex; flex-direction: column; gap: 5px; }
.info-item label { font-size: 11px; font-weight: bold; color: #007bff; text-transform: uppercase; letter-spacing: 0.5px; }
.info-item span { font-size: 15px; color: #333; font-weight: 500; }
.grid-no-info { color: #888; font-style: italic; font-size: 14px; }

/* 7. BÖLÜM BAŞLIKLARI */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #bdced3;
    padding-bottom: 10px;
    margin: 30px 0 15px;
}

.section-text {
    line-height: 1.6;
    color: #444;
    background: rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #bdced3;
}

.empty-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    border: 2px dashed #bdced3;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.empty-info-box i { font-size: 30px; color: #bdced3; margin-bottom: 15px; }

/* 8. AYARLAR SAYFASI ÖZEL */
.settings-group {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #bdced3;
    margin-bottom: 25px;
}

.settings-group h3 {
    margin: 0 0 20px 0;
    border-bottom: 2px solid #92c8c8;
    padding-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.settings-group label {
    display: block;
    font-weight: bold;
    margin: 15px 0 8px;
    color: #555;
    font-size: 14px;
}

.settings-group input, 
.settings-group select, 
.settings-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    background: #fafafa;
    font-family: inherit;
}

.danger-zone { border: 2px solid #ff4d4d; background: #fff5f5; }

/* 9. ROZETLER */
.badge-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    opacity: 0.9;
    transition: 0.3s;
}

.badge-icon:hover { opacity: 1; transform: scale(1.3) rotate(10deg); }

/* 10. ODALARIM GALERİSİ */
.rooms-container { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.room-card { width: 150px; background: #fff; border-radius: 10px; overflow: hidden; border: 2px solid #bdced3; transition: 0.3s; text-align: center; text-decoration: none !important; }
.room-card:hover { transform: translateY(-5px); border-color: #007bff; }
.room-thumb { width: 150px; height: 85px; object-fit: cover; display: block; border-bottom: 1px solid #eee; }
.room-info { padding: 8px; }
.room-name { display: block; font-weight: bold; font-size: 13px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-online { display: block; font-size: 11px; color: #28a745; margin-top: 3px; }
/* GENİŞ ODA KARTLARI */
.room-card-wide {
    width: 210px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid #bdced3;
    overflow: hidden;
    text-decoration: none !important;
    transition: 0.3s;
}
.room-card-wide:hover { transform: translateY(-5px); border-color: #007bff; }
.room-thumb-wide { width: 100%; height: 110px; object-fit: cover; }
.room-info { padding: 10px; }
.room-name { display: block; font-weight: bold; color: #333; }
.room-online { font-size: 11px; color: #28a745; }

/* --- PROFİL İÇİ AYAR KARTLARI (Frontend Form Tasarımı) --- */

.settings-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #dee2e6;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    text-align: left; /* Metinleri sola yasla */
}

.settings-card-header {
    background: #f0faff !important; /* Hafif mavi arka plan */
    padding: 15px 20px;
    border-bottom: 1px solid #cfe2ff;
    border-left: 6px solid #007bff; /* Sol mavi şerit */
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-card-header h3 {
    margin: 0;
    font-size: 15px;
    color: #0056b3;
    font-weight: bold;
    text-transform: uppercase;
}

.settings-card-body {
    padding: 20px;
}

/* Buton Şeklindeki Select Kutuları */
.btn-onchat-select {
    width: 100%;
    height: 48px;
    background-color: #007bff !important;
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 15px;
}

/* Standart Inputlar İçin */
.settings-input {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

.input-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #444;
    font-size: 14px;
}

/* 11. RESPONSIVE */
@media (max-width: 768px) {
    .profile-container { flex-direction: column; }
    .profile-sidebar { width: 100%; border-right: none; border-bottom: 2px solid #bdced3; }
    .info-grid { grid-template-columns: 1fr; }
    .profile-avatar-wrapper { left: 50%; transform: translateX(-50%); }
    .profile-header-info { flex-direction: column; text-align: center; gap: 15px; }
}