/* ==========================================================================
   喵遊記 Meow Travels — 台灣美食．旅遊．生活
   Vanilla CSS conversion (originally React + Tailwind + GSAP)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --color-cream: #FAF7F2;
  --color-white: #FFFFFF;
  --color-dark: #1a1a2e;
  --color-text-primary: #1a1a2e;
  --color-text-secondary: #6B5F58;
  --color-text-light: #9C9088;
  --color-coral: #E85D4C;
  --color-coral-dark: #D14A3A;
  --color-amber: #F5A623;
  --color-border: #E8E2DA;
  --color-tag-bg: #F0EBE3;
  --color-vibrant-pink: #FF6B9D;
  --color-vibrant-orange: #FF8C42;
  --color-vibrant-teal: #06D6A0;
  --color-vibrant-purple: #9B5DE5;
  --color-vibrant-blue: #00BBF9;

  --gradient-brand: linear-gradient(135deg, #E85D4C, #FF8C42);
  --gradient-night: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --footer-bg: #0f0f1a;

  --nav-height: 64px;
  --container-max: 1200px;         /* header width — shared by ALL content   */
  --container-pad: 16px;           /* px-4 on mobile                          */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);              /* strong ease-out — UI motion   */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);           /* on-screen morphs (burger)     */
  --ease-power2-out: cubic-bezier(0.215, 0.61, 0.355, 1);  /* GSAP power2.out — reveals     */
  --press: 0.97;                                           /* shared press-scale            */

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 20px 60px rgba(232, 93, 76, 0.15);
}

@media (min-width: 768px) {
  :root { --container-pad: 32px; } /* md:px-8 — matches the original header  */
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Noto Sans TC", "Inter", system-ui, sans-serif;
  background-color: var(--color-cream);
  color: var(--color-text-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Noto Sans TC", "Inter", system-ui, sans-serif;
  font-weight: 700;
  word-break: keep-all;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}
input { font-family: inherit; }

/* Anchor targets stop below the fixed header */
section[id], [id="coverflow"] { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* --------------------------------------------------------------------------
   3. Shared container — content width === header width (1200px)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* --------------------------------------------------------------------------
   4. Utilities carried over from the original build
   -------------------------------------------------------------------------- */
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

.gradient-text {
  background: linear-gradient(135deg, #E85D4C 0%, #FF8C42 50%, #F5A623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.vibrant-card { transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out); }
/* Hover lift lives in §14 — pointer-fine only, and specific enough to beat .reveal.is-visible */

@keyframes pulse-social {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.social-badge { animation: pulse-social 2s ease-in-out infinite; }

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Scroll-reveal (GSAP ScrollTrigger replacement).
   Hidden state only applies when JS is running (html.js),
   so content is never gated for no-JS visitors. */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s var(--ease-power2-out),
    transform 0.6s var(--ease-power2-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-height);
  background: transparent;
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out),
              backdrop-filter 0.5s var(--ease-out);

  /* text colours flip together when the bar turns solid */
  --nav-ink: #ffffff;
  --nav-muted: rgba(255, 255, 255, 0.85);
  --nav-chip-bg: rgba(255, 255, 255, 0.1);
  --nav-chip-ink: #ffffff;
  --nav-hover-bg: rgba(255, 255, 255, 0.1);
}

.site-nav.is-scrolled,
.site-nav.nav--solid,
.site-nav.menu-open {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  --nav-ink: #1a1a2e;
  --nav-muted: #6B5F58;
  --nav-chip-bg: #f5f5f5;
  --nav-chip-ink: #6B5F58;
  --nav-hover-bg: rgba(232, 93, 76, 0.08);
}
.site-nav.is-scrolled { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand */
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-logo {
  width: 36px; height: 36px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.875rem;
  flex-shrink: 0;
  overflow: hidden;
}
.nav-logo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
.nav-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nav-ink);
  transition: color 0.5s var(--ease-out);
}
.nav-hot-badge {
  display: none;
  align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.nav-hot-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: dot-pulse 2s ease-in-out infinite;
}
@media (min-width: 640px) { .nav-hot-badge { display: inline-flex; } }

/* Desktop links */
.nav-links { display: none; align-items: center; gap: 4px; }
@media (min-width: 768px) { .nav-links { display: flex; } }

.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-muted);
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.nav-link i { font-size: 0.75rem; }
.nav-link:hover { color: var(--color-coral); background: var(--nav-hover-bg); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, #E85D4C, #FF8C42);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--ease-out);
  border-radius: 2px;
}
.nav-link:hover::after { transform: scaleX(1); }

/* Right-side actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Burger button — three bars morphing into an X */
.nav-burger {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  background: var(--nav-chip-bg);
  transition: background 0.3s var(--ease-out), transform 0.16s var(--ease-out);
}
@media (min-width: 768px) { .nav-burger { display: none; } }

.burger-line {
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--nav-chip-ink);
  transition:
    transform 0.35s var(--ease-in-out),
    opacity 0.25s var(--ease-out),
    background 0.3s var(--ease-out);
}
.nav-burger[aria-expanded="true"] .burger-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger[aria-expanded="true"] .burger-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-burger[aria-expanded="true"] { background: rgba(232, 93, 76, 0.1); }
.nav-burger[aria-expanded="true"] .burger-line { background: var(--color-coral); }

