/*
Theme Name: Voracious Blogger
Theme URI: https://voraciousblogger.com
Author: Voracious Blogger
Description: A luxury food and travel blog theme with animated hero, custom cursor, and GSAP scroll animations.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: voraciousblogger
*/

/* ===== VARIABLES ===== */
:root {
  --bg: #080808;
  --bg2: #0f0f0f;
  --gold: #C9A462;
  --gold-light: #E8C87A;
  --cream: #F2EDE4;
  --text: #E8E3DC;
  --muted: #888878;
  --border: rgba(201,164,98,0.15);
  --border-hover: rgba(201,164,98,0.45);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(201,164,98,.5); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s ease, height .35s ease, border-color .2s;
}
body:has(a:hover) .cursor-ring, body:has(button:hover) .cursor-ring { width: 64px; height: 64px; border-color: var(--gold); }
body:has(a:hover) .cursor-dot, body:has(button:hover) .cursor-dot   { width: 4px; height: 4px; }
@media (max-width: 768px) { .cursor-dot, .cursor-ring { display: none; } body { cursor: auto; } }

/* ===== LOADER ===== */
#loader {
  position: fixed; inset: 0; background: var(--bg);
  z-index: 10000; display: flex; align-items: center;
  justify-content: center; flex-direction: column;
}
.loader-logo {
  font-family: var(--serif); font-size: clamp(3rem,8vw,6rem);
  font-weight: 300; letter-spacing: .1em; color: var(--gold);
  opacity: 0; transform: translateY(20px);
}
.loader-line { width: 0; height: 1px; background: var(--gold); margin-top: 1.5rem; }

/* ===== NAV ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.8rem 5%; display: flex; align-items: center;
  justify-content: space-between;
  transition: background .4s, padding .4s, backdrop-filter .4s;
}
.navbar.scrolled {
  background: rgba(8,8,8,.92); backdrop-filter: blur(16px);
  padding: 1.2rem 5%; border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; letter-spacing: .08em; color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; list-style: none; }
.nav-links li a, .nav-links a {
  font-size: .78rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; font-weight: 400;
}
.nav-links li a:hover, .nav-links a:hover { color: var(--cream); }
.nav-cta {
  border: 1px solid var(--border-hover) !important; padding: .45rem 1.2rem;
  border-radius: 2px; color: var(--gold) !important;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--bg) !important; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--text); }
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 2rem;
    transform: translateX(100%); transition: transform .4s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li a, .nav-links a { font-size: 1.2rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden; padding: 0 5%;
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 12s ease-in-out infinite alternate; }
.orb-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(201,164,98,.12) 0%, transparent 70%); top: -20%; left: -15%; animation-duration: 14s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(201,164,98,.08) 0%, transparent 70%); bottom: -10%; right: -10%; animation-duration: 18s; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(180,120,80,.1) 0%, transparent 70%); top: 30%; right: 20%; animation-duration: 10s; animation-delay: -3s; }
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(40px,-30px) scale(1.05); }
  66%  { transform: translate(-30px,20px) scale(.97); }
  100% { transform: translate(20px,40px) scale(1.03); }
}
.hero-grain {
  position: absolute; inset: 0; opacity: .4; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 1000px; }
.hero-eyebrow { font-size: .72rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; opacity: 0; }
.hero-title { font-family: var(--serif); font-size: clamp(72px,14vw,180px); font-weight: 300; line-height: .9; letter-spacing: -.02em; color: var(--cream); margin-bottom: 2rem; overflow: hidden; }
.hero-title .line { display: block; transform: translateY(110%); }
.hero-title .line:last-child { font-style: italic; color: var(--gold); }
.hero-sub { font-size: clamp(.9rem,1.5vw,1.1rem); color: var(--muted); max-width: 480px; margin: 0 auto 3rem; opacity: 0; font-weight: 300; letter-spacing: .03em; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; opacity: 0; }
.btn-gold { padding: .9rem 2.2rem; background: var(--gold); color: #080808; font-size: .75rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; border-radius: 2px; display: inline-block; transition: background .25s, transform .2s; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { padding: .9rem 2.2rem; border: 1px solid var(--border-hover); color: var(--gold); font-size: .75rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; border-radius: 2px; display: inline-block; transition: background .25s, transform .2s; }
.btn-outline:hover { background: rgba(201,164,98,.08); transform: translateY(-2px); }
.hero-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .5rem; opacity: 0; }
.hero-scroll span { font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.scroll-line { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(.6);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} }

/* ===== MARQUEE ===== */
.marquee-wrap { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.1rem 0; background: var(--bg2); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item { font-family: var(--serif); font-size: .85rem; font-style: italic; letter-spacing: .08em; color: var(--muted); padding: 0 2.5rem; white-space: nowrap; transition: color .2s; }
.marquee-item:hover { color: var(--gold); }
.marquee-sep { color: var(--gold); font-size: 1rem; line-height: 1.4; padding: 0; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== SECTIONS ===== */
.section { padding: 7rem 5%; max-width: 1400px; margin: 0 auto; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3.5rem; gap: 2rem; flex-wrap: wrap; }
.section-label { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.section-title { font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem); font-weight: 300; color: var(--cream); line-height: 1.1; }
.section-link { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 2px; white-space: nowrap; transition: color .2s, border-color .2s; flex-shrink: 0; }
.section-link:hover { color: var(--gold); border-color: var(--gold); }

/* ===== FEATURED CARD ===== */
.featured-card { position: relative; height: 70vh; min-height: 480px; overflow: hidden; border-radius: 3px; cursor: pointer; display: block; }
.featured-card .fc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .8s cubic-bezier(.25,.46,.45,.94); }
.featured-card:hover .fc-bg { transform: scale(1.04); }
.featured-card .fc-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.92) 0%, rgba(8,8,8,.3) 50%, rgba(8,8,8,.1) 100%); }
.featured-card .fc-content { position: absolute; bottom: 0; left: 0; padding: 3rem; }
.featured-card .fc-tag { display: inline-block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,164,98,.4); padding: .3rem .8rem; border-radius: 2px; margin-bottom: 1rem; }
.featured-card h2 { font-family: var(--serif); font-size: clamp(1.8rem,3.5vw,3rem); font-weight: 300; color: var(--cream); line-height: 1.15; max-width: 640px; margin-bottom: 1rem; }
.featured-card p { font-size: .9rem; color: rgba(232,227,220,.7); max-width: 480px; margin-bottom: 1.5rem; }
.fc-read { display: inline-flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); transition: gap .2s; }
.fc-read:hover { gap: 1rem; }
.fc-read::after { content: '→'; transition: transform .2s; }
.featured-card:hover .fc-read::after { transform: translateX(4px); }

