/* VietPeptide premium guide layer v2 — 2026-11-12
   Scoped to body.reddit-guide. Design language: deep emerald aurora hero,
   glass cards, fine grid, grain, parallax blobs (see guide-parallax.js). */

/* ============ HERO: dark emerald aurora panel ============ */
body.reddit-guide .landing-hero.guide-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  margin-top: 20px;
  padding: 64px 60px 68px;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(123, 196, 127, 0.22), transparent 55%),
    radial-gradient(90% 110% at -10% 110%, rgba(232, 89, 12, 0.16), transparent 50%),
    linear-gradient(150deg, #0e2a14 0%, #123420 45%, #0a1d0f 100%);
  box-shadow:
    0 40px 90px -40px rgba(10, 40, 18, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  color: #fff;
}
/* fine grid */
body.reddit-guide .landing-hero.guide-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(75% 85% at 50% 0%, #000 30%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
/* grain */
body.reddit-guide .landing-hero.guide-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}
/* aurora blobs (parallax targets) */
.rg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.rg-blob-1 { width: 480px; height: 480px; top: -180px; right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(123, 196, 127, 0.5), transparent 65%);
  animation: rg-drift-a 26s ease-in-out infinite alternate; }
.rg-blob-2 { width: 420px; height: 420px; bottom: -200px; left: -140px;
  background: radial-gradient(circle at 60% 40%, rgba(232, 89, 12, 0.34), transparent 62%);
  animation: rg-drift-b 32s ease-in-out infinite alternate; }
.rg-blob-3 { width: 300px; height: 300px; top: 30%; left: 42%;
  background: radial-gradient(circle at 50% 50%, rgba(94, 217, 163, 0.22), transparent 60%);
  animation: rg-drift-a 22s ease-in-out infinite alternate-reverse; }
@keyframes rg-drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-60px, 40px, 0) scale(1.12); } }
@keyframes rg-drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(70px, -50px, 0) scale(0.94); } }
@media (prefers-reduced-motion: reduce) { .rg-blob { animation: none; } }

body.reddit-guide .landing-hero.guide-hero > div:not(.rg-blob) { position: relative; z-index: 2; }
body.reddit-guide .rg-blob { position: absolute; }
body.reddit-guide .landing-hero.guide-hero .breadcrumb a { color: rgba(255, 255, 255, 0.72); }
body.reddit-guide .landing-hero.guide-hero .breadcrumb span { color: rgba(255, 255, 255, 0.45); }
body.reddit-guide .landing-hero.guide-hero .eyebrow {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(123, 196, 127, 0.14);
  border: 1px solid rgba(123, 196, 127, 0.35);
  color: #9fdca6;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11.5px;
  margin-bottom: 18px;
}
body.reddit-guide .landing-hero.guide-hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #ffffff;
  margin: 0 0 18px;
  text-wrap: balance;
}
body.reddit-guide .landing-hero.guide-hero .guide-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin: 0;
}

/* ============ glass thread card ============ */
.rg-hero-panel { position: relative; z-index: 2; }
.rg-thread-card {
  position: relative;
  background: rgba(255, 255, 255, 0.075);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: rotate(-0.8deg);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
  will-change: transform;
}
.rg-thread-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.rg-thread-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 13px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.rg-thread-head .rg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7a33;
  box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.22), 0 0 18px rgba(232, 89, 12, 0.8);
  flex: none;
}
.rg-thread-msg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid #ff7a33;
  background: rgba(232, 89, 12, 0.12);
  border-radius: 13px;
  padding: 11px 13px;
  margin: 11px 0 0;
  font-size: 14.5px;
  font-weight: 650;
  color: #ffe9dd;
}
.rg-thread-msg .rg-tag {
  flex: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ffc9a3;
  background: rgba(232, 89, 12, 0.28);
  border: 1px solid rgba(255, 138, 76, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
}
.rg-verify {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border-left: 3px solid #6fe08d;
  background: rgba(111, 224, 141, 0.12);
  border-radius: 13px;
  padding: 13px 15px;
  margin-top: 15px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e2ffe9;
}
.rg-verify::before {
  content: "✓";
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6fe08d, #2f7d32);
  color: #06280f;
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(111, 224, 141, 0.55);
}
.rg-verify strong { color: #9ff0b3; }

/* ============ numbered section kickers ============ */
body.reddit-guide article { counter-reset: rgsec; }
body.reddit-guide .guide-section > h2 { position: relative; padding-top: 20px; }
body.reddit-guide .guide-section > h2::before {
  counter-increment: rgsec;
  content: "0" counter(rgsec);
  position: absolute;
  top: -16px;
  left: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #2f7d32;
  opacity: 0.8;
}
body.reddit-guide .guide-section > h2::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #2f7d32, #7bc47f);
}

/* ============ verification table ============ */
body.reddit-guide .comparison-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -35px rgba(10, 40, 18, 0.35);
  border: 1px solid rgba(31, 60, 32, 0.10);
}
body.reddit-guide .comparison-table th[scope="row"] {
  border-left: 3px solid #e8590c;
  background: #fff8f3;
}
body.reddit-guide .comparison-table td:nth-of-type(1)::before {
  content: "✓";
  color: #2f7d32;
  font-weight: 800;
  margin-right: 7px;
}
body.reddit-guide .comparison-table td:nth-of-type(2) a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1.5px solid #2f7d32;
  color: #1f5c23;
  background: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
body.reddit-guide .comparison-table td:nth-of-type(2) a:hover {
  background: #2f7d32;
  color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(47, 125, 50, 0.6);
}

/* ============ CTA: aurora bookend ============ */
body.reddit-guide .guide-cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(90% 130% at 90% -10%, rgba(123, 196, 127, 0.35), transparent 55%),
    radial-gradient(70% 110% at 0% 120%, rgba(232, 89, 12, 0.22), transparent 50%),
    linear-gradient(140deg, #123420, #0a1d0f);
  box-shadow: 0 34px 80px -38px rgba(10, 40, 18, 0.7);
  color: #fff;
}
body.reddit-guide .guide-cta h2 { color: #ffffff; }
body.reddit-guide .guide-cta p { color: rgba(255, 255, 255, 0.82); }
body.reddit-guide .guide-cta .button-dark {
  background: #ffffff;
  color: #123420;
  border-color: #ffffff;
}
body.reddit-guide .guide-cta .button-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

/* ============ FAQ accents ============ */
body.reddit-guide .guide-faq .faq-item { border-left: 3px solid rgba(47, 125, 50, 0.35); }

/* ============ scroll reveal (classes added by JS only) ============ */
.rg-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rg-reveal.rg-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rg-reveal { opacity: 1; transform: none; transition: none; } }

/* ============ responsive ============ */
@media (max-width: 1023px) {
  body.reddit-guide .landing-hero.guide-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 42px 26px 46px;
    border-radius: 22px;
  }
  .rg-thread-card { transform: none; max-width: 560px; }
}
@media (max-width: 640px) {
  body.reddit-guide .landing-hero.guide-hero { padding: 34px 20px 38px; }
  .rg-thread-msg { flex-direction: column; align-items: flex-start; gap: 6px; }
  body.reddit-guide .comparison-table td:nth-of-type(2) a { white-space: normal; }
}