/* Mobile dropdown menu — animates on open AND close */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 49;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0 20px;

  opacity: 0;
  transform: translateY(-16px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    visibility 0s linear 0.35s;      /* keep visible until the close animation ends */
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out),
    visibility 0s;
}
@media (min-width: 768px) { .mobile-menu { display: none; } }

.mobile-menu-list { display: flex; flex-direction: column; }

.mobile-menu-link {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-primary);
  border-bottom: 1px solid #f0ece6;
  opacity: 0;
  transform: translateX(-14px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out),
    color 0.25s var(--ease-out);
}
.mobile-menu.is-open .mobile-menu-link {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(60ms * var(--i, 0) + 80ms);   /* staggered entrance */
}
.mobile-menu-link:hover { color: var(--color-coral); }
.mobile-menu-link i {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--color-coral);
  background: rgba(232, 93, 76, 0.08);
}

/* --------------------------------------------------------------------------
   6. Hero coverflow
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: var(--color-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s var(--ease-out);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(26, 26, 46, 0.3) 0%,
    rgba(26, 26, 46, 0.7) 60%,
    rgba(26, 26, 46, 0.95) 100%);
}

/* Trending ticker */
.hero-ticker {
  position: absolute;
  top: 80px; left: 0; right: 0;
  z-index: 20;
  display: none;
}
@media (min-width: 768px) { .hero-ticker { display: block; } }
.ticker-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(232, 93, 76, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Foreground content */
.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 80px;
}
@media (min-width: 768px) { .hero-content { padding-bottom: 96px; } }

/* Elements that swap between slides get a soft crossfade */
.hero-swap {
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out),
              filter 0.35s var(--ease-out);
}
.hero.is-swapping .hero-swap { opacity: 0; transform: translateY(10px); filter: blur(4px); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: var(--color-coral);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.5s var(--ease-out),
              opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  word-break: keep-all;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .hero-subtitle { font-size: 1.25rem; } }

.hero-stats {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}
.hero-stats > span { display: inline-flex; align-items: center; gap: 8px; }
.hero-stats .stat-heart i { color: var(--color-coral); }
.hero-stats .stat-meta { color: rgba(255, 255, 255, 0.5); }

/* Slide navigation: thumbnails + progress bar */
.hero-slidenav { display: flex; align-items: center; gap: 16px; }

.hero-thumb {
  display: flex; align-items: center; gap: 12px;
  transition: transform 0.16s var(--ease-out);
}
.hero-thumb-frame {
  width: 50px; height: 35px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.3);
  opacity: 0.5;
  flex-shrink: 0;
  transition:
    width 0.5s var(--ease-out),
    height 0.5s var(--ease-out),
    border 0.5s var(--ease-out),
    opacity 0.5s var(--ease-out);
}
.hero-thumb-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-thumb.is-active .hero-thumb-frame {
  width: 80px; height: 50px;
  border: 3px solid var(--thumb-color, var(--color-coral));
  opacity: 1;
}
.hero-thumb-label {
  display: none;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  transition: max-width 0.5s var(--ease-out), color 0.3s var(--ease-out);
}
@media (min-width: 768px) { .hero-thumb-label { display: block; } }
.hero-thumb.is-active .hero-thumb-label { max-width: 200px; color: #fff; }

.hero-progress {
  flex: 1;
  margin-left: 16px;
  display: none;
}
@media (min-width: 768px) { .hero-progress { display: block; } }
.hero-progress-track {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}
.hero-progress-fill {
  height: 100%;
  width: 33.3333%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E85D4C, #FF8C42);
  transition: width 0.5s var(--ease-out);
}

/* Floating social sidebar — hidden on mobile, shown from 768px up */
.hero-social {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none; flex-direction: column; gap: 12px;
}
@media (min-width: 768px) { .hero-social { display: flex; right: 32px; } }
.hero-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--s-bg);
  color: var(--s-color);
  border: 1px solid color-mix(in srgb, var(--s-color) 19%, transparent);
  transition: transform 0.3s var(--ease-out);
}
/* .hero-social a hover scale → §14 (pointer-fine only) */

