/* =======================================================
/*isi file: profil sosmed dan ada hubungannya dengan community himub chat global
   SOSMED PROFILE & COMMUNITY MODERN UI
   ======================================================= */
.modal-sosmed-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(10px);
    z-index: 999999; display: flex; align-items: flex-end; justify-content: center;
    animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpProfile { from { transform: translateY(100%); } to { transform: translateY(0); } }

.sosmed-card {
    width: 100%; max-width: 500px; background: #0f172a;
    border-top-left-radius: 25px; border-top-right-radius: 25px;
    border: 1px solid #1e293b; border-bottom: none;
    overflow: hidden; display: flex; flex-direction: column;
    animation: slideUpProfile 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    max-height: 90vh;
}

/* Banner & Avatar (Gaya MLBB / TikTok) */
.sosmed-banner {
    width: 100%; height: 160px; background-color: #1e293b;
    background-size: cover; background-position: center; position: relative;
}
.sosmed-banner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 50%, #0f172a 100%);
}
.btn-close-sosmed {
    position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5);
    color: white; border: none; border-radius: 50%; width: 35px; height: 35px;
    font-size: 1.2rem; cursor: pointer; z-index: 10; backdrop-filter: blur(5px);
}

.sosmed-header-info {
    display: flex; justify-content: space-between; align-items: flex-end;
    padding: 0 20px; margin-top: -50px; position: relative; z-index: 2;
}
.sosmed-avatar-container { position: relative; }
.sosmed-avatar {
    width: 100px; height: 100px; border-radius: 50%;
    border: 4px solid #0f172a; background: #1e293b; object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Tombol Aksi Kanan */
.sosmed-actions { display: flex; gap: 10px; margin-bottom: 10px; }
.btn-sosmed-like {
    background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid #ef4444;
    border-radius: 20px; padding: 8px 15px; font-weight: 900; font-size: 0.8rem;
    cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 5px;
}
.btn-sosmed-like.liked { background: #ef4444; color: white; box-shadow: 0 0 15px rgba(239, 68, 68, 0.5); }
.btn-sosmed-follow {
    background: #10b981; color: white; border: none; border-radius: 20px;
    padding: 8px 20px; font-weight: bold; font-size: 0.8rem; cursor: pointer;
}

/* Statistik & Identitas */
.sosmed-body { padding: 15px 20px; overflow-y: auto; }
.sosmed-name { font-size: 1.4rem; font-weight: 900; color: white; margin: 0; display: flex; align-items: center; gap: 8px; }
.sosmed-badges { display: flex; gap: 5px; margin-top: 5px; margin-bottom: 15px; flex-wrap: wrap; }
.badge-pro { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border: 1px solid #f59e0b; padding: 3px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: bold; }
.badge-info { background: rgba(56, 189, 248, 0.1); color: #38bdf8; border: 1px solid #38bdf8; padding: 3px 8px; border-radius: 12px; font-size: 0.65rem; font-weight: bold; }

.sosmed-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; margin-bottom: 20px; background: #1e293b; padding: 15px; border-radius: 15px; }
.stat-box { display: flex; flex-direction: column; }
.stat-num { color: white; font-size: 1.2rem; font-weight: 900; font-family: 'Inter', sans-serif; }
.stat-label { color: #94a3b8; font-size: 0.65rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; }

/* Bio & Pekerjaan */
.sosmed-bio-section { margin-bottom: 20px; }
.sosmed-bio-text { color: #cbd5e1; font-size: 0.9rem; line-height: 1.5; margin: 0; font-style: italic; }
.sosmed-details { display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid #1e293b; }
.detail-item { display: flex; align-items: center; gap: 10px; color: #94a3b8; font-size: 0.8rem; }
.detail-item i { width: 20px; text-align: center; color: #38bdf8; }

/* Form Edit (Scrollable) */
.sosmed-edit-form { display: none; padding: 20px; background: #0f172a; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #94a3b8; font-size: 0.75rem; margin-bottom: 5px; font-weight: bold; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: #1e293b; border: 1px solid #334155; color: white;
    padding: 10px; border-radius: 8px; font-size: 0.85rem; font-family: inherit;
}
.file-upload-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.file-upload-btn { border: 1px dashed #3b82f6; background: rgba(59, 130, 246, 0.1); color: #3b82f6; padding: 10px; text-align: center; border-radius: 8px; font-weight: bold; cursor: pointer; width: 100%; transition: 0.3s; }
.file-upload-wrapper input[type=file] { font-size: 100px; position: absolute; left: 0; top: 0; opacity: 0; cursor: pointer; }

/* Custom Notif Alert Profil */
.profil-alert {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #38bdf8; color: #020617; padding: 10px 20px; border-radius: 30px;
    font-weight: 900; font-size: 0.85rem; box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
    z-index: 9999999; display: flex; align-items: center; gap: 10px; cursor: pointer;
    animation: dropDownAlert 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes dropDownAlert { from { top: -50px; opacity: 0; } to { top: 20px; opacity: 1; } }