/* ============================================================
   StandStrong – Publications Page Stylesheet (publications.css)
   Page-specific styles for the Research Publications page.
   Requires: standstrong-base.css
   ============================================================ */

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.page-header::before {
  content: '';
  position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,152,110,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.page-header::after {
  content: '"';
  position: absolute; bottom: -60px; left: 4%;
  font-family: 'Playfair Display', serif;
  font-size: 22rem;
  font-weight: 700;
  color: rgba(168,152,110,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.header-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(168,152,110,0.4);
  border-radius: 50px;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.2rem;
}

.page-title em {
  font-style: italic;
  color: var(--gold-light);
}

.page-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.header-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.h-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
}

.h-stat-lbl {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

/* ─── MAIN LAYOUT ─── */
.main-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: 80vh;
}

/* ─── SIDEBAR ─── */
.sidebar {
  background: var(--white);
  border-right: 1px solid var(--mist);
  padding: 2.5rem 1.8rem;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--mist); border-radius: 2px; }

.sidebar-section { margin-bottom: 2rem; }

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  display: block;
}

/* Search */
.search-box {
  position: relative;
  margin-bottom: 0.5rem;
}

.search-box input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.4rem;
  border-radius: 10px;
  border: 1.5px solid var(--mist);
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus    { border-color: var(--gold); }
.search-box input::placeholder { color: #aaa; }

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.9rem;
  pointer-events: none;
}

/* Filter groups */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.filter-btn:hover  { background: var(--cream); }
.filter-btn.active { background: var(--gold-pale); color: var(--gold); font-weight: 600; }

.filter-count {
  font-size: 0.72rem;
  background: var(--mist);
  color: #888;
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
  font-weight: 500;
}

.filter-btn.active .filter-count { background: var(--gold-light); color: #fff; }

/* Year filter */
.year-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.year-tag {
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1.5px solid var(--mist);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #888;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.year-tag:hover  { border-color: var(--gold); color: var(--gold); }
.year-tag.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── CONTENT AREA ─── */
.content-area {
  padding: 2.5rem 3rem 4rem;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-count { font-size: 0.88rem; color: #888; }
.results-count strong { color: var(--navy); }

.sort-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sort-label { font-size: 0.82rem; color: #999; }

.sort-select {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  border: 1.5px solid var(--mist);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.84rem;
  color: var(--navy);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.sort-select:focus { border-color: var(--gold); }

.view-toggle { display: flex; gap: 0.3rem; }

.view-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--mist);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.15s;
  color: #aaa;
}

.view-btn:hover { border-color: var(--gold); color: var(--gold); }
.view-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ─── FEATURED PUBLICATION ─── */
.featured-pub {
  background: var(--navy);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s ease both;
}

.featured-pub::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,152,110,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(168,152,110,0.15);
  border: 1px solid rgba(168,152,110,0.3);
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.featured-pub h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.8rem;
  max-width: 600px;
  position: relative;
}

.featured-authors {
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
}

.featured-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}

.featured-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.featured-abstract {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 640px;
  margin-bottom: 1.5rem;
  position: relative;
}

.featured-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  position: relative;
}

/* ─── PUBLICATION CARDS ─── */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pub-card {
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--mist);
  padding: 1.8rem 2rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}

.pub-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pub-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.pub-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pub-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.tag-study    { background: rgba(168,152,110,0.12); color: var(--gold); }
.tag-review   { background: rgba(23,60,87,0.10);   color: var(--navy); }
.tag-meta     { background: rgba(60,150,140,0.10);  color: #2a8a80; }
.tag-clinical { background: rgba(200,100,100,0.10); color: #b05050; }
.tag-community{ background: rgba(140,80,160,0.10);  color: #8050a0; }
.tag-neuro    { background: rgba(90,120,180,0.12);  color: #4060a0; }

.pub-year {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: #bbb;
  font-weight: 500;
  white-space: nowrap;
  padding-top: 0.1rem;
}

.pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.pub-card:hover .pub-title { color: var(--gold); }

.pub-authors {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.pub-authors strong { color: var(--navy); font-weight: 600; }

.pub-journal {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.pub-abstract {
  font-size: 0.84rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pub-metrics { display: flex; gap: 1.2rem; }

.pub-metric {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #aaa;
}

.pub-metric .metric-val { font-weight: 600; color: var(--navy); }

.pub-actions { display: flex; gap: 0.5rem; }

.action-btn {
  padding: 0.38rem 0.9rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1.5px solid var(--mist);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.action-btn:hover { border-color: var(--gold); color: var(--gold); }

.action-btn.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.action-btn.primary:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* Open access badge */
.oa-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #2a8a80;
  background: rgba(60,150,140,0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* DOI chip */
.doi-chip {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: #bbb;
  background: var(--cream);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--mist);
}

/* ─── NO RESULTS ─── */
.no-results {
  display: none;
  text-align: center;
  padding: 3rem;
  color: #aaa;
}

.no-results-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.no-results-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.no-results-text { font-size: 0.88rem; }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--mist);
}

.page-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--mist);
  background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover  { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.page-btn.arrow  { font-size: 1rem; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.page-ellipsis { color: #ccc; padding: 0 0.3rem; }

/* ─── NEWSLETTER STRIP ─── */
.newsletter-strip {
  background: var(--gold-pale);
  border: 1.5px solid var(--mist);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.newsletter-strip h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.newsletter-strip p { font-size: 0.83rem; color: #888; }

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 0.6rem 1rem;
  border-radius: 50px;
  border: 1.5px solid var(--mist);
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input:focus { border-color: var(--gold); }

.newsletter-form button {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  background: var(--navy);
  color: #fff;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--gold); }

/* ─── STAGGER ANIMATIONS ─── */
.pub-card:nth-child(1) { animation-delay: 0.05s; }
.pub-card:nth-child(2) { animation-delay: 0.10s; }
.pub-card:nth-child(3) { animation-delay: 0.15s; }
.pub-card:nth-child(4) { animation-delay: 0.20s; }
.pub-card:nth-child(5) { animation-delay: 0.25s; }
.pub-card:nth-child(6) { animation-delay: 0.30s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--mist);
  }

  .content-area { padding: 2rem 1.5rem; }

  .page-header { padding: 7rem 5% 3rem; }
}

@media (max-width: 600px) {
  .featured-pub  { padding: 1.8rem; }
  .pub-card      { padding: 1.4rem; }
  .pub-metrics   { display: none; }
  .doi-chip      { display: none; }
}