/* --------------------------------------------------------------------------
   7. Shared section pieces
   -------------------------------------------------------------------------- */
.section { padding: 60px 0; }
.section--cream { background: var(--color-cream); }
.section--white { background: var(--color-white); }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.section-head-left { display: flex; align-items: center; gap: 12px; }
.section-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.section-icon--fire  { background: var(--gradient-brand); }
.section-icon--clock { background: var(--color-vibrant-blue); }
.section-title { font-size: 1.5rem; color: var(--color-text-primary); line-height: 1.3; }
.section-sub { font-size: 0.75rem; color: var(--color-text-light); }

.view-all {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-coral);
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}
.view-all:hover { color: var(--color-coral-dark); }
.view-all i { margin-left: 4px; }

/* Category pill used on cards */
.cat-pill {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   8. Featured posts — horizontal scroller
   -------------------------------------------------------------------------- */
.featured-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
}

.featured-card {
  flex-shrink: 0;
  width: 320px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

.card-media {
  position: relative;
  overflow: hidden;
  height: 200px;
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
/* .featured-card image zoom → §14 (pointer-fine only) */
.card-media-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}
.featured-card:hover .card-media-shade { opacity: 1; }
.card-like {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-coral);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.featured-card:hover .card-like { opacity: 1; transform: none; }

.card-body { padding: 16px; }
.card-title {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--color-text-primary);
  transition: color 0.3s var(--ease-out);
}
.featured-card:hover .card-title,
.post-item:hover .card-title { color: var(--color-coral); }

.card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.card-author { display: flex; align-items: center; gap: 8px; }
.card-author img {
  width: 24px; height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.card-author .name { font-size: 0.75rem; font-weight: 500; color: var(--color-text-secondary); }
.card-author .date { font-size: 0.75rem; color: var(--color-text-light); }
.card-stats {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}
.card-stats span { display: inline-flex; align-items: center; gap: 4px; }
.card-stats i { font-size: 0.7rem; }
.card-stats .fa-heart { color: var(--color-coral); }

/* --------------------------------------------------------------------------
   9. Latest posts + sidebar
   -------------------------------------------------------------------------- */
.latest-layout { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .latest-layout { flex-direction: row; } }

.latest-main { flex: 1; min-width: 0; }
.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .latest-grid { grid-template-columns: repeat(2, 1fr); } }

.post-item {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.post-item--featured { grid-column: 1 / -1; }
.post-item .card-media { height: 200px; }
.post-item--featured .card-media { height: 300px; }
/* .post-item image zoom → §14 (pointer-fine only) */

.star-pill {
  position: absolute;
  top: 12px; right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--color-amber);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
}

.post-item .card-body { padding: 20px; }
.post-item .card-title { font-size: 1.05rem; }
.post-item--featured .card-title { font-size: 1.25rem; }
.post-item .card-excerpt { margin-bottom: 16px; line-height: 1.75; }
.post-item--featured .card-excerpt { -webkit-line-clamp: 3; }

.post-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}
.post-meta img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff;
}
.post-meta .name { font-weight: 600; color: var(--color-text-secondary); }

.post-actions {
  display: flex; align-items: center; gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #f5f5f5;
}
.post-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.3s var(--ease-out), transform 0.16s var(--ease-out);
}
.post-action--like:hover    { color: var(--color-coral); }
.post-action--comment:hover { color: var(--color-vibrant-blue); }
.post-action--share:hover   { color: var(--color-vibrant-teal); }
.post-bookmark {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f5f5f5;
  color: var(--color-text-light);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
              transform 0.16s var(--ease-out);
}
.post-bookmark:hover { background: var(--color-tag-bg); color: var(--color-coral); }

/* Sidebar */
.sidebar {
  width: 100%;
  flex-shrink: 0;
  display: flex; flex-direction: column; gap: 24px;
}
@media (min-width: 1024px) { .sidebar { width: 320px; } }

.widget {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
}

