/* ==========================================================================
   review-page.css
   Shared styles for all review pages on bluecvs.com/review
   All class names use the `rv-` prefix to avoid conflicts with legacy pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (per-review overrides)
   -------------------------------------------------------------------------- */
:root {
  --rv-gradient: linear-gradient(135deg, #0b1020 0%, #0b5bcb 55%, #c7d2fe 100%);
  --rv-accent: #0b5bcb;
}

/* --------------------------------------------------------------------------
   1. Reset & Base Typography
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Arial, sans-serif;
  color: #0b0c10;
  background: #fff;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   2. Layout
   -------------------------------------------------------------------------- */
.rv-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 22px 120px;
  position: relative;
}

.rv-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 26px;
  margin-top: 28px;
}

.rv-content {
  min-width: 0;
}

.rv-section {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 34px 28px;
  margin-bottom: 24px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.06);
}

.rv-section p + p {
  margin-top: 12px;
}

/* --------------------------------------------------------------------------
   3. Hero
   -------------------------------------------------------------------------- */
.rv-hero {
  position: relative;
  padding: 88px 40px 40px;
  border-radius: 28px;
  background: var(--rv-gradient);
  color: #f8fafc;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.35);
}

.rv-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.rv-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #e5e7eb;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.rv-title {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.rv-meta {
  opacity: 0.92;
  font-size: 0.95rem;
}

.rv-meta .dot {
  margin: 0 0.5ch;
  opacity: 0.6;
}

.rv-subtitle {
  max-width: 860px;
  color: #e5e7eb;
  font-size: 1.05rem;
}

.rv-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--rv-accent);
  color: #f8fafc;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(11, 91, 203, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rv-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(11, 91, 203, 0.48);
}

/* --------------------------------------------------------------------------
   4. Hero Visual
   -------------------------------------------------------------------------- */
.rv-hero-visual {
  margin-top: 22px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   5. Content Elements
   -------------------------------------------------------------------------- */

/* Section headings */
.rv-section h2 {
  font-size: 1.8rem;
  margin: 0 0 14px;
  color: #0b0c10;
}

/* Inline highlight badge */
.rv-em {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 10px;
  background: #ecf3ff;
  color: var(--rv-accent);
  font-weight: 800;
  border: 1px solid #c7d2fe;
}

/* Info box (dashed border) */
.rv-box {
  border: 1px dashed #c7d2fe;
  background: #f7faff;
  border-radius: 16px;
  padding: 14px;
  margin-top: 14px;
}

/* Figure with caption */
.rv-figure {
  margin: 18px 0;
}

.rv-figure figcaption {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 8px;
}

/* Button link */
.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #111827;
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.25);
}

/* Button group */
.rv-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   6. Table of Contents (Floating Sidebar)
   -------------------------------------------------------------------------- */
.rv-toc {
  position: sticky;
  top: 120px;
  align-self: start;
  width: 100%;
}

.rv-toc-inner {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.08);
}

.rv-toc-inner h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #111827;
}

.rv-toc a {
  display: block;
  padding: 8px 10px;
  margin: 4px 0;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rv-toc a:hover {
  background: #f3f4f6;
  color: var(--rv-accent);
}

.rv-toc a.active {
  background: #ecf3ff;
  border-color: #c7d2fe;
  color: var(--rv-accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   7. Images
   -------------------------------------------------------------------------- */
.rv-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

/* --------------------------------------------------------------------------
   8. Links
   -------------------------------------------------------------------------- */
.rv-wrap a:not(.rv-cta):not(.rv-btn) {
  color: var(--rv-accent);
  text-underline-offset: 3px;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */

/* Tablet / small desktop */
@media (max-width: 980px) {
  .rv-layout {
    grid-template-columns: 1fr;
  }

  .rv-toc {
    position: relative;
    top: auto;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .rv-wrap {
    padding: 24px 14px 80px;
  }

  .rv-hero {
    padding: 56px 20px 28px;
    border-radius: 20px;
  }

  .rv-section {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .rv-section h2 {
    font-size: 1.45rem;
  }

  .rv-title {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }
}
