/* =========================
   PUBLICATIONS PAGE
========================= */

.publications-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;

  margin-bottom: 30px;
}

.publications-header h1 {
  margin: 8px 0;

  color: #2b2b2b;

  font-size: 48px;
  font-weight: 700;
}

.page-label {
  color: #79B4A9;

  font-size: 14px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 1px;
}

.publications-header p {
  max-width: 600px;

  color: #666;

  line-height: 1.6;
}

.new-publication-btn {
  padding: 14px 24px;

  background: #79B4A9;
  color: #fff;

  border-radius: 999px;

  text-decoration: none;
  font-weight: 600;

  transition: .3s;
}

.new-publication-btn:hover {
  background: #676F54;
}

/* =========================
   STATS
========================= */

.publications-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 18px;

  margin-bottom: 30px;
}

.publication-stat-card {
  padding: 20px;

  background: #ffffff;

  border: 1px solid #ececec;
  border-radius: 20px;

  text-align: center;

  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}

.publication-stat-card strong {
  display: block;

  margin-bottom: 6px;

  color: #2b2b2b;

  font-size: 32px;
}

.publication-stat-card span {
  color: #676F54;

  font-size: 14px;
  font-weight: 600;
}

/* =========================
   EMPTY STATE
========================= */

.empty-publications {
  padding: 40px;

  text-align: center;

  background: #fff;

  border: 1px solid #ececec;
  border-radius: 24px;
}

.empty-publications h3 {
  margin-bottom: 10px;

  color: #2b2b2b;
}

.empty-publications p {
  margin-bottom: 20px;

  color: #666;
}

.empty-publications a {
  display: inline-block;

  padding: 12px 24px;

  background: #79B4A9;
  color: #fff;

  border-radius: 999px;

  text-decoration: none;
}

#editPostModal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, 0.45);
}

#editPostModal.active {
  display: flex;
}

#editPostModal .modal-content {
  width: 100%;
  max-width: 620px;

  padding: 28px;

  background: #ffffff;

  border-radius: 24px;
  border: 1px solid #ececec;

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.18);
}

#editPostModal h2 {
  margin-bottom: 18px;

  color: #2b2b2b;

  font-size: 28px;
}

#editPostContent {
  width: 100%;
  min-height: 180px;

  padding: 18px;

  resize: vertical;

  border: 1px solid #ececec;
  border-radius: 18px;

  background: #f8f8f5;
  color: #2b2b2b;

  font-size: 16px;
  line-height: 1.6;

  outline: none;
}

#editPostContent:focus {
  border-color: #79B4A9;
  background: #ffffff;
}

#editPostModal .modal-actions {
  margin-top: 20px;

  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

#cancelEditPostBtn,
#saveEditPostBtn {
  padding: 12px 22px;

  border: none;
  border-radius: 999px;

  font-weight: 700;

  cursor: pointer;
}

#cancelEditPostBtn {
  background: #f1f1ed;
  color: #676F54;
}

#saveEditPostBtn {
  background: #79B4A9;
  color: #ffffff;
}

#saveEditPostBtn:hover {
  background: #676F54;
}