@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* ─── VARIABLES ─── */
:root {
  --border:   #0d3a4a;
  --accent:   #00c8ff;
  --accent2:  #00ff9d;
  --text:     #a8d8e8;
  --text-dim: #3a6a7a;
  --glow:     0 0 8px #00c8ff88, 0 0 20px #00c8ff33;
  --glow2:    0 0 8px #00ff9d88, 0 0 20px #00ff9d22;
  --topbar-h: 42px;
  --contact-h: 64px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── BASE ─── */
body {
  background: #00000f;
  color: var(--text);
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Grid noise */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ─── GRADIENT TEXT ─── */
.gs-text {
  display: block;
  background: linear-gradient(90deg, #ffe600, #00ff55);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 1px 1px 0px #ffe60055;
}

/* ─── TOP BAR ─── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: #000010;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 1000;
  font-size: 13px;
  color: #6a9aaa;
  letter-spacing: 0.1em;
}

.blip {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: var(--glow2);
  animation: pulse 2s infinite;
  margin-right: 6px;
}

#topbar-nav {
  display: flex;
  gap: 20px;
}

#topbar-nav a {
  color: #8ec8d8;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

#topbar-nav a:hover { color: var(--accent); }

/* ─── WRAPPER ─── */
#wrapper {
  padding-top: var(--topbar-h);
  padding-bottom: var(--contact-h);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ─── MAIN ─── */
#main {
  display: flex;
  flex-direction: column;
  background: #010108;
  min-height: calc(100vh - var(--topbar-h) - var(--contact-h));
  animation: fadein 0.5s ease 0.1s both;
}

/* ─── ARTICLE LIST ─── */
#article-list {
  flex: 1;
  padding: 0 120px;
}

.article-list-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.article-list-item a {
  display: block;
  padding: 18px 0;
  text-decoration: none;
}

.article-list-item a:hover { background: #040e16; }
.article-list-item a:hover .ali-title { color: var(--accent); }

.ali-cat {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.ali-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.ali-date {
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── CONTACT BAR ─── */
#contact {
  position: sticky;
  bottom: 0;
  height: var(--contact-h);
  background: #000010;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 48px;
  z-index: 1000;
}

.panel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.contact-item {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-item a:hover {
  opacity: 0.7;
  text-shadow: var(--glow);
}

.contact-bracket { color: var(--border); }

/* ─── SCAN LINE ─── */
.scan-line {
  position: fixed;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,0.15), transparent);
  animation: scandown 6s linear infinite;
  pointer-events: none;
  z-index: 9998;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #03030f; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ─── ANIMATIONS ─── */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: var(--glow2); }
  50%       { opacity: 0.4; box-shadow: none; }
}

@keyframes scandown {
  0%   { transform: translateY(-100%); opacity: 0.4; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── ARTICLE PAGE ─── */

#article-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.article-cat {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-title-link {
  text-decoration: none;
  display: block;
}

.article-title-link:hover .article-title { opacity: 0.75; }

.article-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 16px;
  transition: opacity 0.2s;
}

.article-meta {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  display: flex;
  gap: 20px;
}

.article-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.9;
}

.article-body p { margin-bottom: 1.5em; }

.article-body h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 2.2em 0 0.6em;
  letter-spacing: 0.05em;
}

.article-body h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin: 1.8em 0 0.5em;
  letter-spacing: 0.05em;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s;
}

.article-body a:hover { border-color: var(--accent); }

.article-body code {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  background: #040c14;
  color: var(--accent2);
  padding: 1px 6px;
  border: 1px solid var(--border);
}

.article-body pre {
  background: #020a10;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 1.5em 0;
  font-size: 13px;
  line-height: 1.6;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text);
}

.article-body blockquote {
  border-left: 3px solid var(--accent2);
  margin: 1.5em 0;
  padding: 10px 20px;
  color: var(--text-dim);
  font-style: italic;
}

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

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

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.6em 0;
}