.profile-cover { height: 80px; background: var(--gradient-brand); border-radius: 16px 16px 0 0; }
.profile-body { padding: 0 20px 20px; margin-top: -40px; }
.profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 4px #fff;
}
.profile-name { text-align: center; font-size: 1.125rem; margin-bottom: 4px; }
.profile-bio { text-align: center; font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 16px; }
.profile-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.profile-stats .num { display: block; font-weight: 700; color: var(--color-text-primary); text-align: center; }
.profile-stats .lbl { font-size: 0.75rem; color: var(--color-text-light); text-align: center; display: block; }
.profile-follow {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  background: var(--gradient-brand);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
/* .profile-follow hover lift → §14 (pointer-fine only) */

.widget--pad { padding: 20px; }
.widget-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}
.widget-title .fa-fire { color: var(--color-coral); }

.trend-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
}
.trend-item:last-child { border-bottom: none; }
.trend-rank { width: 24px; font-size: 1.125rem; font-weight: 700; color: var(--color-text-light); }
.trend-item:nth-child(-n+3) .trend-rank { color: var(--color-coral); }
.trend-info { flex: 1; }
.trend-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color 0.3s var(--ease-out);
}
.trend-item:hover .trend-title { color: var(--color-coral); }
.trend-views { font-size: 0.75rem; color: var(--color-text-light); }
.trend-arrow { font-size: 0.7rem; }
.trend-arrow--up { color: #22c55e; }
.trend-arrow--same { color: #9ca3af; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.875rem;
  background: #F5F5F5;
  color: var(--color-text-secondary);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
              transform 0.16s var(--ease-out);
}
.tag:hover { background: var(--color-coral); color: #fff; }

/* --------------------------------------------------------------------------
   10. Category highlights
   -------------------------------------------------------------------------- */
.categories-head { text-align: center; margin-bottom: 48px; }
.compass-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}
.compass-pill i { color: var(--color-coral); }
.categories-title { font-size: 1.875rem; margin-bottom: 8px; color: var(--color-text-primary); }
.categories-sub { font-size: 0.875rem; color: var(--color-text-light); }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  cursor: pointer;
}
.cat-card .card-media { height: 200px; }
/* .cat-card image zoom → §14 (pointer-fine only) */
.cat-card .card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
}
.cat-chip {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  color: #fff;
}
.cat-chip i { font-size: 0.875rem; }
.cat-chip span { font-size: 0.875rem; font-weight: 700; }

.cat-body { padding: 20px; }
.cat-heading { font-size: 1.25rem; margin-bottom: 8px; color: var(--color-text-primary); }
.cat-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.cat-stats { display: flex; gap: 16px; margin-bottom: 16px; }
.cat-stats .num { display: block; font-size: 1.125rem; font-weight: 700; text-align: center; }
.cat-stats .lbl { display: block; font-size: 0.75rem; color: var(--color-text-light); text-align: center; }

.cat-top-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.cat-top-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cat-top-link {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  transition: color 0.3s var(--ease-out);
}
.cat-top-link i { font-size: 0.6rem; }
.cat-top-link:hover { color: var(--color-coral); }

