/* ============================================================
   news.css
   News Listing · Single Article Page · Author Card ·
   Pull Quote · More from BRENDZ · Back to Top
   ============================================================ */


/* ARTICLES GRID (listing page) */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}


/* ARTICLE CARD */

.article-card {
  display: block; 
  color: inherit; background: var(--cream);
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: background 0.3s, transform 0.25s;
}
.article-card::after {
  content: ''; position: absolute; 
  bottom: 0; left: 0; width: 0; height: 3px; 
  background: var(--crimson);
  transition: width 0.45s ease;
}
.article-card:hover        { background: #fff; transform: translateY(-5px); }
.article-card:hover::after { width: 100%; }
.article-card-inner        { padding: 36px 32px; }

.article-cat {
  display: inline-block;
  font-size: 9px; font-family: 'DM Sans', sans-serif; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--amber); background: var(--amber-glass);
  padding: 3px 10px; margin-bottom: 16px;
}
.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2vw, 28px); font-weight: 600;
  color: var(--crimson); line-height: 1.2; margin-bottom: 12px;
}
.article-excerpt {
  font-size: 14px; color: var(--muted); line-height: 1.75;
  margin-bottom: 24px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-bottom: 20px; 
}
.article-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--crimson); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 700; 
}
.article-meta-text { 
  display: flex; 
  flex-direction: column; 
  gap: 2px; 
}
.article-author { 
  font-size: 13px; 
  font-weight: 600; 
  color: var(--text); 
}
.article-date { 
  font-size: 12px; 
  color: var(--muted); 
}
.article-read-more {
  font-size: 11px; font-family: 'DM Sans', sans-serif; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--amber);
  display: flex; align-items: center; gap: 6px;
}
.article-read-more svg { 
  width: 14px; 
  height: 14px; 
  transition: transform 0.2s; 
}
.article-card:hover .article-read-more svg { transform: translateX(4px); }


/* EMPTY STATE  */

.news-empty { 
  grid-column: 1 / -1; 
  text-align: center; 
  padding: 80px 0; 
}
.news-empty-title  {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 600; color: var(--crimson); 
  margin-bottom: 12px;
}
.news-empty-sub { 
  font-size: 15px; color: var(--muted); line-height: 1.7; 
  margin-bottom: 0; 
}


/* SINGLE ARTICLE PAGE */

.article-page     { max-width: 760px; margin: 0 auto; }

/* Meta bar — date + reading time */
.article-page-meta-bar {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.meta-bar-date  { font-size: 13px; color: var(--muted); }
.meta-bar-dot   {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0;
}
.meta-bar-read  {
  font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--amber);
}

/* Article body */
.article-page-body { font-size: 17px; line-height: 1.9; color: var(--text); }
.article-page-body p  { margin-bottom: 1.3rem; }

.article-page-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 2.5vw, 36px); font-weight: 600; color: var(--crimson);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.article-page-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(20px, 2vw, 28px); font-weight: 600; color: var(--crimson);
  margin: 2rem 0 0.75rem;
}
.article-page-body ul,
.article-page-body ol { 
  padding-left: 0; 
  margin: 0.75rem 0 1.3rem; 
}
.article-page-body ul li {
  padding: 8px 0 8px 20px;
  border-bottom: 1px solid var(--border);
  position: relative; font-size: 16px;
}
.article-page-body ul li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); transform: translateY(-50%);
}
.article-page-body ul li:last-child { border-bottom: none; }
.article-page-body ol    { padding-left: 20px; }
.article-page-body ol li { margin-bottom: 8px; font-size: 16px; }
.article-page-body strong { font-weight: 600; }
.article-page-body em     { font-style: italic; }
.article-page-body code {
  background: var(--cream); padding: 2px 6px;
  font-size: 14px; font-family: monospace;
  border: 1px solid var(--border);
}

/* PULL QUOTE (blockquote)  */

.article-page-body blockquote {
  background: var(--crimson);
  border-left: 4px solid var(--amber);
  padding: 28px 36px;
  margin: 2.5rem 0;
}
.article-page-body blockquote p {
  margin-bottom: 0;
  border-bottom: none;
  font-size: inherit;
  padding: 0;
}
.article-page-body blockquote p::before { display: none; }
/* First paragraph — the main quote */
.article-page-body blockquote p:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  font-style: italic; color: #fff;
  line-height: 1.5; margin-bottom: 14px;
}
/* Second paragraph — the context/caption line */
.article-page-body blockquote p:not(:first-child) {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--amber); font-style: normal;
  line-height: 1.6; margin-bottom: 0;
}


/* AUTHOR CARD */

.author-card {
  display: flex; align-items: center; gap: 28px;
  background: var(--crimson);
  padding: 36px 40px;
  margin: 56px 0 0;
  position: relative;
}
.author-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 56px; height: 4px; 
  background: var(--amber);
}
.author-card-avatar {
  width: 80px; height: 80px; flex-shrink: 0;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 700; color: var(--dark);
}
.author-card-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 6px;
}
.author-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 600;
  color: #fff; line-height: 1.1; margin-bottom: 6px;
}
.author-card-role {
  font-size: 13px; color: var(--amber);
  font-weight: 500; line-height: 1.5;
}


/* ARTICLE PAGE FOOTER  */

.article-page-footer {
  margin-top: 56px; padding-top: 36px;
  border-top: 1px solid var(--border);
}


/* MORE FROM BRENDZ  */

.more-section {
  background: var(--cream);
  padding: 80px 9%;
  display: none;
}
.more-section-header {
  display: flex; align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.more-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3vw, 44px); font-weight: 600;
  color: var(--crimson); line-height: 1.12;
}
.more-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}


/* BACK TO TOP BUTTON */

.back-to-top {
  position: fixed;
  bottom: 36px; right: 36px;
  width: 48px; height: 48px;
  background: var(--crimson); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  pointer-events: none;
  z-index: 99;
}
.back-to-top svg {
  width: 18px; height: 18px;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.back-to-top:hover    { background: var(--crimson-dark); }
.back-to-top.visible  {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}


/*  RESPONSIVE  */

@media (max-width: 900px) {
  .articles-grid       { grid-template-columns: 1fr 1fr; }
  .more-articles-grid  { grid-template-columns: 1fr 1fr; }
  .more-section        { padding: 64px 5%; }
  .author-card { 
    flex-direction: column; align-items: flex-start; 
    gap: 20px; padding: 28px 24px; 
  }
  .more-section-header { 
    flex-direction: column; align-items: flex-start; 
    gap: 16px; 
  }
}
@media (max-width: 600px) {
  .articles-grid       { grid-template-columns: 1fr; }
  .more-articles-grid  { grid-template-columns: 1fr; }
  .article-card-inner  { padding: 28px 24px; }
  .article-page-body   { font-size: 16px; }
  .back-to-top         { bottom: 24px; right: 24px; }
  .article-page-body blockquote { padding: 20px 24px; }
}
