@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@700;900&display=swap');

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #000;
  color: #00ff80;
}

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.7;
  background: #000;
  color: #00ff80;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #000;
  border-right: 3px solid #00ff80;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
  padding: 0;
}

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 2px solid #00ff80;
}

.brand-link {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #00ff80;
  text-decoration: none;
  letter-spacing: 0.05em;
  line-height: 1.3;
  word-break: break-all;
}

.brand-link:hover {
  color: #000;
  background: #00ff80;
}

.brand-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  color: #000;
  background: #0000ff;
  padding: 2px 8px;
  letter-spacing: 0.1em;
}

.sidebar nav {
  flex: 1;
  padding: 16px 12px;
}

.sidebar nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar nav ul li {
  width: 100%;
}

.nav-pill {
  display: block;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #00ff80;
  text-decoration: none;
  border: 2px solid #00ff80;
  border-radius: 999px;
  transition: none;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.nav-pill:hover,
.nav-pill--active {
  background: #00ff80;
  color: #000;
}

.sidebar-contact {
  padding: 16px 20px;
  border-top: 2px solid #00ff80;
}

.contact-label {
  font-size: 0.72rem;
  color: #0000ff;
  letter-spacing: 0.08em;
}

/* ===== PAGE BODY ===== */
.page-body {
  margin-left: 260px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ===== HERO (HOME) ===== */
.hero {
  min-height: 70vh;
  background: #000;
  border-bottom: 4px solid #00ff80;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    #00ff8015 39px,
    #00ff8015 40px
  );
  pointer-events: none;
}

.hero-inner {
  text-align: center;
  padding: 60px 40px;
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  color: #000;
  background: #0000ff;
  padding: 4px 14px;
  letter-spacing: 0.12em;
  margin-bottom: 24px;
}

.hero-h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 4rem);
  color: #00ff80;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-shadow: 0 0 40px #00ff8066;
}

.hero-sub {
  font-size: 1rem;
  color: #00ff8099;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid #0000ff;
  color: #0000ff;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

/* ===== CATEGORY HERO ===== */
.cat-hero {
  min-height: 30vh;
  background: #000;
  border-bottom: 4px solid #0000ff;
  display: flex;
  align-items: flex-end;
  padding: 0;
}

.cat-hero-inner {
  padding: 40px 48px;
  border-left: 6px solid #00ff80;
  margin: 32px 40px;
}

.cat-eyebrow {
  font-size: 0.72rem;
  color: #0000ff;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.cat-hero-inner h1,
.tag-hero-inner h1,
.about-hero-inner h1,
.privacy-hero-inner h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  color: #00ff80;
  line-height: 1.15;
  margin-bottom: 12px;
}

.cat-desc {
  color: #00ff8099;
  font-size: 0.9rem;
}

/* ===== TAG HERO ===== */
.tag-hero {
  min-height: 25vh;
  background: #000;
  border-bottom: 4px solid #00ff80;
  display: flex;
  align-items: flex-end;
}

.tag-hero-inner {
  padding: 40px 48px;
  border-left: 6px solid #0000ff;
  margin: 32px 40px;
}

.tag-eyebrow {
  font-size: 0.72rem;
  color: #00ff80;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

/* ===== ABOUT HERO ===== */
.about-hero {
  min-height: 28vh;
  background: #000;
  border-bottom: 4px solid #00ff80;
  display: flex;
  align-items: flex-end;
}

.about-hero-inner {
  padding: 40px 48px;
  border-left: 6px solid #0000ff;
  margin: 32px 40px;
}

.about-eyebrow {
  font-size: 0.72rem;
  color: #0000ff;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

/* ===== PRIVACY HERO ===== */
.privacy-hero {
  min-height: 25vh;
  background: #000;
  border-bottom: 3px solid #00ff80;
  display: flex;
  align-items: flex-end;
}

.privacy-hero-inner {
  padding: 40px 48px;
  border-left: 6px solid #0000ff;
  margin: 32px 40px;
}

.privacy-eyebrow {
  font-size: 0.72rem;
  color: #0000ff;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}

.privacy-date {
  font-size: 0.8rem;
  color: #00ff8077;
  margin-top: 8px;
}

/* ===== MAIN LAYOUT ===== */
main {
  display: flex;
  gap: 0;
  flex: 1;
  align-items: flex-start;
  border-bottom: 3px solid #00ff80;
}

main > .wrap {
  flex: 1;
  min-width: 0;
  padding: 40px 40px 40px;
  border-right: 2px solid #00ff8033;
}

/* ===== CONTENT ARTICLE ===== */
.content-article {
  max-width: 760px;
}

.content-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #00ff80cc;
}

.content-body h2,
.content-body h3,
.content-body h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  color: #00ff80;
  margin: 2em 0 0.6em;
}

.content-body h2 { font-size: 1.4rem; }
.content-body h3 { font-size: 1.15rem; }

.content-body p { margin-bottom: 1.2em; }

.content-body a {
  color: #00ff80;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-body a:hover {
  color: #000;
  background: #00ff80;
}

.content-body ul,
.content-body ol {
  margin: 1em 0 1em 1.5em;
}

.content-body li { margin-bottom: 0.4em; }

.content-body blockquote {
  border-left: 4px solid #0000ff;
  padding-left: 16px;
  color: #00ff8099;
  margin: 1.5em 0;
}

.content-body code {
  font-family: 'JetBrains Mono', monospace;
  background: #0000ff22;
  padding: 2px 6px;
  color: #00ff80;
}

.content-body pre {
  background: #000;
  border: 2px solid #0000ff;
  padding: 16px;
  overflow-x: auto;
  margin: 1.5em 0;
}

/* ===== ARTICLE HEADER ===== */
.article-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #00ff8033;
}

.article-eyebrow a {
  font-size: 0.75rem;
  color: #0000ff;
  text-decoration: none;
  letter-spacing: 0.1em;
}

.article-eyebrow a:hover { text-decoration: underline; }

.article-full h1 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: #00ff80;
  margin: 10px 0 14px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta time {
  font-size: 0.78rem;
  color: #00ff8066;
  letter-spacing: 0.05em;
}

.article-hero-wrap {
  margin-top: 20px;
}

.article-hero-img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid #0000ff;
}