.cat-cta {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
/* .cat-cta hover scale → §14 (pointer-fine only) */
.cat-cta i { margin-left: 4px; }

/* Per-category accent colours */
.cat-card--food      { --cat-color: var(--color-coral); }
.cat-card--travel    { --cat-color: var(--color-vibrant-blue); }
.cat-card--lifestyle { --cat-color: var(--color-vibrant-purple); }
.cat-card .cat-chip           { background: var(--cat-color); }
.cat-card .cat-stats .num     { color: var(--cat-color); }
.cat-card .cat-top-link i     { color: var(--cat-color); }
.cat-card--food .cat-cta      { background: linear-gradient(135deg, #E85D4C, #FF8C42); }
.cat-card--travel .cat-cta    { background: linear-gradient(135deg, #00BBF9, #06D6A0); }
.cat-card--lifestyle .cat-cta { background: linear-gradient(135deg, #9B5DE5, #FF6B9D); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); padding: 50px 0 30px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(5, 1fr); } }

.footer-brand { grid-column: span 1; }
@media (min-width: 1024px) { .footer-brand { grid-column: span 2; } }

.footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-logo .nav-logo { width: 40px; height: 40px; }
.footer-logo span { font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 34ch;
}

.footer-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer-col-title .dot { width: 8px; height: 8px; border-radius: 50%; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  transition: color 0.3s var(--ease-out);
}
.footer-links a:hover { color: var(--color-coral); }

.footer-bottom {
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-copy { font-size: 0.75rem; color: var(--color-text-secondary); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.footer-legal a {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  transition: color 0.3s var(--ease-out);
}
.footer-legal a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   12. Inner pages (about / contact / privacy / terms)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-night);
  padding: calc(var(--nav-height) + 64px) 0 64px;
  color: #fff;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 320px; height: 320px;
  border-radius: 50%;
  opacity: 0.12;
  background: radial-gradient(circle, #FF8C42, transparent);
  transform: translate(30%, 30%);
  pointer-events: none;
}
.page-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.page-hero-kicker i { color: var(--color-amber); }
.page-hero-title { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin-bottom: 12px; }
.page-hero-lead { max-width: 640px; color: rgba(255, 255, 255, 0.75); font-size: 1rem; }

.page-body { padding: 56px 0 72px; }

/* Long-form prose (privacy / terms / about story) */
.prose { max-width: 760px; }
.prose h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--color-coral);
  line-height: 1.4;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; color: var(--color-text-secondary); text-wrap: pretty; }
.prose ul { margin: 0 0 14px; padding-left: 4px; display: flex; flex-direction: column; gap: 8px; }
.prose li {
  position: relative;
  padding-left: 22px;
  color: var(--color-text-secondary);
}
.prose li::before {
  content: '\f054'; /* fa-chevron-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.6rem;
  color: var(--color-coral);
  position: absolute;
  left: 0; top: 0.55em;
}
.prose strong { color: var(--color-text-primary); }
.prose a { color: var(--color-coral); font-weight: 600; }
.prose a:hover { color: var(--color-coral-dark); text-decoration: underline; }
.prose .updated {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-tag-bg);
  color: var(--color-text-secondary);
  font-size: 0.8rem;
}

/* About page extras */
.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 1024px) { .about-layout { grid-template-columns: minmax(0, 1fr) 320px; } }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}
.about-stat {
  padding: 20px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.about-stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}
.about-stat .lbl { font-size: 0.78rem; color: var(--color-text-light); }
.about-stat:nth-child(1) .num { color: var(--color-coral); }
.about-stat:nth-child(2) .num { color: var(--color-vibrant-blue); }
.about-stat:nth-child(3) .num { color: var(--color-vibrant-purple); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
@media (min-width: 640px)  { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }

.contact-card {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow-card);
}
.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.875rem; color: var(--color-text-secondary); margin-bottom: 10px; }
.contact-card .value {
  font-weight: 700;
  color: var(--color-coral);
  font-size: 0.95rem;
  word-break: break-all;
}
.contact-card .value:hover { color: var(--color-coral-dark); }

.contact-note {
  max-width: 760px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--color-tag-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.contact-note strong { color: var(--color-text-primary); }

.section-label {
  font-size: 1.25rem;
  margin: 8px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label i { color: var(--color-coral); }

/* --------------------------------------------------------------------------
   13. Accessibility & motion preferences
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-vibrant-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px; left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-dark);
  color: #fff;
  font-size: 0.875rem;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------------------
   14. Interaction polish — pointer-fine hovers + press feedback
   -------------------------------------------------------------------------- */

/* Pointer-fine hover motion. Gated so a tap on a touch screen never leaves an
   element stuck in its hovered (lifted / scaled) state. Declared before the
   :active block below so a press always wins the cascade on desktop. */
@media (hover: hover) and (pointer: fine) {
  /* Card lift. The compound selector out-specifies `.reveal.is-visible`
     (0,0,3,0), whose `transform: none` was pinning revealed cards flat —
     so image-zoomed but never lifting. It lifts now. */
  .vibrant-card:hover,
  .vibrant-card.reveal:hover {
    transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out);
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
  }

  /* Image zoom inside card media */
  .featured-card:hover .card-media img,
  .cat-card:hover .card-media img  { transform: scale(1.1); }
  .post-item:hover .card-media img { transform: scale(1.05); }

  /* Buttons, chips & social icons */
  .profile-follow:hover         { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232, 93, 76, 0.35); }
  .cat-cta:hover                { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }
  .hero-social a:hover          { transform: scale(1.1); }
}

/* Press feedback: every pressable surface scales down on :active, so the UI
   feels like it heard the tap. Ungated + after the hover block, so it wins
   over :hover on desktop and is the primary tactile cue on touch. */
.nav-burger:active,
.card-like:active,
.post-bookmark:active,
.hero-social a:active,
.hero-thumb:active            { transform: scale(0.92); }

.post-action:active,
.tag:active                   { transform: scale(0.94); }

.profile-follow:active,
.cat-cta:active               { transform: scale(var(--press)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
