/* Velvet Pine Skin — Premium Design System */
:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --text: #2c2c2c;
  --text-light: #6b6b6b;
  --accent: #8b5e3c;
  --accent-light: #c4956a;
  --green: #3d6b4f;
  --green-light: #e8f5e9;
  --cream: #fdf6ee;
  --gold: #c8a96e;
  --border: #e8e0d5;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --radius: 12px;
  --font-serif: 'Georgia', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --bg-card: #252525;
    --text: #e0e0e0;
    --text-light: #a0a0a0;
    --accent: #c4956a;
    --green: #5a9e72;
    --green-light: #1e3325;
    --cream: #2a2520;
    --border: #3a3a3a;
    --shadow: 0 2px 16px rgba(0,0,0,0.3);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  animation: vp-fadeIn 0.4s ease-out;
}

/* ── Page fade-in animation ── */
@keyframes vp-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reading progress bar */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  z-index: 1000; transition: width 0.1s;
}

/* Sticky header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.site-header .site-title,
.site-header h1 { font-family: var(--font-serif); font-size: 2rem; }
.site-header .site-title a,
.site-header h1 a { color: var(--accent); text-decoration: none; }
.site-header .site-title a:hover,
.site-header h1 a:hover { color: var(--green); }
.tagline { color: var(--text-light); font-size: 0.95rem; font-style: italic; margin-top: 0.25rem; }

/* Navigation */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 2rem;
  display: flex; gap: 2rem; justify-content: center;
  position: sticky; top: 90px; z-index: 99;
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.site-nav a {
  color: var(--text-light); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.05em; transition: color 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
}
.site-nav a:hover { color: var(--accent); }
.nav-random { opacity: 0.85; transition: opacity 0.2s, transform 0.2s; }
.nav-random:hover { opacity: 1; transform: scale(1.05); }

/* Featured banner */
.featured-banner {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 2rem; text-align: center;
  font-size: 0.8rem; color: var(--text-light);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.featured-banner span { margin: 0 0.75rem; font-weight: 600; color: var(--accent); }

/* ── Hero section (index page) ── */
.hero-section {
  background: linear-gradient(135deg, #2d6a4f 0%, #3d6b4f 40%, #8b5e3c 100%);
  color: #fff;
  padding: 3.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-section h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}
.hero-section .hero-tagline {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  position: relative;
  z-index: 1;
  margin-bottom: 1.2rem;
}
.hero-section .hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-section .hero-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
}
.hero-section .hero-stat svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.hero-section .hero-stat strong {
  color: #fff;
  font-weight: 600;
}

/* Main content */
.site-main {
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 0 1.5rem;
}

/* Review grid on index */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), border-color 0.25s;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 200px;
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}
.review-card h2 { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.5rem; line-height: 1.35; }
.review-card h2 a { color: var(--text); text-decoration: none; }
.review-card h2 a:hover { color: var(--accent); }
.review-card .meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.4rem; }
.review-card .rating { margin-bottom: 0.5rem; display: flex; align-items: center; gap: 2px; }
.review-card .rating svg { width: 16px; height: 16px; flex-shrink: 0; }
.review-card .excerpt { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; margin-bottom: 0.75rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-card .read-more {
  color: var(--accent); font-weight: 600; font-size: 0.85rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color 0.2s, gap 0.2s;
}
.review-card .read-more:hover { color: var(--green); gap: 8px; }
.review-card .read-more svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.2s; }

/* ── SVG Star Rating ── */
.star-rating { display: inline-flex; align-items: center; gap: 2px; }
.star-rating svg { width: 16px; height: 16px; flex-shrink: 0; }
.star-rating .star-filled { fill: var(--gold); }
.star-rating .star-half { fill: var(--gold); }
.star-rating .star-empty { fill: var(--border); }