/* ===== POSTS GRID ===== */
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .posts-grid { grid-template-columns: 1fr; } }

/* ===== POST CARD ===== */
.post-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; transition: border-color .3s; transform-style: preserve-3d; will-change: transform; cursor: pointer; }
.post-card:hover { border-color: var(--border-hover); }
.card-thumb { height: 240px; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.25,.46,.45,.94); }
.post-card:hover .card-thumb { transform: scale(1.05); }
.card-info { padding: 1.6rem; }
.card-tag { font-size: .65rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .7rem; display: block; }
.card-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 300; color: var(--cream); line-height: 1.3; margin-bottom: .7rem; transition: color .2s; }
.post-card:hover .card-title { color: var(--gold-light); }
.card-excerpt { font-size: .83rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; }
.card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; color: var(--muted); letter-spacing: .05em; border-top: 1px solid var(--border); padding-top: 1rem; }
.card-arrow { color: var(--gold); font-size: .85rem; transition: transform .2s; }
.post-card:hover .card-arrow { transform: translateX(5px); }

/* ===== CATEGORY PAGE ===== */
.cat-hero { padding: 12rem 5% 5rem; position: relative; overflow: hidden; }
.cat-hero .hero-orbs { opacity: .5; }
.cat-hero-content { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.cat-hero-content h1 { font-family: var(--serif); font-size: clamp(3.5rem,8vw,7rem); font-weight: 300; color: var(--cream); line-height: .95; }
.cat-hero-content h1 em { font-style: italic; color: var(--gold); }
.cat-desc { max-width: 380px; font-size: .9rem; color: var(--muted); line-height: 1.8; align-self: flex-end; padding-bottom: .5rem; }

/* ===== ABOUT PAGE ===== */
.about-hero { min-height: 60vh; display: flex; align-items: center; padding: 10rem 5% 6rem; position: relative; overflow: hidden; }
.about-hero .hero-orbs { opacity: .5; }
.about-hero-content { position: relative; z-index: 1; max-width: 700px; }
.about-hero-content h1 { font-family: var(--serif); font-size: clamp(3rem,7vw,6rem); font-weight: 300; color: var(--cream); line-height: 1.05; margin-bottom: 1.5rem; }
.about-hero-content h1 em { font-style: italic; color: var(--gold); }
.about-body { max-width: 760px; margin: 0 auto; padding: 4rem 5% 8rem; }
.about-body p { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.6rem; line-height: 1.9; }
.about-body p strong { color: var(--cream); font-weight: 400; }
.about-quote { font-family: var(--serif); font-size: 1.8rem; font-style: italic; color: var(--gold); border-left: 2px solid var(--gold); padding-left: 2rem; margin: 3rem 0; line-height: 1.4; }

/* ===== SINGLE POST ===== */
.post-hero { position: relative; height: 80vh; min-height: 500px; overflow: hidden; display: flex; align-items: flex-end; }
.post-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.post-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,8,.97) 0%, rgba(8,8,8,.4) 60%, rgba(8,8,8,.1) 100%); }
.post-hero-content { position: relative; z-index: 1; padding: 4rem 8%; max-width: 1200px; width: 100%; }
.post-hero-content .card-tag { font-size: .72rem; margin-bottom: 1rem; display: block; }
.post-hero-content h1 { font-family: var(--serif); font-size: clamp(2rem,4vw,3.5rem); font-weight: 300; color: var(--cream); line-height: 1.15; max-width: 720px; margin-bottom: 1rem; }
.post-hero-meta { font-size: .78rem; color: var(--muted); letter-spacing: .05em; }
.post-body { max-width: 740px; margin: 5rem auto; padding: 0 5%; }
.post-body p, .post-body .entry-content p { font-size: 1.05rem; color: var(--muted); line-height: 1.95; margin-bottom: 1.8rem; }
.post-body h2, .post-body .entry-content h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 300; color: var(--cream); margin: 3rem 0 1.2rem; }
.post-body h3, .post-body .entry-content h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--cream); margin: 2rem 0 1rem; }
.post-body blockquote, .post-body .entry-content blockquote { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--gold); border-left: 2px solid var(--gold); padding-left: 1.8rem; margin: 3rem 0; line-height: 1.5; }
.post-body img, .post-body .entry-content img { width: 100%; border-radius: 3px; margin: 2rem 0; }
.post-body ul, .post-body ol { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1.5rem; font-size: 1.05rem; line-height: 1.9; }
.wp-block-image { margin: 2rem 0; }