/* ===== SECTIONS ===== */
.wrap article {
  margin-bottom: 60px;
}

.wrap article h2 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #00ff80;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.wrap article > h2 + hr,
.content-article h2 + hr,
.aside-title + hr {
  border: none;
  border-top: 2px solid #00ff80;
  margin: 12px 0 24px;
}

hr {
  border: none;
  border-top: 2px solid #00ff8033;
  margin: 16px 0;
}

/* ===== CARDS ===== */
.card {
  background: #000;
  border: 2px solid #00ff8044;
  border-radius: 28px;
  padding: 24px 28px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 #00ff8022;
  transition: none;
}

.card:hover {
  border-color: #00ff80;
  box-shadow: 6px 6px 0 #00ff8055;
}

.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.card h3 a {
  color: #00ff80;
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
}

.card-eyebrow {
  font-size: 0.7rem;
  color: #0000ff;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.card-desc {
  font-size: 0.88rem;
  color: #00ff8088;
  line-height: 1.6;
  margin-bottom: 10px;
}

.card-date {
  font-size: 0.75rem;
  color: #00ff8055;
}

/* ===== CATEGORY BLOCKS ===== */
.cat-block {
  display: block;
  border: 3px solid #0000ff;
  border-radius: 0;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: #000;
  box-shadow: 4px 4px 0 #0000ff44;
}

.cat-block:hover {
  box-shadow: 6px 6px 0 #0000ff88;
}

.cat-block h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.cat-block h3 a {
  color: #0000ff;
  text-decoration: none;
}

.cat-block h3 a:hover { text-decoration: underline; }

.cat-block p {
  font-size: 0.85rem;
  color: #00ff8077;
}

/* ===== NAV CARDS ===== */
.nav-card {
  border: 2px solid #00ff8033;
  border-left: 4px solid #0000ff;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #000;
  box-shadow: 4px 4px 0 #00ff8011;
  border-radius: 28px;
}

.nav-card:hover {
  border-color: #00ff80;
  border-left-color: #0000ff;
}

.nav-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.nav-card h3 a {
  color: #00ff80;
  text-decoration: none;
}

.nav-card h3 a:hover { text-decoration: underline; }

.nav-card p {
  font-size: 0.83rem;
  color: #00ff8077;
}

/* ===== RELATED CARDS ===== */
.related-card {
  border: 1px solid #00ff8033;
  border-radius: 28px;
  padding: 14px 20px;
  margin-bottom: 10px;
  background: #000;
  box-shadow: 3px 3px 0 #00ff8011;
}

.related-card:hover {
  border-color: #00ff8077;
}

.related-card h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.related-card h4 a {
  color: #00ff80;
  text-decoration: none;
}

