/* =========================
   PROFILE POSTS TAB LAYOUT
========================= */

.profile-posts-layout {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 20px;
  margin-top: 20px;
}

.profile-posts-left,
.profile-posts-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================
   PROFILE ABOUT TAB LAYOUT
========================= */

.profile-about-layout {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 20px;
  margin-top: 20px;
}

.profile-about-left,
.profile-about-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================
   PROFILE CARDS (SHARED)
========================= */

.profile-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
}

.profile-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.profile-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.profile-card p {
  font-size: 14px;
  color: #d1d5db;
  margin-bottom: 6px;
}

/* =========================
   PROFILE TAB CONTENT SCROLL
========================= */

#profile-tab-content {
  margin-top: 20px;
  overflow: visible;
  height: auto;
  max-height: none;
  padding-right: 0;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .profile-posts-layout,
  .profile-about-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FRIENDS HEADER
========================= */

.profile-friends-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.profile-friends-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

/* Search bar */
.profile-friends-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #9ca3af;
}

.profile-friends-search input {
  background: none;
  border: none;
  outline: none;
  color: #e5e7eb;
  font-size: 14px;
  width: 140px;
}

/* =========================
   FRIENDS FILTER TABS
========================= */

.profile-friends-tabs {
  display: flex;
  gap: 18px;
  margin: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.friends-tab {
  background: none;
  border: none;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
}

.friends-tab.active {
  color: #6366f1;
}

.friends-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background-color: #6366f1;
  border-radius: 3px 3px 0 0;
}

/* =========================
   FRIENDS GRID
========================= */

.profile-friends-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Columns */
.profile-friends-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* =========================
   FRIEND CARD
========================= */

.profile-friend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

/* Left side */
.profile-friend-card .friend-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-friend-card .friend-info img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.profile-friend-card .friend-name {
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

/* Action button */
.profile-friend-card .friend-action-btn {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background-color: #6366f1;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.profile-friend-card .friend-action-btn:hover {
  background-color: #4f46e5;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .profile-friends-layout {
    grid-template-columns: 1fr;
  }
}

.friends-panel {
  display: none;
}

.friends-panel.active {
  display: block;
}

/* =========================
   PROFILE PHOTOS TAB LAYOUT
========================= */

.profile-photos-layout {
  margin-top: 20px;
}

/* =========================
   PHOTOS HEADER
========================= */

.profile-photos-header {
  margin-bottom: 12px;
}

.profile-photos-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #e5e7eb;
}

/* =========================
   PHOTOS SUB TABS
========================= */

.profile-photos-tabs {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.photos-tab {
  background: none;
  border: none;
  padding: 10px 4px;
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  position: relative;
}

.photos-tab:hover {
  color: #e5e7eb;
}

.photos-tab.active {
  color: #6366f1;
}

.photos-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  background-color: #6366f1;
  border-radius: 3px 3px 0 0;
}

/* =========================
   PHOTOS CONTENT AREA
========================= */

.profile-photos-content {
  padding-top: 14px;
}

.photos-panel {
  display: none;
}

.photos-panel.active {
  display: block;
}

.photos-panel p {
  font-size: 14px;
  color: #d1d5db;
}

/* =========================
   FUTURE PHOTO GRID (READY)
========================= */

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.profile-photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-photo-grid img:hover {
  transform: scale(1.03);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
  .profile-photos-tabs {
    gap: 12px;
    overflow-x: auto;
  }

  .photos-tab {
    white-space: nowrap;
  }
}