/* ===== NEWSLETTER ===== */
.newsletter { position: relative; padding: 8rem 5%; text-align: center; overflow: hidden; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.newsletter-orb { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,164,98,.07) 0%, transparent 70%); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.newsletter-label { font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.newsletter h2 { font-family: var(--serif); font-size: clamp(2.5rem,6vw,5rem); font-weight: 300; color: var(--cream); line-height: 1.1; margin-bottom: 1.2rem; }
.newsletter h2 em { font-style: italic; color: var(--gold); }
.newsletter p { font-size: .95rem; color: var(--muted); max-width: 420px; margin: 0 auto 3.5rem; }
.newsletter-form { display: flex; gap: 0; max-width: 500px; margin: 0 auto; border-bottom: 1px solid var(--border-hover); }
.newsletter-form input { flex: 1; background: transparent; border: none; outline: none; color: var(--text); font-family: var(--sans); font-size: .9rem; padding: .8rem 1rem .8rem 0; font-weight: 300; }
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form button { background: transparent; border: none; color: var(--gold); font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; padding: .8rem 0 .8rem 1.2rem; cursor: pointer; transition: color .2s, letter-spacing .2s; white-space: nowrap; }
.newsletter-form button:hover { color: var(--gold-light); letter-spacing: .28em; }
.newsletter-note { font-size: .72rem; color: #555; margin-top: 1.2rem; }
.success-msg { display: none; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--gold); margin-top: 1.5rem; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 1rem; padding: 3rem 5%; }
.pagination .page-numbers { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); color: var(--muted); font-size: .8rem; border-radius: 2px; transition: all .2s; }
.pagination .page-numbers:hover, .pagination .page-numbers.current { border-color: var(--gold); color: var(--gold); }

/* ===== FOOTER ===== */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 4rem 5%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-logo { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--gold); letter-spacing: .05em; }
.footer-nav { display: flex; gap: 2rem; justify-content: center; list-style: none; }
.footer-nav li a, .footer-nav a { font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.footer-nav li a:hover, .footer-nav a:hover { color: var(--cream); }
.footer-copy { text-align: right; font-size: .72rem; color: #444; letter-spacing: .05em; }
@media (max-width: 640px) { .footer { grid-template-columns: 1fr; text-align: center; } .footer-copy { text-align: center; } }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.active { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
