/* 🔹 กล่องโปรไฟล์เต็มหน้าจอ */
.profile-fullscreen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: none;
  flex-direction: column;
  z-index: 9999999;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.profile-fullscreen.show {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 🔹 ส่วนหัวโปรไฟล์ */
.profile-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ccc;
  background: #f9f9f9;
}

.profile-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
  margin-left: 15px;
}

.profile-info h2 {
  margin: 0;
  font-size: 1.5em;
}

/* 🔹 ปุ่มในโปรไฟล์ */
.profile-actions button {
  margin-right: 10px;
  margin-top: 10px;
  padding: 6px 12px;
  background: #ffc107; /* เหลือง */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.profile-actions button:hover {
  background: #e0a800; /* เหลืองเข้ม */
}

/* 🔹 ปุ่มปิด popup */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  z-index: 1000;
  color: #ffc107; /* เหลือง */
}

.close-btn:hover {
  color: #e0a800; /* เหลืองเข้ม */
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* 🔹 ส่วนโพสต์ของผู้ใช้ */
.profile-posts {
  padding: 20px;
}

.profile-posts h3 {
  margin-bottom: 10px;
}

/* 🔹 กล่องโพสต์ */
#userPostList .post,
#postList .post {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  background: #fff;
}

#userPostList .post img,
#postList .post img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

/* 🔹 ข้อความโพสต์ */
.post-caption {
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 6px;
  font-size: 0.95em;
  color: #333;
}

/* 🔹 ปุ่มอ่านเพิ่มเติม (ยังคงสีฟ้าไว้ตามคำสั่ง) */
.read-more-caption,
.read-more-comments {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.85em;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
}

.read-more-caption:hover,
.read-more-comments:hover {
  text-decoration: underline;
}

/* 🔹 คอมเมนต์ */
.comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid #eee;
  font-size: 0.9em;
  color: #555;
}

.comment-avatar img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50% !important;
}

.comment-content {
  flex: 1;
}

.comment-content strong {
  display: block;
  margin-bottom: 2px;
}

.comment-time {
  font-size: 0.8em;
  color: #888;
  margin-top: 4px;
}

/* 🔹 ช่องแสดงความคิดเห็น */
.comment-form {
  display: flex;
  margin-top: 10px;
}

.comment-form input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.9em;
}

.comment-form button {
  margin-left: 8px;
  padding: 6px 12px;
  background: #ffc107; /* เหลือง */
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
}

.comment-form button:hover {
  background: #e0a800; /* เหลืองเข้ม */
}