/* Giới hạn khung bài viết trên desktop */



.cm2-user-panel {
    margin: 20px auto;
    max-width: 600px;
    padding: 15px;
    border-radius: 12px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.cm2-user-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cm2-btn {
    flex: 1 1 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background-color: #f9f9f9;
    color: gray;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}
.cm2-btn i {
    font-size: 16px;
}
.cm2-btn:hover {
    background-color: #005f8d;
}

.cm2-stats-card {
    margin-top:10px;
  background: #f9f9f9;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box; /* đảm bảo không tràn khi có padding */
}
	.cm2-btn {
    white-space: nowrap; /* Không cho xuống dòng */
    flex: 1 1 auto;
    padding: 12px 16px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    min-width: 90px;
    max-width: 100px;
}
 .modal {
        display: none; /* Mặc định ẩn */
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.5); /* Nền mờ đen */
    }

    .modal-content {
        background-color: #fff;
        margin: 15% auto; /* Căn giữa dọc */
        padding: 20px;
        border: 1px solid #888;
        width: 50%; /* Độ rộng modal */
        border-radius: 10px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

    .close-modal {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close-modal:hover,
    .close-modal:focus {
        color: #000;
        text-decoration: none;
    }
    .options-menu .save-post-btn:hover {
    background-color: #f0f0f0;
}
#userpost-sentinel {
  position: sticky;
  bottom: 70px;
  text-align: center;
  padding: 10px;
  background: #fff;
  color: #666;
  font-size: 14px;
  z-index: 1000;
}
.cm2-spinner {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid #ddd;
  border-top: 3px solid #333;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.user-post-item { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.post-header { display:flex; align-items:center; gap:10px; }
.post-author-avatar { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.post-author-info { flex:1; }
.post-meta { font-size:12px; color:#888; margin:2px 0; }

.post-options { position: relative; margin-left:auto; }
.options-button {
  background:#f0f0f0; border:none; cursor:pointer;
  width:28px; height:28px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:#333;
}
.options-button:hover { background:#e5e5e5; }


.post-media { margin:10px 0; position:relative; }
.post-title { margin:10px 0; font-size:18px; line-height:1.4; }
.post-title a { text-decoration:none; color:#333; }
.post-excerpt { font-size:14px; color:#555; }
/* =====================================================
   CM2 Followers – Popup List Style
   ===================================================== */
.follower-list-popup {
  position: absolute;
  top: 100%;          /* nằm ngay dưới link "Người theo dõi" */
  left: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 10px;
  min-width: 220px;
  max-width: 280px;
  max-height: 320px;   /* hạn chế chiều cao */
  overflow-y: auto;    /* cuộn nếu quá nhiều */
  z-index: 9999;
  display: none;       /* mặc định ẩn */
}

/* Header trong popup */
.follower-list-popup .follower-list-header {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
  color: #333;
}

/* Item */
.follower-list-popup .follower-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background 0.2s;
}
.follower-list-popup .follower-item:hover {
  background: #f9fafb;
}

/* Avatar */
.follower-list-popup .follower-item img {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  object-fit: cover;
}

/* Link tên user */
.follower-list-popup .follower-item a {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
}
.follower-list-popup .follower-item a:hover {
  color: #1877f2;
}

