/* ===== DESIGN SYSTEM ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1629;
  --bg-card: #131d35;
  --accent-gold: #c9a84c;
  --accent-cyan: #4dc9e6;
  --text-primary: #e8eaf0;
  --text-muted: #7a8296;
  --border: rgba(255,255,255,0.08);
  --font-main: 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background: rgba(10,14,26,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.nav-logo {
  font-family: 'Orbitron', var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 2px;
}
.accent { color: var(--accent-gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--accent-gold); }

/* ===== APP CONTAINER ===== */
#app { width: 100%; }

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.video-bg-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,14,26,0.50) 0%,
    rgba(10,14,26,0.65) 55%,
    rgba(10,14,26,0.97) 100%
  );
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 0 2rem;
  margin-bottom: 2.5rem;
}

/* ===== HERO TITLE — Orbitron + shimmer animation ===== */
.hero-title {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(1.5rem, 3.8vw, 3rem);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-transform: uppercase;

  /* Scrolling gradient shimmer: gold → white → cyan → gold */
  background: linear-gradient(
    90deg,
    var(--accent-gold) 0%,
    #f0e0b0            20%,
    var(--accent-cyan) 40%,
    var(--accent-gold) 60%,
    #f0e0b0            80%,
    var(--accent-gold) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  animation: titleShimmer 15s linear infinite;
}

@keyframes titleShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 640px;
  margin: 0 auto 0;
}
.hero-sub .greet {
  color: var(--accent-gold);
  opacity: 0.9;
}

/* ===== HERO CARDS — flip on hover, scale on hover ===== */
.hero-cards {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  width: 100%;
  max-width: 1100px;
  padding: 0 2rem;
  margin-top: 2.5rem;
}

/*
  The outer wrapper:
  - sets the card's fixed height
  - adds perspective so children can flip in 3D
  - scales up on hover
*/
.hero-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.hero-card:hover {
  transform: scale(1.07);
}

/*
  .card-inner is what actually flips.
  transform-style: preserve-3d keeps its children in 3D space.
  On hover of the outer card, this rotates 180 degrees.
*/
.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.hero-card:hover .card-inner {
  transform: rotateY(180deg);
}

/*
  Both .card-front and .card-back:
  - sit on top of each other (position: absolute, inset: 0)
  - backface-visibility: hidden makes each face invisible
    when it's facing away from the viewer
*/
.card-front,
.card-back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15, 22, 41, 0.70);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Front: icon at top, title at bottom */
.card-front {
  justify-content: flex-end;
}

/*
  Back: pre-rotated 180° so it starts hidden.
  When .card-inner rotates 180°, the back comes
  into view and the front disappears.
*/
.card-back {
  transform: rotateY(180deg);
  justify-content: center;
  border-color: rgba(201,168,76,0.30);
  background: rgba(20, 28, 50, 0.85);
}

/* The featured card (Pathfinder) has a gold border on its front */
.hero-card.featured .card-front {
  border-color: rgba(201,168,76,0.40);
  background: rgba(201,168,76,0.06);
}

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}
.card-title {
  font-family: 'Orbitron', var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.card-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.card-arrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  margin-top: 0.8rem;
  letter-spacing: 1.5px;
}