.related-card h4 a:hover { text-decoration: underline; }

.related-card time {
  font-size: 0.75rem;
  color: #00ff8055;
}

/* ===== ASIDE ===== */
.content-aside {
  width: 240px;
  flex-shrink: 0;
  padding: 40px 24px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.aside-block {
  margin-bottom: 32px;
  padding: 16px;
  border: 2px solid #00ff8033;
  background: #000;
}

.aside-block--accent {
  border-color: #0000ff;
}

.aside-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #00ff80;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

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

.aside-list li {
  border-bottom: 1px solid #00ff8022;
  padding: 8px 0;
  font-size: 0.82rem;
  color: #00ff8099;
}

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

.aside-list a {
  color: #00ff80;
  text-decoration: none;
  display: block;
}

.aside-list a:hover {
  color: #000;
  background: #00ff80;
  padding-left: 4px;
}

/* ===== ABOUT META ===== */
.about-meta {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #00ff8033;
}

.about-meta time {
  font-size: 0.78rem;
  color: #00ff8055;
}

/* ===== EMPTY TIP ===== */
.empty-tip {
  color: #00ff8044;
  font-size: 0.9rem;
  padding: 20px 0;
}

/* ===== FOOTER ===== */
footer {
  display: flex;
  gap: 0;
  border-top: 3px solid #00ff80;
  background: #000;
}

footer > article {
  flex: 1;
  padding: 32px 40px;
}

.footer-brand {
  border-right: 2px solid #00ff8033;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #00ff80;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.footer-brand p {
  font-size: 0.83rem;
  color: #00ff8066;
  line-height: 1.6;
}

.footer-links ul {
  list-style: none;
  margin-bottom: 24px;
}

.footer-links ul li {
  padding: 5px 0;
  border-bottom: 1px solid #00ff8011;
}

.footer-links ul li a {
  font-size: 0.83rem;
  color: #00ff8088;
  text-decoration: none;
}

.footer-links ul li a:hover {
  color: #00ff80;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #00ff8033;
  font-size: 0.75rem;
  color: #00ff8055;
}

.footer-bottom a {
  color: #0000ff;
  text-decoration: none;
}

.footer-bottom a:hover { text-decoration: underline; }

/* ===== STAGGER ANIMATION ===== */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.4s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes staggerIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stagger-item {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero::before {
    display: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .content-aside {
    width: 200px;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    width: 100%;
    height: auto;
    min-height: unset;
    border-right: none;
    border-bottom: 3px solid #00ff80;
    flex-direction: column;
    overflow: visible;
    z-index: 200;
  }

  .sidebar nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
  }

  .sidebar nav {
    padding: 10px 12px;
  }

  .sidebar-contact {
    display: none;
  }

  .sidebar-brand {
    padding: 14px 16px;
  }

  .brand-link {
    font-size: 0.88rem;
  }

  .page-body {
    margin-left: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .hero {
    padding-top: 120px;
    min-height: 70vh;
  }

  .content-aside {
    display: none;
  }

  main {
    flex-direction: column;
  }

  main > .wrap {
    border-right: none;
    padding: 24px 20px;
  }

  footer {
    flex-direction: column;
  }

  .footer-brand {
    border-right: none;
    border-bottom: 2px solid #00ff8033;
  }

  footer > article {
    padding: 24px 20px;
  }

  .cat-hero-inner,
  .tag-hero-inner,
  .about-hero-inner,
  .privacy-hero-inner {
    margin: 16px 20px;
    padding: 24px 24px;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 40px 20px;
  }

  .hero-h1 {
    font-size: 1.8rem;
  }

  .hero-badges {
    gap: 6px;
  }

  .badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  .nav-pill {
    font-size: 0.72rem;
    padding: 8px 12px;
    min-height: 40px;
  }

  .card {
    border-radius: 16px;
    padding: 18px 20px;
  }

  .nav-card {
    border-radius: 16px;
  }

  .content-body {
    font-size: 1rem;
  }

  .article-full h1 {
    font-size: 1.4rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .wrap article h2 {
    font-size: 1.1rem;
  }
}

/* ===== SECTION SPACING ===== */
.section-cats,
.section-articles,
.section-children,
.section-related,
.section-tagged,
.section-nav-list,
.section-related-links {
  margin-top: 48px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #00ff8055;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ff80;
}

/* ===== SELECTION ===== */
::selection {
  background: #00ff80;
  color: #000;
}
