/* ==========================================================================
   Green Velvet Resort – Blog
   Loaded after style.css on blog.html and every post in /blogs/.
   Uses the colour, font and spacing tokens defined in style.css.
   ========================================================================== */

/* Blog is the current section on single posts too */
.nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 1280px) {
  .nav__link[aria-current="true"] { color: var(--lime); }
}

/* ---------- Meta line: date · read time · category ---------- */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-meta i { margin-right: 7px; color: var(--moss); }
.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--lime-200);
  color: var(--forest-700);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------- Blog listing ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card:focus-within { outline: 2px solid var(--lime); outline-offset: 4px; }

.post-card__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--forest-800);
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.post-card:hover .post-card__media img { transform: scale(1.06); }

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
}
.post-card__title {
  margin-bottom: .45em;
  font-size: clamp(1.45rem, 1.8vw, 1.75rem);
  font-weight: 600;
}
.post-card__excerpt { font-size: .95em; line-height: 1.7; }
/* The title link covers the whole card, so the card is one click target */
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.post-card__title a:focus-visible { outline: none; }
.post-card__excerpt { margin-bottom: 0; }
.post-card .link-arrow { margin-top: auto; padding-top: 26px; }
.post-card .link-arrow i { transition: transform .45s var(--ease); }
.post-card:hover .link-arrow i { transform: translateX(5px); }

/* Latest post spans the full row, photo beside text */
.post-card--featured { grid-column: 1 / -1; }
@media (min-width: 901px) {
  .post-card--featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
  }
  .post-card--featured .post-card__media { aspect-ratio: auto; min-height: 440px; }
  .post-card--featured .post-card__body {
    justify-content: center;
    padding: clamp(36px, 4.5vw, 68px);
  }
  .post-card--featured .post-card__title { font-size: clamp(2rem, 3.1vw, 2.9rem); }
}

/* ---------- Single post: hero ---------- */
.post-hero .page-hero__title {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
}
.post-hero .post-meta {
  margin: 26px 0 0;
  color: rgba(247, 243, 234, .88);
}
.post-hero .post-meta i { color: var(--lime); }
.post-hero .post-tag { background: var(--lime); color: var(--forest-950); }

/* ---------- Single post: layout ---------- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(40px, 6vw, 88px);
}
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Single post: article text ---------- */
.prose { max-width: 740px; }
.prose > .lead { color: var(--ink); }
.prose h2 {
  margin: 1.7em 0 .5em;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.prose h3 {
  margin: 1.5em 0 .4em;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}
.prose h2 + h3 { margin-top: .6em; }
.prose a:not(.btn) {
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--moss);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .3s var(--ease);
}
.prose a:not(.btn):hover { color: var(--moss); }
.prose strong { color: var(--ink); }
.prose ul:not(.check-list),
.prose ol {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}
.prose ul:not(.check-list) { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ul:not(.check-list) li,
.prose ol li { margin-bottom: .55em; padding-left: .3em; }
.prose li::marker { color: var(--moss); font-weight: 700; }
.prose .check-list { margin: 0 0 1.4em; }

.prose figure { margin: clamp(32px, 4vw, 52px) 0; }
.prose figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.prose figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--muted);
}

/* Comparison tables (scroll sideways inside the box on narrow phones, never the page) */
.prose .table-wrap {
  margin: 0 0 1.6em;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95em;
  line-height: 1.55;
}
.prose th,
.prose td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose tbody tr:last-child th,
.prose tbody tr:last-child td { border-bottom: 0; }
.prose thead th {
  background: var(--forest-900);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.prose tbody th {
  width: 26%;
  font-weight: 700;
  color: var(--ink);
}
.prose tbody tr:nth-child(even) { background: rgba(239, 232, 217, .45); }
@media (max-width: 560px) {
  .prose th,
  .prose td { padding: 12px 12px; }
  .prose table { font-size: .9em; }
}

/* "Good to know" box */
.post-tip {
  display: flex;
  gap: 18px;
  margin: 34px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.post-tip__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-200);
  color: var(--forest-700);
  font-size: 18px;
}
.post-tip__title {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
}

/* Season cards inside the article */
.season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 0 0 1.4em;
}
.season {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.season i { font-size: 20px; color: var(--moss); }
.season h3 { margin: 12px 0 2px; font-size: 1.45rem; }
.season__months {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.season p { margin: 0; font-size: .95em; line-height: 1.65; }

/* ---------- Single post: tags, share, back ---------- */
.post-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 740px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.share { display: flex; align-items: center; gap: 10px; }
.share__label {
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.share a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.share a:hover { border-color: var(--lime); background: var(--lime); color: var(--forest-950); }
.post-back { margin-top: 40px; }
.post-back .link-arrow i { transition: transform .45s var(--ease); }
.post-back .link-arrow:hover i { transform: translateX(-5px); }

/* ---------- Single post: sidebar ---------- */
.post-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.aside-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.aside-card__title { margin-bottom: .45em; font-size: 1.65rem; }
.aside-card p { font-size: .95em; line-height: 1.7; }
.aside-card__logo { width: 72px; margin-bottom: 16px; }

.aside-links li { border-bottom: 1px dashed var(--line); }
.aside-links li:last-child { border-bottom: 0; }
.aside-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s var(--ease);
}
.aside-links a i { font-size: 12px; color: var(--moss); transition: transform .35s var(--ease); }
.aside-links a:hover { color: var(--moss); }
.aside-links a:hover i { transform: translateX(4px); }

.aside-card--dark {
  background:
    radial-gradient(400px 260px at 0% 0%, rgba(169, 207, 56, .16), transparent 60%),
    var(--forest-900);
  color: rgba(247, 243, 234, .82);
}
.aside-card--dark .aside-card__title { color: var(--cream); }
.aside-card--dark .eyebrow { margin-bottom: 12px; }
.aside-card--dark .btn { width: 100%; }
.aside-card--dark .btn + .btn { margin-top: 12px; color: var(--cream); }
.aside-card--sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

@media (max-width: 1000px) {
  .post-aside {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
  .aside-card--sticky { position: static; }
}