/* ===== INNER PAGE CONTAINER ===== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.section-title {
  font-family: 'Orbitron', var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* ===== EXPLORE FIELDS GRID ===== */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.field-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.field-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(77,201,230,0.08);
}
.field-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.field-card h3 { color: var(--text-primary); margin-bottom: 0.2rem; font-size: 1rem; }
.field-card h4 {
  color: var(--accent-gold);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
  font-family: var(--font-mono);
}
.field-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}
.explore-link {
  color: var(--accent-cyan);
  font-size: 0.83rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ===== DETAIL PAGE ===== */
.detail-container { padding: 3rem 0; }
.back-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  cursor: pointer;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  padding: 0;
}
.detail-header h1 { font-size: 2rem; margin-bottom: 1rem; }
.intro-text {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 3rem;
  opacity: 0.9;
}
.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}
.template-section {
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.template-section h3 {
  margin-bottom: 1.2rem;
  color: var(--accent-gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.timeline-block {
  border-left: 2px solid var(--accent-cyan);
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}
.timeline-block h5 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}
.timeline-block p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.schools-table { width: 100%; border-collapse: collapse; text-align: left; }
.schools-table th,
.schools-table td {
  padding: 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.schools-table th { color: var(--text-muted); font-weight: 600; }
.career-box {
  background: var(--bg-card);
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1.2rem;
}
.career-box h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.career-desc {
  color: var(--text-muted);
  margin: 0.4rem 0 0.8rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.day-life {
  background: rgba(10,14,26,0.5);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
}
.day-life h6 {
  color: var(--accent-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}
.schedule {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-primary);
  line-height: 1.7;
}
.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
.sidebar-card h5 {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.sidebar-card ul { list-style: none; }
.sidebar-card li {
  margin-bottom: 0.4rem;
  color: var(--text-primary);
  font-size: 0.88rem;
}
.economics p {
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
}
.economics span {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tag {
  background: rgba(77,201,230,0.08);
  border: 1px solid rgba(77,201,230,0.25);
  color: var(--accent-cyan);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ===== PATHFINDER QUIZ ===== */
.quiz-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.quiz-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.quiz-step-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.quiz-question {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  color: var(--accent-gold);
  line-height: 1.45;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.quiz-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}
.quiz-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.quiz-choice {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  color: var(--text-primary);
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-main);
  text-align: left;
  line-height: 1.4;
}
.quiz-choice:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(201,168,76,0.06);
}
.quiz-choice.selected {
  border-color: var(--accent-gold);
  background: rgba(201,168,76,0.12);
  color: var(--accent-gold);
}
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}
.quiz-btn {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: opacity 0.2s, transform 0.2s;
}
.quiz-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.quiz-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.quiz-btn-ghost {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0;
}
.quiz-btn-ghost:hover { color: var(--text-primary); }

/* AI result */
.quiz-result {
  background: var(--bg-secondary);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 2.5rem;
  margin-top: 1rem;
}
.quiz-result h2 {
  font-family: 'Orbitron', var(--font-mono);
  color: var(--accent-gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}
.quiz-result p {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.result-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.result-field-tag {
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--accent-gold);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.result-field-tag:hover { background: rgba(201,168,76,0.22); }

/* Thinking animation */
.quiz-thinking {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 2rem 0;
}
.dot-pulse { display: flex; gap: 5px; }
.dot-pulse span {
  width: 7px;
  height: 7px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
.dot-pulse span:nth-child(2) { animation-delay: 0.2s; }
.dot-pulse span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1);   }
}

/* ===== COMING SOON ===== */
.coming-soon {
  text-align: center;
  padding: 6rem 2rem;
  font-family: var(--font-mono);
}
.coming-soon h2 {
  color: var(--accent-gold);
  font-family: 'Orbitron', var(--font-mono);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}
.coming-soon p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .navbar { padding: 1rem 1.5rem; }
}
@media (max-width: 550px) {
  .hero-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.4rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.78rem; }
}

/* ═══════════════════════════════════════════════════════════════
   TECH TODAY MAGAZINE STYLES
   ═══════════════════════════════════════════════════════════════ */

.tech-today-section {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-today-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tech-today-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.write-article-btn {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 0.8rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}
.write-article-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Category Filter */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.category-tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.category-tag:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.category-tag.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
}

/* Featured Article Hero */
.article-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.article-hero:hover {
  transform: translateY(-3px);
}
.article-hero-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
}
.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,14,26,0.95) 0%,
    rgba(10,14,26,0.5) 50%,
    rgba(10,14,26,0.2) 100%
  );
}
.article-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem;
}
.article-hero-content .article-category {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.article-hero-title {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.article-hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.user-badge {
  background: rgba(77,201,230,0.2);
  color: var(--accent-cyan);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(77,201,230,0.08);
}
.article-card-image {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.user-article-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.article-card-content {
  padding: 1.2rem;
}
.article-category-tag {
  display: inline-block;
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.article-card-title {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.article-card-excerpt {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.article-card-meta {
  display: flex;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.user-article-card {
  border-color: rgba(77,201,230,0.3);
}

/* User Articles Section */
.user-articles-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.user-articles-heading {
  font-family: 'Orbitron', var(--font-mono);
  color: var(--accent-cyan);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.user-articles-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
.user-articles-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.user-article-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.user-article-item:hover {
  background: rgba(77,201,230,0.1);
}
.user-article-item span {
  color: var(--text-primary);
  font-size: 0.9rem;
}
.user-article-actions {
  display: flex;
  gap: 0.5rem;
}
.user-article-actions button {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  cursor: pointer;
  font-family: var(--font-mono);
  transition: all 0.2s;
}
.user-article-actions button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE READER (Medium/Substack Style)
   ═══════════════════════════════════════════════════════════════ */

.article-reader {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.article-reader-header {
  position: relative;
  margin-bottom: 3rem;
}

.article-reader-image {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  position: relative;
}
.article-reader-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,14,26,0.9) 0%,
    rgba(10,14,26,0.3) 60%,
    rgba(10,14,26,0.1) 100%
  );
  border-radius: 16px;
}
.article-reader-header-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
}
.article-reader-header-content .article-category {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.article-reader-title {
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  line-height: 1.2;
}
.article-reader-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.article-reader-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.author-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gold);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}
.author-details {
  display: flex;
  flex-direction: column;
}
.author-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}
.author-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.user-article-label {
  background: rgba(77,201,230,0.15);
  color: var(--accent-cyan);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

/* Article Body Typography */
.article-reader-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1rem;
}
.article-paragraph {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.article-heading {
  font-family: 'Orbitron', var(--font-mono);
  color: var(--accent-gold);
  font-size: 1.3rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: 1px;
}
.article-quote {
  border-left: 3px solid var(--accent-gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 8px 8px 0;
}
.article-quote p {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.article-quote cite {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
}
.article-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.article-list li {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}
.article-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

/* Article Footer */
.article-reader-footer {
  max-width: 680px;
  margin: 3rem auto 0;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.article-tag {
  background: rgba(77,201,230,0.08);
  border: 1px solid rgba(77,201,230,0.25);
  color: var(--accent-cyan);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}
.article-actions {
  display: flex;
  gap: 0.8rem;
}
.article-action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}
.article-action-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Related Articles */
.article-related {
  max-width: 680px;
  margin: 3rem auto 0;
  padding: 0 1rem;
}
.article-related h3 {
  font-family: 'Orbitron', var(--font-mono);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}
.related-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-article-card {
  cursor: pointer;
  transition: transform 0.2s;
}
.related-article-card:hover {
  transform: translateY(-3px);
}
.related-article-image {
  width: 100%;
  height: 100px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.related-article-category {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.related-article-card h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   ARTICLE EDITOR
   ═══════════════════════════════════════════════════════════════ */

.article-editor {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.editor-actions {
  display: flex;
  gap: 0.8rem;
}
.editor-btn {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}
.editor-btn:hover {
  opacity: 0.9;
}
.editor-btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.editor-btn-ghost:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.editor-main {
  max-width: 700px;
  margin: 0 auto;
}

/* Editor Metadata Inputs */
.editor-metadata {
  margin-bottom: 2rem;
}
.editor-title-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 2px solid var(--border);
  color: var(--text-primary);
  font-family: 'Orbitron', var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.editor-title-input:focus {
  border-color: var(--accent-gold);
}
.editor-title-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}
.editor-subtitle-input {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 0.5rem 0;
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}
.editor-subtitle-input:focus {
  border-color: var(--accent-cyan);
}
.editor-meta-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}
.editor-author-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}
.editor-category-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}
.editor-image-row {
  display: flex;
  gap: 0.5rem;
}
.editor-image-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

/* Editor Toolbar */
.editor-toolbar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.editor-toolbar button {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.editor-toolbar button:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(201,168,76,0.1);
}

/* Editor Blocks */
.editor-blocks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.editor-block {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.editor-block:hover {
  background: rgba(255,255,255,0.02);
}
.editor-block-handle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding-top: 0.5rem;
  width: 20px;
  text-align: center;
  opacity: 0.5;
}
.editor-textarea {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.8rem;
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 80px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.editor-textarea:focus {
  border-color: var(--accent-cyan);
}
.editor-heading-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-gold);
  padding: 0.8rem;
  font-family: 'Orbitron', var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s;
}
.editor-heading-input:focus {
  border-color: var(--accent-gold);
}
.editor-block-delete {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.editor-block-delete:hover {
  opacity: 1;
  color: #e55;
}

/* Quote Block Inputs */
.editor-quote-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.editor-quote-text {
  min-height: 60px;
  font-style: italic;
}
.editor-quote-author {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

/* List Block */
.editor-list-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.editor-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.editor-list-bullet {
  color: var(--accent-cyan);
  font-weight: bold;
}
.editor-list-item input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  outline: none;
}
.editor-list-item button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.5;
}
.editor-list-item button:hover {
  opacity: 1;
  color: #e55;
}
.editor-add-list-item {
  background: none;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.editor-add-list-item:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Image Block */
.editor-image-inputs {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.editor-image-url {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  padding: 0.5rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}
.editor-image-caption {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  outline: none;
}

/* Add Block Button */
.editor-add-block {
  width: 100%;
  background: none;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  padding: 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 2rem;
}
.editor-add-block:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(77,201,230,0.05);
}

/* Preview Modal */
.editor-preview-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,14,26,0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}
.editor-preview-content {
  max-width: 800px;
  width: 100%;
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.editor-preview-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}
.editor-preview-close:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .article-hero-image {
    height: 250px;
  }
  .article-hero-content {
    padding: 1.5rem;
  }
  .related-articles {
    grid-template-columns: 1fr;
  }
  .editor-meta-row {
    flex-direction: column;
  }
  .article-reader-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
