/* ═══════════════════════════════════════════════════════════════
   CSS — Blog (listing + post reader)
   Vuno Studio
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   BLOG HERO — listing page
───────────────────────────────────────────── */
.blog-hero {
  background: var(--ink);
  padding: 11rem 3.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.blog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

/* Orb glow */
.blog-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212,160,23,.18) 0%, transparent 65%);
  pointer-events: none;
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-hero-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

.blog-hero-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
}

.blog-hero-title em {
  color: var(--green);
  font-style: italic;
}

.blog-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 540px;
}

/* ─────────────────────────────────────────────
   BLOG SECTION  
───────────────────────────────────────────── */
.blog-section {
  padding: 5rem 3.5rem 8rem;
  background: #08080B;
}

.blog-wrap {
  max-width: 1160px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   LOADING / EMPTY
───────────────────────────────────────────── */
.blog-loading {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  letter-spacing: .04em;
}

.blog-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.blog-empty h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 2rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.blog-empty p {
  color: rgba(255,255,255,.68);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.blog-empty-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #0A0A0C;
  padding: .85rem 2.2rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s;
}

.blog-empty-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(245,200,66,.35);
}

/* ─────────────────────────────────────────────
   FEATURED POST (big card — Dark Luxury)
───────────────────────────────────────────── */
.post-featured-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(16,16,20,.96));
  border-radius: 20px;
  border: 1px solid rgba(245,200,66,.22);
  overflow: hidden;
  margin-bottom: 3.5rem;
  text-decoration: none;
  color: #FFFFFF;
  transition: transform .3s cubic-bezier(.2,0,.2,1), box-shadow .3s, border-color .3s;
}

.post-featured-link:hover {
  transform: translateY(-5px);
  border-color: rgba(245,200,66,.55);
  box-shadow: 0 28px 64px rgba(0,0,0,.55), 0 0 36px rgba(212,160,23,.14);
}

.post-featured-cover {
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.post-featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,0,.2,1);
}

.post-featured-link:hover .post-featured-cover img {
  transform: scale(1.04);
}

.post-cover-ph {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.post-cover-ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.post-cover-ph-initial {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 6rem;
  font-style: italic;
  opacity: .18;
  line-height: 1;
  z-index: 1;
  color: #fff;
}

.post-cover-ph-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
  opacity: .5;
}

.post-featured-body {
  padding: 3rem 3rem 3rem 2.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-badge {
  display: inline-block;
  background: var(--greenl);
  color: var(--green);
  border: 1px solid rgba(212,160,23,.18);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  align-self: flex-start;
}

.post-badge-orange {
  background: var(--orangel);
  color: var(--orange);
  border-color: rgba(232,98,42,.18);
}

.post-featured-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
  transition: color .2s;
}

.post-featured-link:hover .post-featured-title {
  color: var(--green);
}

.post-featured-excerpt {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2rem;
  flex: 1;
}

.post-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: .73rem;
  font-weight: 600;
  color: var(--muted);
}

.post-meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.post-read-more {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: 2rem;
  font-weight: 700;
  font-size: .85rem;
  color: var(--green);
  letter-spacing: .04em;
  transition: gap .2s;
}

.post-read-more .arrow {
  transition: transform .2s;
}

.post-featured-link:hover .post-read-more .arrow {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────────
   POSTS GRID
───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

/* ─────────────────────────────────────────────
   POST CARD
───────────────────────────────────────────── */
.post-card-link {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.2,0,.2,1), box-shadow .3s;
}

.post-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.09);
}

.post-card-cover {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.post-card-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2,0,.2,1);
}

.post-card-link:hover .post-card-cover img {
  transform: scale(1.05);
}

.post-card-cover .post-cover-ph {
  min-height: 0;
  height: 100%;
}

.post-card-cover .post-cover-ph-initial {
  font-size: 3.5rem;
}

.post-card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-cat {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .85rem;
}

.post-card-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: .85rem;
  flex: 1;
  transition: color .2s;
}

.post-card-link:hover .post-card-title {
  color: var(--green);
}

.post-card-excerpt {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  display: flex;
  gap: .85rem;
  align-items: center;
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
}

/* ─────────────────────────────────────────────
   POST PAGE — HEADER (dark)
───────────────────────────────────────────── */
.post-header {
  background: var(--ink);
  padding: 10.5rem 3.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.post-header-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.post-header::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(212,160,23,.15) 0%, transparent 65%);
  pointer-events: none;
}

.post-header-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  transition: color .2s;
}

.post-back:hover {
  color: var(--green);
}

.post-back-arrow {
  transition: transform .2s;
}

.post-back:hover .post-back-arrow {
  transform: translateX(-3px);
}