/* Article pages */
.article-header {
  text-align: center;
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.article-header h1 { font-family: var(--font-serif); font-size: 2.2rem; line-height: 1.3; color: var(--text); }
.article-header .meta { color: var(--text-light); font-size: 0.9rem; margin-top: 0.5rem; }
.article-header .rating { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 0.6rem; font-size: 1rem; color: var(--gold); }
.article-header .rating svg { width: 20px; height: 20px; }

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.85;
}
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; color: var(--accent); }
.article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
.article-body p { margin-bottom: 1.3rem; }
.article-body img {
  max-width: 100%; border-radius: var(--radius);
  margin: 1.5rem 0; box-shadow: var(--shadow);
}
.article-body ul, .article-body ol { margin: 1rem 0 1rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--accent); }

/* Article footer */
.article-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-style: italic;
  font-family: var(--font-serif);
}

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1rem; }
.breadcrumb a { color: var(--accent); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb a svg { width: 14px; height: 14px; fill: currentColor; }

/* Product image */
.product-image { max-width: 400px; display: block; margin: 0 auto; }

/* ── Back to top button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

/* Footer */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 4rem;
}
.site-footer p { color: var(--text-light); font-size: 0.85rem; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* Newsletter box */
.newsletter-box {
  background: linear-gradient(135deg, var(--green), var(--accent));
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}
.newsletter-box h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.newsletter-box p { opacity: 0.9; margin-bottom: 1rem; }
.newsletter-box input[type="email"] {
  padding: 0.75rem 1rem; border: none; border-radius: 8px;
  width: 280px; font-size: 0.95rem; margin-right: 0.5rem;
}
.newsletter-box button {
  padding: 0.75rem 1.5rem; background: var(--gold);
  border: none; border-radius: 8px; color: white;
  font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.newsletter-box button:hover { opacity: 0.9; }

/* Responsive */
@media (max-width: 768px) {
  .site-header { padding: 1rem; }
  .site-header .site-title,
  .site-header h1 { font-size: 1.5rem; }
  .site-nav { gap: 1rem; padding: 0.5rem 1rem; top: 70px; flex-wrap: wrap; }
  .site-nav a { font-size: 0.82rem; }
  .site-main { padding: 0 1rem; margin: 1rem auto; }
  .review-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.5rem; }
  .article-header { padding: 1.5rem 0 1.5rem; }
  .article-body { font-size: 1rem; padding: 0 0.5rem; }
  .newsletter-box input[type="email"] { width: 100%; margin-bottom: 0.5rem; }
  .newsletter-box button { width: 100%; }
  .hero-section { padding: 2.5rem 1.5rem 2rem; }
  .hero-section h1 { font-size: 1.7rem; }
  .hero-section .hero-tagline { font-size: 0.9rem; }
  .hero-section .hero-stats { gap: 0.8rem; }
  .back-to-top { bottom: 1.2rem; right: 1.2rem; width: 40px; height: 40px; }
  .back-to-top svg { width: 18px; height: 18px; }
}

/* Visitor counter */
.visitor-counter {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green-light); color: var(--green);
  padding: 0.4rem 1rem; border-radius: 20px;
  font-size: 0.85rem; font-weight: 600;
}
.visitor-counter .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Share buttons */
.share-buttons { display: flex; gap: 0.75rem; margin: 1.5rem 0; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.85rem; text-decoration: none; font-weight: 500;
  transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.85; }
.share-btn svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
.share-btn.pinterest { background: #e60023; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.facebook { background: #1877f2; color: white; }

/* Trending sidebar */
.trending-widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  box-shadow: var(--shadow);
}
.trending-widget h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--accent); }
.trending-widget ol { padding-left: 1.25rem; }
.trending-widget li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.trending-widget li a { color: var(--text); text-decoration: none; }
.trending-widget li a:hover { color: var(--accent); }

/* Brand logo */
.brand-logo {
  display: block;
  margin: 0 auto 1rem;
  max-width: 120px;
  height: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.brand-logo:hover { opacity: 1; }

/* About section */
.about-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 0;
}
.about-section h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  text-align: center;
}
.about-section h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--accent);
  margin: 2rem 0 0.75rem;
}
.about-section .emphasis {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.2rem;
}
.about-section p { margin-bottom: 1rem; line-height: 1.8; }
.about-section ul { margin: 1rem 0 1rem 1.5rem; }
.about-section li { margin-bottom: 0.6rem; line-height: 1.7; }
.about-section strong { color: var(--accent); }
