/* ==========================================================================
   Trekking Nepal — Travel Guide (Blog) page styles — page-specific styles
   Shared tokens, reset, navbar, footer, and buttons live in base.css
   ========================================================================== */

/* ==========================================================================
   Pills, grids, and other small shared shapes (duplicated per-page, see note above)
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
}
.pill--amber { background-color: var(--amber-500); color: #fff; }
.pill--dark { background-color: rgba(13, 31, 22, 0.8); color: var(--parchment); backdrop-filter: blur(4px); }

.grid { display: grid; gap: 1.5rem; }
.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.flex-between {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .flex-between { flex-direction: row; align-items: flex-end; }
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.filters-panel__count { font-size: 0.8125rem; color: var(--ink-soft); }
.filters-panel__count strong { color: var(--pine-950); }
.link-inline { font-weight: 500; color: var(--pine-800); font-size: 0.875rem; }
.link-inline:hover { text-decoration: underline; }

.empty-state {
  border-radius: 1rem;
  border: 1px dashed rgba(18, 51, 34, 0.2);
  background-color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.empty-state p { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--ink-soft); }

.text-center { text-align: center; }
.mt-8 { margin-top: 2rem; }

.cta-dark { background-color: var(--pine-950); padding-block: 4rem; text-align: center; }
@media (min-width: 640px) { .cta-dark { padding-block: 5rem; } }
.cta-dark__inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.cta-dark__title { max-width: 32rem; font-size: 1.5rem; font-weight: 600; color: var(--parchment); }
@media (min-width: 640px) { .cta-dark__title { font-size: 1.875rem; } }
.cta-dark__desc { max-width: 28rem; color: rgba(220, 236, 226, 0.8); }

/* ==========================================================================
   Article cards — mirrors trip-card.php's media+body shape
   ========================================================================== */
.article-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  background-color: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}
.article-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--pine-900);
}
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.article-card:hover .article-card__media img { transform: scale(1.04); }
.article-card__category {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
}
.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.15rem 1.25rem 1.35rem;
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
  line-height: 1.3;
}
.article-card__title a:hover { color: var(--pine-700); }
.article-card__excerpt {
  margin-top: 0.6rem;
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(18, 51, 34, 0.08);
}
.article-card__read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.article-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pine-800);
}
.article-card__cta:hover { color: var(--pine-600); }

/* ==========================================================================
   Single article page
   ========================================================================== */
.article-header {
  position: relative;
  overflow: hidden;
  background-color: var(--pine-950);
}
.article-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.article-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pine-950), rgba(13, 31, 22, 0.75), rgba(13, 31, 22, 0.4));
}
.article-header__inner {
  position: relative;
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .article-header__inner { padding-block: 4.5rem; }
}
.article-header__breadcrumb { color: rgba(220, 236, 226, 0.7); }
.article-header__breadcrumb a:hover { color: var(--parchment); }
.article-header__category { margin-top: 1rem; }
.article-header__title {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: var(--text-h1);
  font-weight: 600;
  color: var(--parchment);
}
.article-header__desc {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(220, 236, 226, 0.85);
}
.article-header__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  color: rgba(220, 236, 226, 0.85);
}
.article-header__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; }
}

.article-prose {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: var(--leading-relaxed);
  color: var(--ink);
}
.article-prose p { margin: 0 0 1.15rem; }
.article-prose h2 {
  margin: 2.25rem 0 0.85rem;
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--pine-950);
}
.article-prose h2:first-child { margin-top: 0; }
.article-prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--pine-950);
}
.article-prose ul, .article-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.5rem;
}
.article-prose ul { list-style: disc; }
.article-prose ol { list-style: decimal; }
.article-prose li { margin-bottom: 0.5rem; }
.article-prose strong { color: var(--pine-950); font-weight: 600; }
.article-prose > :last-child { margin-bottom: 0; }

.article-cta-card {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  border-radius: 1rem;
  background-color: var(--pine-50);
  padding: 1.5rem;
  border: 1px solid rgba(18, 51, 34, 0.08);
}
@media (min-width: 560px) {
  .article-cta-card { flex-direction: row; align-items: center; justify-content: space-between; }
}
.article-cta-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.article-cta-card p { margin-top: 0.35rem; font-size: 0.9375rem; color: var(--ink-soft); }

.article-aside { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 960px) {
  .article-aside { position: sticky; top: 6.5rem; }
}
.article-aside__card {
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.06);
}
.article-aside__card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pine-950);
}
.article-aside__category-desc {
  margin: 0.4rem 0 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.article-aside__list {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.article-aside__list li + li { border-top: 1px solid rgba(18, 51, 34, 0.08); }
.article-aside__list a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.1rem;
}
.article-aside__list-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pine-950);
  line-height: 1.4;
}
.article-aside__list a:hover .article-aside__list-title { color: var(--pine-700); }
.article-aside__list-meta { font-size: 0.75rem; color: var(--ink-soft); }
.article-aside__card--dark {
  background-color: var(--pine-900);
  border-color: var(--pine-900);
}
.article-aside__card--dark h3 { color: var(--parchment); }
.article-aside__card--dark p { margin: 0.4rem 0 1rem; font-size: 0.875rem; color: rgba(220, 236, 226, 0.8); }

/* ==========================================================================
   Scroll-reveal — the ".reveal" class is only ever added by blog.js, so a
   visitor with JS disabled (or before it loads) always sees cards at full
   opacity; this is a progressive-enhancement flourish, never a dependency.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
