/* ============================================================
   Vortex Review — main.css
   Dark editorial magazine style · Teal/Emerald palette
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=DM+Sans:wght@400;500;600&family=Fira+Code:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --bg:       #030d0e;
  --bg2:      #071719;
  --bg3:      #0c2326;
  --accent:   #00c9a7;
  --accent2:  #34d399;
  --accent3:  #059669;
  --glow:     rgba(0, 201, 167, 0.25);
  --glow2:    rgba(0, 201, 167, 0.10);
  --text:     #e8f5f3;
  --sub:      #7ca8a3;
  --border:   #1a3d3a;
  --warn:     #fbbf24;
  --red:      #f87171;
  --green:    #34d399;
  --radius:   6px;
  --radius-lg:12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.5);
  --shadow-sm:0 2px 8px  rgba(0,0,0,0.3);
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-code:    'Fira Code', monospace;
  --max-w: 1100px;
  --transition: 0.22s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { color: var(--accent2); }

img { max-width: 100%; display: block; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.6rem; }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.1rem;
  color: var(--sub);
  line-height: 1.8;
}

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.3rem; }

code, kbd {
  font-family: var(--font-code);
  background: var(--bg3);
  color: var(--accent2);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.88em;
}

/* ── Layout Helpers ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.text-accent { color: var(--accent); }
.text-sub    { color: var(--sub); }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 13, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent3));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #030d0e;
  font-weight: 700;
}

.nav-logo span.label {
  color: var(--accent);
}

.nav-links {
  display: none;
  list-style: none;
  padding: 0;
  gap: 0.25rem;
}
@media (min-width: 768px) {
  .hamburger { display: none !important; }
  .nav-links { display: flex !important; }
}

.nav-links a {
  color: var(--sub);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--glow2);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sub);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--sub);
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.25rem;
  opacity: 0.4;
}

.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--accent); }

/* ── Hero Section ── */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -120px;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,201,167,0.07) 0%, transparent 65%);
  pointer-events: none;
  animation: hero-glow 8s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from { opacity: 0.5; transform: scale(1) translate(0, 0); }
  to   { opacity: 1;   transform: scale(1.15) translate(-30px, 20px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,201,167,0.12);
  border: 1px solid rgba(0,201,167,0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero h1 { margin-bottom: 1rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--sub);
  font-size: 0.85rem;
}

.hero-meta .sep { opacity: 0.3; }

/* ── Star Rating ── */
.star-rating {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.star-rating .star {
  width: 20px;
  height: 20px;
  color: var(--warn);
  opacity: 0;
  transform: scale(0.5);
  animation: star-fill 0.4s ease forwards;
}

.star-rating .star:nth-child(1) { animation-delay: 0.1s; }
.star-rating .star:nth-child(2) { animation-delay: 0.2s; }
.star-rating .star:nth-child(3) { animation-delay: 0.3s; }
.star-rating .star:nth-child(4) { animation-delay: 0.4s; }
.star-rating .star:nth-child(5) { animation-delay: 0.5s; }

@keyframes star-fill {
  to { opacity: 1; transform: scale(1); }
}

.star-rating .star.half { opacity: 0.5; }
.star-rating .star.empty { color: var(--border); }

.rating-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--warn);
  margin-left: 0.3rem;
}

/* ── Cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: rgba(0,201,167,0.3);
  box-shadow: 0 0 20px var(--glow2);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

/* ── Verdict Card ── */
.verdict-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.verdict-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent), var(--accent3));
  border-radius: 4px 0 0 4px;
}

.verdict-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.verdict-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.verdict-score .big-score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.verdict-score .score-label {
  font-size: 0.75rem;
  color: var(--sub);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-bars { flex: 1; min-width: 220px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.score-row .label {
  font-size: 0.82rem;
  color: var(--sub);
  width: 110px;
  flex-shrink: 0;
}

.score-bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent3), var(--accent));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.score-bar-fill.animated { width: var(--target-width); }

.score-row .val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent2);
  width: 24px;
  text-align: right;
}

