/* ============================================================
   CityInsider — Articles pages CSS
   Used by: articles.php, article.php
   Tokens: --teal #3abfbf  --dark #111  --bg #f7f6f3
   ============================================================ */

:root {
  --art-teal:       #3abfbf;
  --art-teal-h:     #2ea8a8;
  --art-teal-light: rgba(58,191,191,.12);
  --art-dark:       #111111;
  --art-text:       #1a1a1a;
  --art-muted:      #6b7280;
  --art-bg:         #f7f6f3;
  --art-card:       #ffffff;
  --art-border:     #e5e7eb;
  --art-radius:     6px;
}

/* ── PAGE HEADER ───────────────────────────────────────────── */
.articles-page-header {
  background: var(--art-dark);
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 3px solid var(--art-teal);
}
.articles-page-header h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin: 0 0 8px;
}
.articles-page-header p {
  color: #999;
  font-size: 16px;
  margin: 0;
}

/* ── CATEGORY TABS ─────────────────────────────────────────── */
.articles-tabs-wrap {
  background: #fff;
  border-bottom: 1px solid var(--art-border);
  position: sticky;
  top: 70px;
  z-index: 80;
}
.articles-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
  margin: 0;
}
.articles-tabs::-webkit-scrollbar { display: none; }
.articles-tabs .art-tab {
  flex-shrink: 0;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--art-muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
  user-select: none;
}
.articles-tabs .art-tab:hover  { color: var(--art-text); }
.articles-tabs .art-tab.active {
  color: var(--art-teal);
  border-bottom-color: var(--art-teal);
}

/* ── ARTICLES CONTAINER ────────────────────────────────────── */
.articles-container { padding: 40px 0 60px; }

/* ── FEATURED ARTICLE ──────────────────────────────────────── */
.art-featured {
  display: grid;
  grid-template-columns: 1fr 400px;
  background: var(--art-card);
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  overflow: hidden;
  margin-bottom: 36px;
  min-height: 340px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.art-featured:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
  color: inherit;
  text-decoration: none;
}
.art-featured__img {
  position: relative;
  overflow: hidden;
  background: #1a2a2a;
  min-height: 280px;
}
.art-featured__img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.art-featured__img .art-no-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#1a2a2a,#2a3a3a);
  color: var(--art-teal); font-size: 13px; letter-spacing: .1em;
  min-height: 280px;
}
.art-featured__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--art-teal);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  letter-spacing: .08em; text-transform: uppercase;
}
.art-featured__body {
  padding: 32px 28px;
  display: flex; flex-direction: column;
}
.art-featured__meta {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px; flex-wrap: wrap;
}
.art-tag {
  display: inline-flex; align-items: center;
  background: var(--art-teal-light);
  color: var(--art-teal); border: 1px solid var(--art-teal);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px;
  text-transform: none;
}
.art-tag--yellow {
  background: rgba(245,200,66,.12);
  color: #b8900a; border-color: #f5c842;
}
.art-tag--red {
  background: rgba(224,90,78,.12);
  color: #c0392b; border-color: #e05a4e;
}
.art-meta-time {
  font-size: 13px; color: var(--art-muted);
}
.art-featured__title {
  font-size: 24px; font-weight: 700;
  line-height: 1.25; margin-bottom: 12px;
}
.art-featured__excerpt {
  font-size: 15px; color: var(--art-muted);
  line-height: 1.6; flex: 1; margin-bottom: 20px;
}
.art-featured__footer {
  display: flex; align-items: center;
  justify-content: space-between;
}
.art-author {
  display: flex; align-items: center; gap: 10px;
}
.art-author__avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--art-teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--art-teal);
  flex-shrink: 0;
}
.art-author__name  { font-size: 13px; font-weight: 600; }
.art-author__date  { font-size: 12px; color: var(--art-muted); }
.art-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--art-teal); color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--art-radius);
  border: none; cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.art-btn:hover { background: var(--art-teal-h); color: #fff; text-decoration: none; }

/* ── SECTION TITLE ─────────────────────────────────────────── */
.art-section-title {
  font-size: 18px; font-weight: 700;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  color: var(--art-text);
}
.art-section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--art-border);
}

