.projects-container {
  flex: 1;
  width: 100%;
  max-width: 1700px;
  margin: 0 auto;
}

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 56px) / 3)), 1fr));
  gap: 28px;
  margin-top: 24px;
}

/* Card */
.project-card {
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* Thumbnail */
.project-card .thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
}

.project-name {
  font-weight: 600;
  font-size: 13px;
  color: #111;
  margin-bottom: 2px;
  word-break: break-word;
}

.project-meta-secondary {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.meta-dot {
  font-size: 16px;
  line-height: 1;
  color: #bbb;
}

.heart-icon {
  transform: translateY(1px);
}

/* Profile Header */
.profile-header {
  position: relative;
}

/* Banner */
.profile-banner {
  height: 200px;
  background: #2e2f34;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;

  padding-left: 20px; 
}

/* Content (avatar + text) */
.profile-content {
  display: flex;
  align-items: center;
  gap: 16px;

  position: absolute;
  top: 50px;
  padding-left: 0px;
}

/* Avatar */
.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 1%;
  background: #fff;
  border: 3px solid #fff;
  object-fit: cover;
}

.profile-avatar.empty {
  background: #ccc;
}

/* Info */
.profile-name {
  font-size: 28px;
  font-weight: 350;
  color: #fff;
  min-width: 150px;
}

.profile-username {
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  min-width: 100px;
}

.profile-about {
  font-size: 16px;
  color: #888;
}

.profile-about.filled {
  color: #000;
}

.tab-name {
  font-size: 16px;
  font-weight: 550;
  color: #111;
  position: relative;
  display: inline-block;
}

.content-layout {
  display: flex;
  gap: 30px;
  flex-wrap: wrap-reverse;
}

/* Main grid */
.main-content {
  flex: 1;
  min-width: 0;
}

/* Right panel */
.right-panel {
  width: 300px;
  flex-shrink: 0;
  margin-top: 24px;
}

@media (max-width: 950px) {
  .right-panel {
    width: 100%;
  }
}

/* About card */
.about-card {
  border: 1px solid #e6e8eb;
  border-radius: 4px;
  padding: 16px;
  background: #fff;
  min-height: 300px;
}

.about-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Skeleton */
.skeleton {
  background: #e8e8e8;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  padding: 10px 20px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skeleton-long {
  height: 10px;
  width: 80%;
  margin-bottom: 2px;
}

.skeleton-short {
  height: 10px;
  width: 40%;
}

/* Project info row with 3-dot menu */
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-width: 180px;
}

/* 3-dot button */
.project-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 4px;
  border-radius: 3px;
  color: #888;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}

.project-menu-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.project-menu-panel {
  position: absolute;
  top: 100%;
  bottom: auto;
  right: 0;

  background: white;
  border: 1px solid #e6e8eb;
  border-radius: 2px;
  padding: 6px 0;
  min-width: 150px;

  z-index: 150;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-menu-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  color: #333;
  transition: background 0.15s;
}

.project-menu-panel button:hover {
  background: #f5f5f5;
}

.project-menu-panel .menu-delete {
  color: #d93025;
}

.project-menu-panel .menu-delete:hover {
  background: #fff0ef;
}

/* Anchor for the dropdown */
.project-info-wrapper {
  position: relative;
  padding: 8px 18px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-card-wrapper {
  position: relative;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

#edit-profile-btn {
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 550;

  background: #fff;
  color: #111;
  border: 1px solid #e6e8eb;
}

#edit-profile-btn:hover {
  background: #f5f5f5;
}

.project-name-input {
  font-weight: 600;
  font-size: 13px;
  color: #111;
  margin-bottom: 2px;
  font-family: inherit;
  border: 1px solid #0a7cff;
  border-radius: 3px;
  padding: 1px 4px;
  width: 100%;
  outline: none;
  background: #fff;
}