/* ── Onion Address Block ── */
.onion-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.onion-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sub);
  white-space: nowrap;
}

.onion-addr {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--accent2);
  flex: 1;
  word-break: break-all;
}

.copy-btn {
  background: rgba(0,201,167,0.15);
  border: 1px solid rgba(0,201,167,0.4);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform 0.1s;
  white-space: nowrap;
}

.copy-btn:hover { background: rgba(0,201,167,0.25); }
.copy-btn:active { transform: scale(0.97); }
.copy-btn.copied { background: rgba(52,211,153,0.2); color: var(--green); }

/* ── Pros / Cons ── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.pros-box, .cons-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.pros-box { border-top: 3px solid var(--green); }
.cons-box { border-top: 3px solid var(--red); }

.pros-cons-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.9rem;
}

.pros-box .pros-cons-title { color: var(--green); }
.cons-box .pros-cons-title { color: var(--red); }

.check-list { list-style: none; padding: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.check-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.check-list li:last-child { border-bottom: none; }

.check-list .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.pros-box .icon { color: var(--green); }
.cons-box .icon { color: var(--red); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--bg3);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

tbody tr:hover { background: var(--bg3); }

tbody tr.highlight-row { background: rgba(0,201,167,0.06); }
tbody tr.highlight-row:hover { background: rgba(0,201,167,0.1); }

tbody td {
  padding: 0.8rem 1rem;
  color: var(--text);
  vertical-align: middle;
}

.badge-pick {
  background: var(--accent);
  color: #030d0e;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  margin-left: 0.4rem;
}

/* ── Section Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Steps (numbered guide) ── */
.steps { list-style: none; padding: 0; counter-reset: step-counter; }

.steps li {
  counter-increment: step-counter;
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child { border-bottom: none; }

.steps li::before {
  content: counter(step-counter);
  background: linear-gradient(135deg, var(--accent3), var(--accent));
  color: #030d0e;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content h4 { margin-bottom: 0.3rem; }
.step-content p { color: var(--sub); font-size: 0.9rem; margin: 0; }

/* ── Security Checklist ── */
.security-list { list-style: none; padding: 0; }

.security-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.security-list li:last-child { border-bottom: none; }

.security-list .sec-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--accent);
}

.security-list .sec-text strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.security-list .sec-text span { color: var(--sub); }

/* ── Info Box ── */
.info-box {
  background: rgba(0,201,167,0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.warn-box {
  background: rgba(251,191,36,0.07);
  border-left: 3px solid var(--warn);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: #e8d9a0;
}

/* ── Last Updated Badge ── */
.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--sub);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  animation: badge-glow 3s ease-in-out infinite alternate;
}

.updated-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes badge-glow {
  from { box-shadow: none; }
  to   { box-shadow: 0 0 8px var(--glow2); }
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── Disclaimer ── */
.disclaimer {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  color: var(--sub);
  line-height: 1.6;
  margin-top: 2rem;
}

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--sub);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sub);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul a { color: var(--sub); font-size: 0.87rem; }
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--sub);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform 0.1s, box-shadow var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #030d0e;
}

.btn-primary:hover {
  background: var(--accent2);
  color: #030d0e;
  box-shadow: 0 4px 16px var(--glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--glow2);
  color: var(--accent2);
}

/* ── Section header ── */
.section-header {
  margin-bottom: 2rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent3);
  margin-bottom: 0.4rem;
}

/* ── Mobile nav ── */
@media (max-width: 767px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0; height: calc(100vh - 60px);
    z-index: 999;
    background: var(--bg);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0;
    overflow-y: auto;
  }

  .nav-links.open { display: flex !important; }

  .nav-links a {
    padding: 0.875rem 0.75rem;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    display: block;
    width: 100%;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .navbar { position: relative; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .verdict-header { flex-direction: column; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
}

@media (max-width: 479px) {
  .container { padding: 0 1rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2.5rem 0; }
  .onion-block { flex-direction: column; align-items: flex-start; }
  .onion-addr { font-size: 0.78rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