.post-header-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .73rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
}

.post-header-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

.post-header-title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.5rem;
}

.post-header-excerpt {
  font-size: 1.05rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 620px;
}

/* ─────────────────────────────────────────────
   POST COVER IMAGE (full-width, below header)
───────────────────────────────────────────── */
.post-cover-wrap {
  background: var(--sand);
  overflow: hidden;
  max-height: 460px;
}

.post-cover-wrap img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────────
   POST BODY — prose area
───────────────────────────────────────────── */
.post-body-wrap {
  padding: 4.5rem 3.5rem 6rem;
  display: flex;
  justify-content: center;
}

.post-body {
  width: 100%;
  max-width: 728px;
}

.post-body p {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink2);
  margin-bottom: 1.6rem;
}

.post-body h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.2;
  margin: 3rem 0 1.1rem;
  color: var(--ink);
}

.post-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 .8rem;
  color: var(--ink);
}

.post-body ul,
.post-body ol {
  padding-left: 1.6rem;
  margin-bottom: 1.6rem;
}

.post-body li {
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--ink2);
  margin-bottom: .5rem;
}

.post-body strong {
  font-weight: 700;
  color: var(--ink);
}

.post-body a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .2s;
}

.post-body a:hover {
  color: var(--green2);
}

.post-body blockquote {
  border-left: 3px solid var(--green);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ─────────────────────────────────────────────
   POST CTA (bottom)
───────────────────────────────────────────── */
.post-cta {
  background: var(--ink);
  padding: 5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.post-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.post-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.post-cta-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.post-cta h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-cta p {
  font-size: .95rem;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--green);
  color: #fff;
  padding: 1rem 2.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, transform .2s;
}

.post-cta-btn:hover {
  background: var(--green2);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────
   POST LOADING SKELETON
───────────────────────────────────────────── */
.post-loading-wrap {
  animation: pulse-skeleton 1.5s ease-in-out infinite;
}

.post-loading-hero {
  height: 400px;
  background: linear-gradient(90deg, #f0ede8, #e8e4de, #f0ede8);
  background-size: 200% 100%;
}

.post-loading-body {
  max-width: 728px;
  margin: 4rem auto;
  padding: 0 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-loading-line {
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0ede8, #e8e4de, #f0ede8);
  background-size: 200% 100%;
}
.post-loading-line.w100 { width: 100%; }
.post-loading-line.w90  { width: 90%; }
.post-loading-line.w80  { width: 80%; }
.post-loading-line.w70  { width: 70%; }
.post-loading-line.w60  { width: 60%; }

@keyframes pulse-skeleton {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}

/* ─────────────────────────────────────────────
   POST NOT FOUND
───────────────────────────────────────────── */
.post-not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
}

.post-not-found h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.post-not-found p {
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.post-not-found a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .post-featured-link {
    grid-template-columns: 1fr;
  }
  .post-featured-cover {
    min-height: 240px;
  }
  .post-cover-ph {
    min-height: 240px;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 9rem 1.5rem 4.5rem;
  }
  .blog-section {
    padding: 3.5rem 1.5rem 5rem;
  }
  .blog-hero-title {
    font-size: 2.1rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-featured-body {
    padding: 2rem;
  }
  .post-featured-title {
    font-size: 1.4rem;
  }
  .post-header {
    padding: 8rem 1.5rem 4rem;
  }
  .post-body-wrap {
    padding: 3rem 1.5rem 5rem;
  }
  .post-cta {
    padding: 4rem 1.5rem;
  }
}


/* ─── DARK LUXURY OVERRIDES (BLOG & READER) ─── */
.post-featured-title,
.post-card-title { color: #FFFFFF !important; }
.post-featured-excerpt,
.post-card-excerpt,
.post-meta,
.post-card-meta { color: rgba(255,255,255,.68) !important; }
.post-read-more { color: var(--gold-bright) !important; }
.post-badge { background: rgba(245,200,66,.14) !important; color: var(--gold-bright) !important; border: 1px solid rgba(245,200,66,.32); }
.post-card-link {
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(16,16,20,.96)) !important;
  border-color: rgba(245,200,66,.18) !important;
  color: #FFFFFF !important;
}
.post-card-link:hover {
  border-color: rgba(245,200,66,.55) !important;
  box-shadow: 0 24px 56px rgba(0,0,0,.55) !important;
}
.post-body-wrap { background: #08080B; }
.post-body { color: rgba(255,255,255,.82) !important; }
.post-body h2, .post-body h3 { color: #FFFFFF !important; }
.post-body strong { color: var(--gold-bright); }
.post-body a { color: var(--gold-bright); }
