/* ── Deep View Resource Page Shared Styles ─────────────────────────────────── */
/* Include on every /resources/*.html page                                     */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7; color: #c8d6e5; background: #060d1b;
  background-image: linear-gradient(rgba(0,229,160,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,160,0.03) 1px, transparent 1px);
  background-size: 48px 48px; min-height: 100vh;
}
a { color: #00e5a0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar { background: rgba(6,13,27,0.96); backdrop-filter: blur(12px); padding: 14px 0; position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid rgba(0,229,160,0.12); }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: #00e5a0; letter-spacing: -0.5px; text-decoration: none; }
.logo i { margin-right: 6px; font-size: 1.2rem; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: #7b8fa3; font-weight: 500; font-size: 0.95rem; transition: color 0.3s; text-decoration: none; }
.nav-links a:hover { color: #00e5a0; text-decoration: none; }
.btn { display: inline-block; padding: 12px 24px; border: none; border-radius: 8px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.3s; text-align: center; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #00e5a0 0%, #00b37e 100%); color: #060d1b; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,229,160,0.3); text-decoration: none; }
.hamburger { display: none; background: none; border: none; font-size: 1.4rem; color: #c8d6e5; cursor: pointer; }

/* ── Article Layout (2-col: article + sidebar) ───────────────────────────── */
.resource-layout {
  max-width: 1200px; margin: 0 auto; padding: 60px 24px 40px;
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start;
}

/* ── Article ─────────────────────────────────────────────────────────────── */
.article { max-width: 760px; }
.article-breadcrumb { font-size: 0.82rem; color: #566a7f; margin-bottom: 20px; }
.article-breadcrumb a { color: #7b8fa3; text-decoration: none; }
.article-breadcrumb a:hover { color: #00e5a0; }

.article-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 12px; border-radius: 12px; margin-bottom: 16px;
}
.tag-pillar { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.tag-guide { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.tag-comparison { background: rgba(0,229,160,0.12); color: #00e5a0; border: 1px solid rgba(0,229,160,0.25); }
.tag-cluster { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }

.article h1 {
  font-size: 2.6rem; font-weight: 900; color: #f0f4f8; line-height: 1.15;
  margin-bottom: 16px; letter-spacing: -1px;
}
.article-meta { font-size: 0.85rem; color: #566a7f; margin-bottom: 36px; }
.article-meta span { margin-right: 16px; }

.article h2 {
  font-size: 1.6rem; font-weight: 800; color: #f0f4f8; margin: 48px 0 16px;
  padding-top: 16px; border-top: 1px solid rgba(0,229,160,0.08);
}
.article h3 { font-size: 1.2rem; font-weight: 700; color: #e2eeff; margin: 32px 0 12px; }
.article p { margin-bottom: 18px; color: #8fa3b8; font-size: 1.02rem; line-height: 1.8; }
.article strong { color: #f0f4f8; }
.article ul, .article ol { margin: 12px 0 20px 24px; color: #8fa3b8; }
.article li { margin-bottom: 8px; line-height: 1.7; }
.article blockquote {
  border-left: 3px solid #00e5a0; padding: 16px 20px; margin: 24px 0;
  background: rgba(0,229,160,0.04); border-radius: 0 8px 8px 0;
  font-style: italic; color: #c8d6e5;
}

/* Feature callout box */
.dv-callout {
  background: rgba(0,229,160,0.05); border: 1px solid rgba(0,229,160,0.18);
  border-radius: 12px; padding: 24px; margin: 28px 0;
}
.dv-callout-title {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: #00e5a0; margin-bottom: 8px;
}
.dv-callout p { color: #c8d6e5; margin-bottom: 0; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.comparison-table th {
  text-align: left; padding: 12px 16px; font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: #00e5a0;
  background: rgba(0,229,160,0.06); border-bottom: 2px solid rgba(0,229,160,0.15);
}
.comparison-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(0,229,160,0.06);
  font-size: 0.95rem; color: #8fa3b8;
}
.comparison-table tr:hover td { background: rgba(0,229,160,0.03); }
.check { color: #00e5a0; font-weight: 700; }
.cross { color: #ef4444; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }

/* Live Telemetry Widget */
.telemetry-widget {
  background: #0a1628; border: 1px solid rgba(0,229,160,0.15);
  border-radius: 14px; padding: 24px; margin-bottom: 24px; overflow: hidden;
}
.tw-header {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: #00e5a0; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.tw-header .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #00e5a0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,229,160,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,229,160,0); }
}

/* REV Meter */
.rev-meter { text-align: center; margin-bottom: 20px; }
.rev-meter-label { font-size: 0.72rem; color: #566a7f; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.rev-gauge {
  width: 100%; height: 8px; background: #0d1a2d; border-radius: 99px; overflow: hidden;
  position: relative;
}
.rev-gauge-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #00e5a0, #fbbf24, #ef4444);
  width: 35%; transition: width 2s ease;
  animation: rev-drift 8s ease-in-out infinite;
}
@keyframes rev-drift {
  0%, 100% { width: 35%; }
  30% { width: 52%; }
  60% { width: 28%; }
  80% { width: 45%; }
}
.rev-labels { display: flex; justify-content: space-between; font-size: 0.65rem; color: #3d5168; margin-top: 4px; }

/* Talk Ratio */
.talk-ratio-widget { margin-bottom: 20px; }
.tr-label { font-size: 0.72rem; color: #566a7f; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.tr-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #0d1a2d; }
.tr-you { background: #00e5a0; transition: width 3s; animation: tr-drift 10s ease-in-out infinite; }
.tr-them { background: #0e7490; transition: width 3s; }
@keyframes tr-drift {
  0%, 100% { width: 38%; }
  40% { width: 55%; }
  70% { width: 30%; }
}
.tr-legend { display: flex; justify-content: space-between; font-size: 0.68rem; color: #566a7f; margin-top: 6px; }

/* Pace */
.pace-widget { text-align: center; }
.pace-num {
  font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 700;
  color: #00e5a0; animation: pace-flicker 6s ease-in-out infinite;
}
@keyframes pace-flicker {
  0%, 100% { color: #00e5a0; }
  50% { color: #fbbf24; }
}
.pace-unit { font-size: 0.72rem; color: #566a7f; text-transform: uppercase; }

/* Sidebar CTA */
.sidebar-cta {
  background: #0a1628; border: 1px solid rgba(0,229,160,0.15);
  border-radius: 14px; padding: 24px; text-align: center;
}
.sidebar-cta h4 { color: #f0f4f8; font-size: 1rem; margin-bottom: 8px; }
.sidebar-cta p { color: #566a7f; font-size: 0.88rem; margin-bottom: 16px; }
.sidebar-cta .btn { width: 100%; font-size: 0.9rem; padding: 12px; }

/* Sidebar related posts */
.sidebar-related {
  background: #0a1628; border: 1px solid rgba(0,229,160,0.08);
  border-radius: 14px; padding: 24px; margin-bottom: 24px;
}
.sidebar-related h4 { color: #f0f4f8; font-size: 0.95rem; margin-bottom: 14px; }
.sidebar-related a {
  display: block; padding: 10px 0; border-bottom: 1px solid rgba(0,229,160,0.06);
  color: #7b8fa3; font-size: 0.88rem; text-decoration: none; transition: color 0.2s;
}
.sidebar-related a:last-child { border-bottom: none; }
.sidebar-related a:hover { color: #00e5a0; }

/* ── Bottom CTA ──────────────────────────────────────────────────────────── */
.article-cta {
  background: #0a1628; border: 1px solid rgba(0,229,160,0.15);
  border-radius: 14px; padding: 40px; text-align: center; margin: 48px 0 0;
}
.article-cta h2 { font-size: 1.6rem; font-weight: 800; color: #f0f4f8; margin-bottom: 10px; border: none; padding: 0; }
.article-cta p { color: #7b8fa3; margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { text-align: center; padding: 40px 24px; border-top: 1px solid rgba(0,229,160,0.08); color: #3d5168; font-size: 0.85rem; max-width: 1200px; margin: 0 auto; }
.footer a { color: #566a7f; margin: 0 12px; transition: color 0.3s; text-decoration: none; }
.footer a:hover { color: #00e5a0; }
.footer-brand { color: #00e5a0; font-weight: 700; font-size: 1rem; margin-bottom: 12px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .resource-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .sidebar-cta { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(6,13,27,0.98); backdrop-filter: blur(12px); flex-direction: column; gap: 0; padding: 10px 0; border-bottom: 1px solid rgba(0,229,160,0.12); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-bottom: 1px solid rgba(0,229,160,0.06); width: 100%; }
  .nav-links .btn { margin: 10px 24px; width: calc(100% - 48px); text-align: center; }
  .article h1 { font-size: 1.8rem; }
  .sidebar { grid-template-columns: 1fr; }
}
