/* ============================================================
   MONEROJ.CO — The Monero Journal
   Newspaper Editorial Aesthetic · Lora + Source Serif 4
   ============================================================ */

:root {
  --black: #0A0A0A;
  --bg-dark: #0e0e0e;
  --bg-card: #111111;
  --parchment: #FFF8F0;
  --parchment-dim: #F5EDE0;
  --orange: #FF6600;
  --orange-dim: #cc5200;
  --orange-glow: rgba(255, 102, 0, 0.12);
  --gold: #B8860B;
  --gold-light: #D4A843;
  --charcoal: #374151;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --gray-dark: #1F2937;
  --white: #E5E7EB;
  --white-bright: #F9FAFB;
  --red: #EF4444;
  --green: #4ADE80;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1140px;
  --nav-height: 56px;
  --radius: 3px;
  --transition: 0.25s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--white);
  background: var(--black);
  overflow-x: hidden;
}

a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

::selection { background: var(--orange); color: var(--black); }

/* --- Utility --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--white-bright);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.section-desc {
  font-size: 16px;
  color: var(--gray-light);
  max-width: 600px;
  margin-bottom: 40px;
}

.divider { border: none; border-top: 1px solid #1a1a1a; margin: 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.nav.scrolled { border-bottom-color: #1a1a1a; }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white-bright);
  letter-spacing: -0.5px;
}

.nav-logo .j { color: var(--orange); }

/* Price ticker in nav */
.nav-ticker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-ticker .price { color: var(--white); }
.nav-ticker .positive { color: var(--green); }
.nav-ticker .negative { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
}

.nav-links a:hover { color: var(--orange); }

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gray);
  cursor: pointer;
  border: 1px solid #2a2a2a;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: transparent;
  transition: all var(--transition);
}

.lang-toggle:hover { border-color: var(--orange); color: var(--orange); }

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

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: rgba(10,10,10,0.98);
  z-index: 999;
  padding: 40px 24px;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.active { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gray-light);
}

.mobile-nav a:hover { color: var(--orange); }

/* ============================================================
   MASTHEAD / HERO
   ============================================================ */
.masthead {
  padding: 100px 0 40px;
  text-align: center;
  border-bottom: 3px double #2a2a2a;
  position: relative;
}

.masthead::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 20%, rgba(255,102,0,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.masthead-content { position: relative; z-index: 1; }

.masthead-rule {
  width: 60px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 20px;
}

.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  color: var(--white-bright);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 12px;
}

.masthead-title .j { color: var(--orange); }

.masthead-tagline {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--gray-light);
  font-style: italic;
  margin-bottom: 24px;
}

.masthead-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.featured {
  padding: 48px 0;
  border-bottom: 1px solid #1a1a1a;
}

.featured-card {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 48px;
  color: var(--charcoal);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}

.featured-card:hover { transform: translateY(-2px); }

.featured-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--orange);
}

.featured-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
  display: inline-block;
}

.featured-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.featured-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  max-width: 720px;
  margin-bottom: 24px;
}

.featured-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 16px;
}

.featured-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray);
}

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid #1a1a1a;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.article-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}

.article-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.article-card:hover::after { transform: scaleX(1); }

.article-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.tag-regulation { background: rgba(239,68,68,0.12); color: #F87171; }
.tag-market { background: rgba(74,222,128,0.12); color: #4ADE80; }
.tag-protocol { background: rgba(139,92,246,0.12); color: #A78BFA; }
.tag-mining { background: rgba(251,191,36,0.12); color: #FBBF24; }
.tag-opinion { background: rgba(255,102,0,0.12); color: var(--orange); }
.tag-tutorial { background: rgba(59,130,246,0.12); color: #60A5FA; }

.article-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--white-bright);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gray);
}

/* ============================================================
   CATEGORY PILLS
   ============================================================ */
.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  color: var(--gray-light);
  cursor: default;
  transition: all var(--transition);
  background: transparent;
}

.pill:hover { border-color: var(--orange); color: var(--orange); }
.pill.active { border-color: var(--orange); color: var(--orange); background: var(--orange-glow); }

/* ============================================================
   NEWSLETTER SIGNUP
   ============================================================ */
.newsletter {
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid #1a1a1a;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white-bright);
  margin-bottom: 8px;
}

.newsletter-desc {
  font-size: 15px;
  color: var(--gray-light);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--black);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input::placeholder { color: var(--gray); }
.newsletter-form input:focus { border-color: var(--orange); }

.newsletter-form button {
  padding: 12px 24px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--white-bright); }

.newsletter-privacy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  margin-top: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--orange);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary:hover { background: var(--white-bright); color: var(--black); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--orange);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-secondary:hover { background: var(--orange-glow); border-color: var(--gold-light); color: var(--white-bright); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 800px; }

.faq-item { border-bottom: 1px solid #1a1a1a; }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white-bright);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

.faq-question:hover { color: var(--orange); }

.faq-question .icon {
  font-size: 18px;
  color: var(--gray);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.faq-item.active .faq-question .icon { transform: rotate(45deg); color: var(--orange); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.8;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 3px double #1a1a1a;
  padding: 48px 0 32px;
}

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

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white-bright);
  margin-bottom: 12px;
}

.footer-brand-name .j { color: var(--orange); }

.footer-brand-desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--gray-light);
  margin-bottom: 10px;
}

.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--orange); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   AFFILIATE BAR
   ============================================================ */
.affiliate-bar {
  background: #070707;
  border-bottom: 1px solid #1a1a1a;
  padding: 8px 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--gray);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
}

/* ============================================================
   PAGE-SPECIFIC: Inner Pages
   ============================================================ */
.page-hero {
  padding: 110px 0 48px;
  text-align: center;
  border-bottom: 1px solid #1a1a1a;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white-bright);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.page-hero-sub {
  font-size: 15px;
  color: var(--gray-light);
  font-style: italic;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 24px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white-bright);
  margin: 40px 0 12px;
  letter-spacing: -0.3px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.page-content ul { margin-bottom: 16px; }

.page-content ul li {
  font-size: 15px;
  color: var(--gray-light);
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.page-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--orange);
}

.page-content a { text-decoration: underline; }

/* Contact Form */
.contact-form { max-width: 560px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); }

.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray); }

.form-error { font-family: var(--font-mono); font-size: 11px; color: var(--red); margin-top: 6px; display: none; }
.form-group.error .form-error { display: block; }
.form-group.error input, .form-group.error textarea { border-color: var(--red); }

/* Blog listing (reuse for blog/index.html) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Status pages */
.status-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.status-code {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 16px;
}

.status-message {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--white-bright);
  margin-bottom: 12px;
}

.status-desc {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 32px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-ticker { display: none; }
  .hamburger { display: flex; }

  .masthead { padding: 80px 0 32px; }
  .masthead-title { letter-spacing: -1px; }

  .featured-card { padding: 32px 24px; }
  .featured-title { font-size: 24px; }

  .articles-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .section { padding: 56px 0; }

  .newsletter { padding: 36px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 90px 0 36px; }
  .page-hero-title { font-size: 28px; }
}
