/* styles/profile.css */

/* --- Layout Utama Kartu Profil --- */
.profile-card {
    background: var(--bg-card); 
    border: var(--border-bold);
    padding: 40px; 
    margin-bottom: 40px;
    display: flex; 
    flex-direction: row; 
    gap: 40px; 
    align-items: stretch;
}

/* SISI KIRI (Sidebar - Avatar, Nama, dan Tombol Aksi) */
.profile-sidebar {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
    width: 250px; 
    flex-shrink: 0;
}

.profile-avatar {
    width: 120px; height: 120px; border-radius: 50%;
    border: 3px solid var(--brand-color); object-fit: cover; margin-bottom: 15px;
}

.profile-sidebar h2 { margin: 0; text-transform: uppercase; letter-spacing: -1px; font-size: 22px; }
.profile-email { color: var(--text-muted); font-size: 13px; margin-top: 5px; }

/* Grup Semua Tombol di Kiri */
.btn-group { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 25px; }

/* Menyatukan Gaya Tombol Edit Profil dan Tombol Follow */
.btn-edit-profile, .btn-follow {
    width: 70%;
    margin: 0 auto;
    background: var(--brand-color); 
    color: var(--bg-main, #111); 
    text-decoration: none;
    padding: 10px; 
    font-size: 12px; 
    font-weight: bold; 
    text-transform: uppercase;
    text-align: center; 
    border: 1px solid var(--brand-color); 
    transition: 0.2s; 
    box-sizing: border-box;
    cursor: pointer;
}

.btn-edit-profile:hover, .btn-follow:hover { 
    background: var(--text-main, #fff); 
    border-color: var(--text-main, #fff); 
    color: #000;
}

/* Tombol Saat Sudah Di-Follow */
.btn-follow.following {
    background: transparent;
    color: #fff;
    border: 1px solid #555;
}

.btn-follow.following:hover {
    background: #ff3333;
    color: #fff;
    border-color: #ff3333;
}

/* Tombol Tambahan */
.btn-admin-control {
    width: 70%; margin: 0 auto; background: transparent; color: #ffffff; text-decoration: none;
    padding: 10px; font-size: 11px; font-weight: bold; text-transform: uppercase;
    text-align: center; border: 1px solid #888; transition: 0.2s; display: block; box-sizing: border-box;
}
.btn-admin-control:hover { background: #e0e0e0; color: #111; border-color: #e0e0e0; }

.btn-delete-account {
    width: 70%; margin: 0 auto; background: transparent; color: #888; border: 1px solid #333;
    padding: 10px; font-size: 11px; font-weight: bold; text-transform: uppercase;
    cursor: pointer; transition: 0.2s; box-sizing: border-box;
}
.btn-delete-account:hover { background: #ff3333; color: #fff; border-color: #ff3333; }


/* SISI KANAN (Konten Bio & Statistik Center) */
.profile-content {
    flex-grow: 1; 
    border-left: 1px solid #333; 
    padding-left: 40px; 
    display: flex;
    flex-direction: column;
}

.bio-container {
    line-height: 1.6;
    color: #ccc;
    font-size: 14.5px;
    flex-grow: 1; 
    margin-bottom: 30px;
}

/* Grup Statistik: Center & Sticky Bottom */
.profile-stats-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 60px; 
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: auto; 
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: 0.2s;
}

.stat-label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px; 
}

/* Angka dikecilkan sesuai permintaan agar tidak dominan */
.stat-count {
    color: #fff;
    font-size: 16px; 
    font-weight: 900;
    line-height: 1;
}

.stat-item[href]:hover .stat-label { color: #fff; }
.stat-item[href]:hover .stat-count { color: var(--brand-color); }


/* Area Postingan */
.section-title {
    font-size: 14px; font-weight: 900; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); margin-bottom: 20px; border-left: 4px solid var(--brand-color); padding-left: 15px;
}
.empty-state { text-align: center; padding: 40px; border: 2px dashed #444; color: var(--text-muted); font-size: 14px; }

/* Responsivitas HP */
@media (max-width: 600px) {
    .profile-card { flex-direction: column; padding: 30px; gap: 25px; }
    .profile-sidebar { width: 100%; }
    .profile-content { border-left: none; border-top: 1px solid #333; padding-left: 0; padding-top: 25px; display: block; }
    .profile-stats-wrapper { gap: 40px; padding-top: 20px; }
}