@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Share+Tech+Mono&display=swap');

:root {
  --bg:      #0d0010;
  --bg2:     #150018;
  --panel:   #130016;
  --border:  #4a1060;
  --pink:    #ff4dd2;
  --pink2:   #ff85e1;
  --hotpink: #ff0099;
  --cyan:    #00f0ff;
  --yellow:  #ffe600;
  --green:   #39ff14;
  --white:   #ffe8ff;
  --muted:   #804090;
  --glow-p:  0 0 8px #ff4dd2, 0 0 22px #ff4dd244;
  --glow-c:  0 0 8px #00f0ff, 0 0 22px #00f0ff44;
}

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

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 15% 40%, #2a003a 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, #1a0030 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, #200025 0%, transparent 50%);
  color: var(--white);
  font-family: 'VT323', monospace;
  font-size: 18px;
  min-height: 100vh;
}

/* scanlines */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    #00000010 2px, #00000010 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ── MARQUEE ── */
.marquee-bar {
  background: linear-gradient(90deg, var(--hotpink), var(--pink2), var(--hotpink));
  color: #000;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 6px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-inner {
  display: inline-block;
  animation: marquee 22s linear infinite;
}
@keyframes marquee { from { transform: translateX(100vw); } to { transform: translateX(-100%); } }

/* ── HEADER ── */
header {
  text-align: center;
  padding: 40px 20px 28px;
}
.site-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 4vw, 34px);
  color: var(--pink);
  text-shadow: var(--glow-p), 3px 3px 0 var(--hotpink);
  line-height: 1.7;
  letter-spacing: 2px;
}
.site-subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: var(--pink2);
  margin-top: 10px;
  text-shadow: var(--glow-p);
  letter-spacing: 4px;
}
.star-row {
  color: var(--pink);
  font-size: 20px;
  letter-spacing: 6px;
  margin: 12px 0;
  text-shadow: var(--glow-p);
}
.blink { animation: blink 1.2s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── NAV ── */
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 auto 30px;
  padding: 0 20px;
  max-width: 960px;
}
nav a {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: #000;
  background: var(--pink);
  padding: 8px 12px;
  text-decoration: none;
  border: 2px solid var(--white);
  box-shadow: 3px 3px 0 var(--hotpink);
  transition: all 0.1s;
  white-space: nowrap;
}
nav a:hover {
  background: var(--hotpink);
  box-shadow: 3px 3px 0 var(--cyan);
  transform: translate(-1px, -1px);
}
nav a.active { background: var(--pink2); }

/* ── LAYOUT ── */
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 60px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}
@media (max-width: 720px) {
  .wrapper { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ── PANEL ── */
.panel {
  background: var(--panel);
  border: 2px solid var(--border);
  box-shadow: inset 0 0 30px #00000060, 0 0 1px var(--pink);
  overflow: hidden;
}
.panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  background: linear-gradient(90deg, #ff4dd210, #ff009910);
  border-bottom: 2px solid var(--border);
  padding: 10px 14px;
  color: var(--pink);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title::before { content: '▶'; color: var(--hotpink); font-size: 8px; }

/* ── POSTS (index feed) ── */
.posts { display: flex; flex-direction: column; }
.post {
  border-bottom: 1px dashed var(--border);
  padding: 22px 20px;
  transition: background 0.2s;
}
.post:last-child { border-bottom: none; }
.post:hover { background: #ffffff04; }

.post-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.post-date { color: var(--green); }
.post-tag {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid;
}
.tag-tech   { color: var(--cyan);   border-color: var(--cyan); }
.tag-hobby  { color: var(--pink2);  border-color: var(--pink2); }
.tag-life   { color: var(--yellow); border-color: var(--yellow); }

.post-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--white);
  line-height: 1.9;
  margin-bottom: 10px;
  text-decoration: none;
  display: block;
}
.post-title:hover { color: var(--pink); text-shadow: var(--glow-p); }

.post-excerpt {
  font-size: 17px;
  color: #b080c0;
  line-height: 1.5;
  margin-bottom: 12px;
}
.read-more {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px dotted var(--pink);
}
.read-more:hover { color: var(--cyan); border-color: var(--cyan); }

/* ── BLOG PAGE: post list ── */
.blog-list .post-title { font-size: 11px; }
.blog-filters {
  padding: 14px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px dashed var(--border);
}
.filter-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.1s;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 6px var(--pink);
}

/* ── SIDEBAR WIDGETS ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.profile-card { padding: 18px; text-align: center; }
.avatar-frame {
  width: 80px; height: 80px;
  border: 3px solid var(--pink);
  box-shadow: 0 0 14px var(--pink), inset 0 0 12px #00000080;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  background: #1a0020;
  position: relative;
  overflow: hidden;
}
.avatar-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #ffffff15 0%, transparent 60%);
}
.profile-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--pink);
  margin-bottom: 6px;
}
.profile-bio { font-size: 15px; color: var(--muted); line-height: 1.4; margin-bottom: 14px; }
.badge-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  padding: 3px 6px;
  background: #100015;
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge.on { color: var(--pink2); border-color: var(--pink2); }

.now-playing { padding: 14px 16px; }
.np-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.np-track {
  font-size: 20px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
}
.np-track span { display: inline-block; animation: marquee 12s linear infinite; }
.np-bar {
  height: 4px;
  background: var(--border);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.np-bar::after {
  content: '';
  position: absolute; left: 0; top: 0; height: 100%;
  width: 55%;
  background: linear-gradient(90deg, var(--pink), var(--hotpink));
}
.np-controls { font-size: 16px; color: var(--muted); margin-top: 6px; letter-spacing: 6px; text-align: center; }

.links-list { padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.links-list a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--pink2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px dotted var(--border);
  display: flex; align-items: center; gap: 6px;
}
.links-list a::before { content: '→'; font-size: 12px; color: var(--hotpink); }
.links-list a:hover { color: var(--cyan); }

.counter { padding: 14px; text-align: center; }
.counter-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 8px;
}
.counter-digits {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--pink);
  text-shadow: var(--glow-p);
  letter-spacing: 4px;
  background: #000;
  padding: 6px 10px;
  border: 2px solid var(--pink);
  display: inline-block;
}

.tag-cloud { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-cloud a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 3px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.tag-cloud a:hover { border-color: var(--pink); color: var(--pink); box-shadow: 0 0 6px var(--pink); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 2px dashed var(--border);
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  color: var(--muted);
}
footer .footer-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--pink);
  margin-bottom: 8px;
}
.made-with { color: var(--hotpink); }

/* ── CURSOR ── */
.cursor-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: var(--pink);
  box-shadow: var(--glow-p);
}