/* ── ARTICLES GRID ─────────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.article-card {
  background: var(--art-card);
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .15s;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.article-card__img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; display: block;
  background: #e0e0e0;
}
.article-card__img-ph {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #aaa;
}
.article-card__body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; flex: 1;
}
.article-card__tags {
  display: flex; gap: 6px; margin-bottom: 9px; flex-wrap: wrap;
}
.article-card__title {
  font-size: 16px; font-weight: 600;
  line-height: 1.3; margin-bottom: 7px;
}
.article-card__excerpt {
  font-size: 13px; color: var(--art-muted);
  line-height: 1.5; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}
.article-card__footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--art-border);
}
.article-card__meta {
  font-size: 12px; color: var(--art-muted);
  display: flex; align-items: center; gap: 6px;
}
.article-card__meta-dot::before { content: '·'; margin-right: 2px; }
.art-read-more {
  font-size: 12px; font-weight: 600;
  color: var(--art-teal);
}
.art-read-more::after { content: ' →'; }

/* ── LOAD MORE ─────────────────────────────────────────────── */
.art-load-more { text-align: center; margin-bottom: 20px; }
.art-btn--outline {
  background: transparent; color: var(--art-teal);
  border: 1.5px solid var(--art-teal);
}
.art-btn--outline:hover { background: var(--art-teal-light); }

/* ── NO RESULTS ────────────────────────────────────────────── */
.art-empty {
  text-align: center; padding: 60px 0;
  color: var(--art-muted); font-size: 15px;
  grid-column: 1 / -1;
}

/* ── READING PROGRESS BAR ──────────────────────────────────── */
.reading-progress {
  position: fixed; top: 70px; left: 0; right: 0;
  height: 3px; background: transparent; z-index: 999;
}
.reading-progress__bar {
  height: 100%; background: var(--art-teal);
  width: 0%; transition: width .1s linear;
}

/* ── ARTICLE HERO ──────────────────────────────────────────── */
.article-hero {
  width: 100%;
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, #1a2a2a 0%, #0d1f1f 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.article-hero img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; display: block;
}
.article-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.45) 100%);
}
.article-hero__label {
  color: var(--art-teal); font-size: 14px;
  letter-spacing: .1em; z-index: 1;
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.art-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--art-muted);
  padding: 14px 0 0;
  flex-wrap: wrap;
}
.art-breadcrumb a { color: var(--art-muted); text-decoration: none; }
.art-breadcrumb a:hover { color: var(--art-teal); }
.art-breadcrumb__sep { color: var(--art-border); }
.art-breadcrumb__cur { color: var(--art-text); }

/* ── ARTICLE LAYOUT ────────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 270px;
  gap: 48px;
  align-items: start;
  padding: 0 0 60px;
}

/* ── ARTICLE BODY ──────────────────────────────────────────── */
.article-body { padding-top: 28px; }
.article-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.article-title {
  font-size: 32px; font-weight: 700;
  line-height: 1.2; letter-spacing: -.5px;
  margin-bottom: 18px;
  color: var(--art-text);
}
.article-meta {
  display: flex; align-items: center;
  gap: 16px; margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--art-border);
  flex-wrap: wrap;
}
.art-meta-pill {
  font-size: 13px; color: var(--art-muted);
  display: flex; align-items: center; gap: 4px;
}

/* ── ARTICLE PROSE ─────────────────────────────────────────── */
.article-prose { max-width: 680px; }
.article-prose p {
  font-size: 17px; line-height: 1.8;
  color: #2a2a2a; margin-bottom: 18px;
}
.article-prose p.lead {
  font-size: 19px; color: var(--art-muted);
  line-height: 1.7; margin-bottom: 22px;
}
.article-prose h2 {
  font-size: 23px; font-weight: 700;
  margin: 36px 0 12px; line-height: 1.25;
  color: var(--art-text);
}
.article-prose h3 {
  font-size: 18px; font-weight: 600;
  margin: 24px 0 10px;
}
.article-prose blockquote {
  border-left: 3px solid var(--art-teal);
  padding: 6px 0 6px 18px;
  margin: 24px 0;
  font-size: 17px; font-style: italic;
  color: var(--art-muted); line-height: 1.65;
}
.article-prose figure { margin: 28px 0; }
.article-prose figure img,
.article-prose .art-inline-img {
  width: 100%; border-radius: var(--art-radius);
  aspect-ratio: 16/9; object-fit: cover;
  display: block;
}
.article-prose figcaption {
  font-size: 13px; color: var(--art-muted);
  text-align: center; margin-top: 8px;
}
.article-prose ul,
.article-prose ol {
  margin: 14px 0 18px 24px;
  font-size: 17px; line-height: 1.8; color: #2a2a2a;
}
.article-prose li { margin-bottom: 5px; }
.article-prose a {
  color: var(--art-teal); text-decoration: underline;
}

