.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.content-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

.welcome-section {
  background: linear-gradient(135deg, var(--color-pale-sky-blue) 0%, var(--color-white) 100%);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light-grey);
}

.welcome-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.welcome-card p {
  color: var(--color-slate-grey);
  font-size: 1.125rem;
}

.continue-writing-section,
.my-projects-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.continue-writing-section h2,
.my-projects-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.view-toggle {
  display: flex;
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.toggle-btn {
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.toggle-btn:not(:last-child) {
  border-right: 1px solid var(--color-light-grey);
}

.toggle-btn.active {
  background: var(--color-sky-blue);
  color: var(--color-white);
}

.project-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--color-sky-blue);
}

.filter-btn.active {
  background: var(--color-sky-blue);
  color: var(--color-white);
  border-color: var(--color-sky-blue);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card {
  background: var(--color-white);
  border: 1px solid var(--color-light-grey);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-sky-blue);
}

.project-card.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  cursor: default;
}

.project-card.empty-state p {
  font-size: 1.125rem;
  color: var(--color-black);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.project-card.empty-state small {
  color: var(--color-slate-grey);
  display: block;
  margin-bottom: 1.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.project-author {
  color: var(--color-slate-grey);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.project-description {
  color: var(--color-slate-grey);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-slate-grey);
  padding-top: 1rem;
  border-top: 1px solid var(--color-light-grey);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.project-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
}

.project-card-author {
  font-size: 0.8125rem;
  color: var(--color-slate-grey);
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-slate-grey);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-light-grey);
  margin-top: 0.25rem;
}

.project-status {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-background-grey);
  color: var(--color-slate-grey);
}

.project-status.status-in_progress {
  background: var(--color-pale-sky-blue);
  color: var(--color-deep-sky-blue);
}

.project-status.status-published {
  background: #e3f6ec;
  color: #1c7a4b;
}

.project-status.status-review {
  background: #fff4e0;
  color: #a96a00;
}

.project-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--color-background-grey);
  overflow: hidden;
  margin-top: 0.25rem;
}

.project-progress-bar {
  height: 100%;
  background: var(--color-sky-blue);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.projects-grid.view-list {
  grid-template-columns: 1fr;
}

.sidebar-user {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.25rem;
  margin-bottom: 0.75rem;
  border-top: 1px solid var(--color-light-grey);
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-black);
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: var(--color-slate-grey);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
