/* ============================
   ✅ PROFILE PAGE BASE STYLES
   ============================ */

body#profilePage {
  background-color: var(--profile-background-color, #00b894);
  padding: 20px;
  min-height: 100vh;
}

/* ============================
   ✅ PROFILE INFO SECTION
   ============================ */

.profile-info {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  color: var(--text-color);
  text-align: center;
}

.profile-info h2 {
  font-size: 1.8rem;
  margin-top: 10px;
}

#profileBioDisplay {
  margin-top: 10px;
  opacity: 0.9;
  font-size: 0.95rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  margin-bottom: 1rem;
}

#editProfileButton {
  margin-top: 10px;
}

/* Dark mode adjustments */
[data-theme="dark"] .profile-info {
  background-color: rgba(0, 0, 0, 0.3);
  color: #f1f1f1;
}

[data-theme="dark"] .profile-feed-container h3 {
  color: #f1f1f1;
}

/* ============================
   ✅ PROFILE FEED SECTION
   ============================ */

.profile-feed-container {
  margin-top: 10px;
}

.profile-feed-container h3 {
  margin: 10px 0;
  color: var(--text-color);
}

.profile-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* Use same styles as post.css */
.profile-feed .post {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  color: var(--text-color);
  border: 1px solid var(--shadow-color);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 5px var(--shadow-color);
  transition: transform 0.2s;
  width: 100%;
  max-width: 600px;
  margin-bottom: 20px;
}

.profile-feed .post:hover {
  transform: scale(1.01);
}

.profile-feed .post img {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 10px;
}

/* Profile photo inside post */
.profile-feed .profile-pic {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* Post content and metadata */
.profile-feed .post-content {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.profile-feed .post-content h4,
.profile-feed .post-user-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--link-color);
  margin: 0;
}

.profile-feed .post-content .post-date {
  font-size: 0.85rem;
  color: #777;
  margin: 4px 0;
}

.profile-feed .post-content p {
  margin-top: 10px;
  font-size: 1rem;
}

/* ============================
   ✅ ACTIONS AND COMMENTS
   ============================ */

.profile-feed .post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.profile-feed .post-actions button {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--shadow-color);
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-feed .post-actions button:hover {
  background-color: var(--primary-color-hover);
  color: #fff;
}

.profile-feed .like-count {
  font-weight: bold;
  font-size: 0.9rem;
}

.profile-feed .comments-section {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--shadow-color);
  max-height: 180px;
  overflow-y: auto;
}

.profile-feed .comment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
  background-color: var(--shadow-color);
  border-radius: 6px;
}

.profile-feed .comment-profile-pic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-feed .comment-body {
  background-color: var(--background-color);
  padding: 6px 10px;
  border-radius: 6px;
  max-width: 90%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.profile-feed .comment-body a {
  font-weight: bold;
  color: var(--link-color);
  text-decoration: none;
}

.profile-feed .comment-body a:hover {
  text-decoration: underline;
}