/* Place card (inline location link) */
.place-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--art-card);
  border: 1.5px solid var(--art-teal);
  border-radius: var(--art-radius);
  padding: 12px 14px; margin: 20px 0;
  cursor: pointer; text-decoration: none;
  color: inherit;
  transition: box-shadow .2s;
}
.place-card:hover {
  box-shadow: 0 4px 16px var(--art-teal-light);
  color: inherit; text-decoration: none;
}
.place-card__icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--art-teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.place-card__name { font-size: 14px; font-weight: 600; }
.place-card__sub  { font-size: 12px; color: var(--art-muted); margin-top: 1px; }
.place-card__arrow { margin-left: auto; color: var(--art-teal); font-size: 16px; }

/* CTA block */
.article-cta {
  background: #f0f2f5;
  border: 1px solid var(--art-border);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px 0 0;
  display: flex; align-items: center;
  gap: 28px; flex-wrap: wrap;
}
.article-cta__text { flex: 1; }
.article-cta__label {
  font-size: 11px; font-weight: 600;
  color: var(--art-teal); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 6px;
}
.article-cta__title {
  color: var(--art-text); font-size: 20px; font-weight: 700;
  line-height: 1.25; margin-bottom: 6px;
}
.article-cta__sub { color: var(--art-muted); font-size: 13px; }
.article-cta__btns { display: flex; gap: 9px; flex-wrap: wrap; }
.article-cta__btns a,
.article-cta__btns a:hover,
.article-cta__btns a:visited { color: #fff; text-decoration: none; }

/* Buttons matching inline-cta style from main site */
.art-btn--blue {
  background: #24A1DE; color: #fff;
  opacity: .87;
}
.art-btn--blue:hover  { background: #24A1DE; opacity: 1; color: #fff; }
.art-btn--yellow {
  background: #d8a053; color: #fff;
  opacity: .87;
}
.art-btn--yellow:hover { background: #d8a053; opacity: 1; color: #fff; }

.art-btn--ghost {
  background: transparent; color: var(--art-muted);
  border: 1.5px solid var(--art-border);
}
.art-btn--ghost:hover { border-color: var(--art-teal); color: var(--art-teal); }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.article-aside {
  padding-top: 28px;
  position: sticky; top: 90px;
}
.aside-block {
  background: var(--art-card);
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  padding: 18px;
  margin-bottom: 16px;
}
.aside-block__title {
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--art-muted); margin-bottom: 12px;
}
.art-toc { list-style: none; padding: 0; margin: 0; }
.art-toc li { margin-bottom: 1px; }
.art-toc a {
  font-size: 13px; color: var(--art-muted);
  padding: 5px 8px; border-radius: 4px;
  display: block; text-decoration: none;
  transition: color .15s, background .15s;
}
.art-toc a:hover,
.art-toc a.active {
  color: var(--art-teal); background: var(--art-teal-light);
}
.art-share-btns { display: flex; flex-direction: column; gap: 7px; }
.art-share-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 4px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--art-border);
  background: var(--art-card); cursor: pointer;
  text-decoration: none; color: var(--art-text);
  transition: border-color .15s, color .15s;
}
.art-share-btn:hover { border-color: var(--art-teal); color: var(--art-teal); text-decoration: none; }

/* ── RELATED ARTICLES ──────────────────────────────────────── */
.related-articles { padding: 0 0 60px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card {
  background: var(--art-card);
  border: 1px solid var(--art-border);
  border-radius: var(--art-radius);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: box-shadow .2s, transform .15s;
}
.related-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.07);
  transform: translateY(-2px);
  color: inherit; text-decoration: none;
}
.related-card__img {
  width: 100%; aspect-ratio: 16/9;
  object-fit: cover; background: #e8e8e8; display: block;
}
.related-card__img-ph {
  width: 100%; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #bbb;
}
.related-card__body { padding: 12px 14px; }
.related-card__cat {
  font-size: 11px; font-weight: 600; color: var(--art-teal);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 5px;
}
.related-card__title {
  font-size: 14px; font-weight: 600; line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .art-featured { grid-template-columns: 1fr; }
  .art-featured__img { min-height: 220px; }
  .art-featured__title { font-size: 20px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-aside { display: none; }
  .article-hero { aspect-ratio: 16/9; }
  .article-title { font-size: 26px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .articles-grid { grid-template-columns: 1fr; }
  .articles-page-header h1 { font-size: 24px; }
  .article-prose p { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 20px; }
}
