/* ════════════════════════════════════════════════════
   WIIRDO.COM — style.css
   Dark cyber-tech / Y2K aesthetic, 2026 tools
   ════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─── */
:root {
  --bg-primary:       #050a0f;
  --bg-secondary:     #080f0a;
  --glass-bg:         rgba(5, 15, 8, 0.78);
  --glass-bg-hover:   rgba(5, 20, 10, 0.88);

  --neon-green:       #00ff41;
  --neon-green-dim:   #00cc33;
  --neon-green-faint: rgba(0, 255, 65, 0.06);
  --neon-cyan:        #00ffff;
  --neon-blue:        #0088ff;

  --text-primary:     #c8ffc8;
  --text-secondary:   #7aaa7a;
  --text-muted:       #3a5a3a;

  --glow-green:       0 0 4px #00ff41, 0 0 14px rgba(0,255,65,0.5), 0 0 30px rgba(0,255,65,0.2);
  --glow-green-soft:  0 0 6px rgba(0,255,65,0.4);
  --glow-cyan:        0 0 4px #00ffff, 0 0 14px rgba(0,255,255,0.5);
  --glow-blue:        0 0 4px #0088ff, 0 0 14px rgba(0,136,255,0.5);
  --glow-text-green:  0 0 6px #00ff41, 0 0 18px rgba(0,255,65,0.5);
  --glow-text-logo:   0 0 8px #00ff41, 0 0 28px rgba(0,255,65,0.6), 0 0 70px rgba(0,255,65,0.25);
  --glow-text-cyan:   0 0 6px #00ffff, 0 0 16px rgba(0,255,255,0.4);

  --border-panel:     1px solid rgba(0, 255, 65, 0.22);
  --border-bright:    1px solid rgba(0, 255, 65, 0.65);

  --font-display:     'Orbitron', monospace;
  --font-mono:        'Share Tech Mono', monospace;
  --font-body:        'Rajdhani', sans-serif;

  --sidebar-width:    220px;
  --gap:              14px;
  --radius:           3px;

  --transition:       0.25s ease;
  --transition-fast:  0.15s ease;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-green) #060d07;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #060d07; }
::-webkit-scrollbar-thumb {
  background: var(--neon-green);
  border-radius: 3px;
  box-shadow: var(--glow-green-soft);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  /* Subtle circuit background pattern */
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0,255,65,0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0,136,255,0.03) 0%, transparent 50%);
}

/* ─── SCANLINE OVERLAY ─── */
#scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.35;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.09) 2px,
    rgba(0, 0, 0, 0.09) 4px
  );
}

/* ─── PAGE WRAPPER ─── */
#page-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* ════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════ */
#site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px var(--gap) 20px;
  position: relative;
  text-align: center;
}

.header-left,
.header-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.85;
  flex-shrink: 0;
}

.header-left  { left: var(--gap); }
.header-right { right: var(--gap); }

@media (max-width: 700px) {
  .header-left,
  .header-right { display: none; }
}

.header-center {
  text-align: center;
}

#logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--neon-green);
  text-shadow: var(--glow-text-logo);
  animation: logoGlow 3.5s ease-in-out infinite alternate;
  line-height: 1;
}

.logo-dot {
  color: var(--neon-cyan);
  text-shadow: var(--glow-text-cyan);
}

@keyframes logoGlow {
  from {
    text-shadow: 0 0 8px #00ff41, 0 0 24px rgba(0,255,65,0.55), 0 0 60px rgba(0,255,65,0.2);
  }
  to {
    text-shadow: 0 0 14px #00ff41, 0 0 40px rgba(0,255,65,0.75), 0 0 90px rgba(0,255,65,0.35);
  }
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text-cyan);
  margin-top: 10px;
  min-height: 1.4em;
}

.cursor-blink {
  color: var(--neon-green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(4, 9, 6, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: var(--border-panel);
  border-bottom: var(--border-panel);
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  padding: 7px 0;
  flex-wrap: wrap;
}

.nav-links a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: var(--transition);
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-green);
  border-color: rgba(0,255,65,0.5);
  text-shadow: var(--glow-text-green);
  background: linear-gradient(
    180deg,
    rgba(0,255,65,0.1) 0%,
    rgba(0,255,65,0.03) 100%
  );
  box-shadow: var(--glow-green-soft), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* LIVE nav button */
.nav-links a.nav-live {
  color: var(--neon-green);
  border-color: rgba(0,255,65,0.5);
  background: linear-gradient(180deg, rgba(0,255,65,0.1) 0%, rgba(0,255,65,0.03) 100%);
  text-shadow: var(--glow-text-green);
  animation: livePulse 2s ease-in-out infinite alternate;
  margin-left: 6px;
}

.nav-links a.nav-live::before {
  content: '● ';
  font-size: 0.5rem;
  vertical-align: middle;
  margin-right: 2px;
}

.nav-links a.nav-live:hover {
  background: linear-gradient(180deg, rgba(0,255,65,0.2) 0%, rgba(0,255,65,0.08) 100%);
  box-shadow: var(--glow-green);
}

@keyframes livePulse {
  from { box-shadow: 0 0 4px rgba(0,255,65,0.3); border-color: rgba(0,255,65,0.4); }
  to   { box-shadow: var(--glow-green); border-color: rgba(0,255,65,0.8); }
}

/* Hamburger — hidden by default */
#hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 0;
  margin-left: auto;
  cursor: pointer;
}

#hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neon-green);
  box-shadow: var(--glow-green-soft);
  border-radius: 1px;
  transition: var(--transition);
  transform-origin: center;
}

#hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════
   LAYOUT GRID
   ════════════════════════════════════════════════════ */
#layout-grid {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
  grid-template-areas: "left main right";
  gap: var(--gap);
  padding: var(--gap) 0 var(--gap);
  align-items: start;
}

#sidebar-left  { grid-area: left; display: flex; flex-direction: column; gap: var(--gap); }
#main-content  { grid-area: main; display: flex; flex-direction: column; gap: var(--gap); }
#sidebar-right { grid-area: right; display: flex; flex-direction: column; gap: var(--gap); }

/* ════════════════════════════════════════════════════
   GLASS PANEL / WIDGET BASE
   ════════════════════════════════════════════════════ */
.widget,
#main-content section {
  background: var(--glass-bg);
  border: var(--border-panel);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.widget:hover,
#main-content section:hover {
  border-color: rgba(0,255,65,0.4);
  box-shadow: var(--glow-green-soft);
}

/* Bevel top-edge highlight */
.widget::before,
#main-content section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,255,65,0.5) 20%,
    rgba(0,255,255,0.35) 50%,
    rgba(0,255,65,0.5) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Corner bracket decoration */
.widget::after {
  content: '';
  position: absolute;
  bottom: 5px; right: 5px;
  width: 10px; height: 10px;
  border-right: 1px solid rgba(0,255,65,0.4);
  border-bottom: 1px solid rgba(0,255,65,0.4);
  pointer-events: none;
}

/* ─── WIDGET TITLE ─── */
.widget-title {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neon-green);
  text-shadow: var(--glow-text-green);
  border-bottom: 1px solid rgba(0,255,65,0.18);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ─── SECTION TITLE ─── */
.section-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-green);
  text-shadow: var(--glow-text-green);
  border-bottom: 1px solid rgba(0,255,65,0.18);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid;
  white-space: nowrap;
  position: relative;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: linear-gradient(180deg, rgba(0,255,65,0.1) 0%, rgba(0,255,65,0.03) 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(0,255,65,0.2) 0%, rgba(0,255,65,0.08) 100%);
  box-shadow: var(--glow-green);
  text-shadow: var(--glow-text-green);
}

.btn-ghost {
  color: var(--text-secondary);
  border-color: rgba(0,255,65,0.25);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--neon-green);
  border-color: rgba(0,255,65,0.5);
  text-shadow: var(--glow-text-green);
  background: rgba(0,255,65,0.04);
}

.btn-large {
  padding: 13px 28px;
  font-size: 0.68rem;
}

/* ════════════════════════════════════════════════════
   LEFT SIDEBAR WIDGETS
   ════════════════════════════════════════════════════ */

/* ── Music Player Placeholder ── */
.player-placeholder {
  text-align: center;
}

.placeholder-display {
  background: #000;
  border: 1px solid rgba(0,255,65,0.25);
  border-radius: 2px;
  padding: 14px 10px;
  margin-bottom: 10px;
}

.placeholder-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 28px;
  margin-bottom: 8px;
}

.placeholder-bars span {
  display: block;
  width: 5px;
  background: rgba(0,255,65,0.2);
  border-radius: 1px;
  animation: barIdle 2s ease-in-out infinite;
}

.placeholder-bars span:nth-child(1) { height: 40%; animation-delay: 0s; }
.placeholder-bars span:nth-child(2) { height: 60%; animation-delay: 0.1s; }
.placeholder-bars span:nth-child(3) { height: 30%; animation-delay: 0.2s; }
.placeholder-bars span:nth-child(4) { height: 70%; animation-delay: 0.3s; }
.placeholder-bars span:nth-child(5) { height: 45%; animation-delay: 0.4s; }
.placeholder-bars span:nth-child(6) { height: 55%; animation-delay: 0.5s; }
.placeholder-bars span:nth-child(7) { height: 35%; animation-delay: 0.6s; }
.placeholder-bars span:nth-child(8) { height: 50%; animation-delay: 0.7s; }

@keyframes barIdle {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.6; }
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(0,255,65,0.4);
  letter-spacing: 0.1em;
}

.placeholder-note {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Social Links ── */
.social-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--neon-green);
  border-color: rgba(0,255,65,0.3);
  background: rgba(0,255,65,0.04);
  text-shadow: var(--glow-text-green);
}

.social-link:hover .social-icon svg {
  filter: drop-shadow(0 0 4px rgba(0,255,65,0.6));
}

.social-icon {
  display: flex;
  align-items: center;
  color: var(--neon-green);
  flex-shrink: 0;
}

.social-arrow {
  margin-left: auto;
  opacity: 0.4;
  font-size: 1rem;
  line-height: 1;
}

.social-link:hover .social-arrow {
  opacity: 1;
}

/* ── Visitor Counter ── */
.counter-wrap {
  text-align: center;
}

.counter-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.counter-label + .count-display + .counter-label {
  margin-top: 6px;
  margin-bottom: 0;
}

.count-display {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green), 0 0 3px var(--neon-green);
  background: #000;
  border: 1px solid rgba(0,255,65,0.35);
  padding: 6px 10px;
  display: block;
  margin: 4px 0;
  border-radius: 2px;
}

/* ── Status Widget ── */
.status-row {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: none;
  margin-right: 8px;
  flex-shrink: 0;
}

.status-dot.live {
  background: var(--neon-green);
  box-shadow: var(--glow-green);
  animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: var(--glow-green); }
  50%       { opacity: 0.45; box-shadow: none; }
}

.status-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  text-shadow: var(--glow-text-green);
}

.status-message {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.status-uptime {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,255,65,0.12);
  padding-top: 8px;
}

.uptime-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.uptime-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  text-shadow: var(--glow-text-cyan);
}

/* ════════════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════════════ */

/* ── Intro ── */
.intro-grid {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.avatar-wrap {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--neon-green);
  box-shadow: var(--glow-green);
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #001a05 0%, #003311 50%, #001508 100%);
}

.avatar-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.avatar-head {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,255,65,0.18);
  border: 1px solid rgba(0,255,65,0.3);
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-body {
  width: 52px;
  height: 38px;
  border-radius: 50% 50% 0 0;
  background: rgba(0,255,65,0.1);
  border: 1px solid rgba(0,255,65,0.2);
  border-bottom: none;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.avatar-ring {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,65,0.15);
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.04); }
}

.avatar-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.12) 3px,
    rgba(0,0,0,0.12) 4px
  );
  border-radius: 50%;
  pointer-events: none;
}

.intro-bio {
  flex: 1;
  min-width: 0;
}

.bio-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

.bio-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}

.intro-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--neon-cyan);
  border: 1px solid rgba(0,255,255,0.3);
  padding: 3px 9px;
  border-radius: 2px;
  background: rgba(0,255,255,0.04);
}

.intro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* ── Project Cards ── */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card {
  background: rgba(3, 12, 5, 0.7);
  border: var(--border-panel);
  border-radius: var(--radius);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--neon-green);
  box-shadow: var(--glow-green-soft);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s ease;
  border-radius: 0;
}

.project-card:hover::before { transform: scaleY(1); }

.project-card:hover {
  border-color: rgba(0,255,65,0.45);
  box-shadow: var(--glow-green-soft);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.project-number {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.project-status {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  padding: 2px 7px;
  border-radius: 2px;
  border: 1px solid rgba(0,255,65,0.3);
  color: var(--text-muted);
  background: rgba(0,255,65,0.04);
}

.project-status.active {
  color: var(--neon-green);
  border-color: rgba(0,255,65,0.5);
  text-shadow: var(--glow-text-green);
  background: rgba(0,255,65,0.08);
}

.project-status.wip {
  color: var(--neon-cyan);
  border-color: rgba(0,255,255,0.4);
  background: rgba(0,255,255,0.05);
}

.project-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.tech-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-cyan);
  border: 1px solid rgba(0,255,255,0.3);
  padding: 2px 8px;
  border-radius: 2px;
  background: rgba(0,255,255,0.04);
}

.project-link {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: var(--glow-text-green);
  transition: var(--transition-fast);
}

.project-link:hover {
  letter-spacing: 0.16em;
}

/* ── Changelog ── */
.changelog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.changelog-entry {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 7px 8px;
  border-radius: 2px;
  transition: background var(--transition-fast);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.changelog-entry:hover {
  background: rgba(0,255,65,0.04);
}

.changelog-version {
  color: var(--neon-green);
  text-shadow: var(--glow-text-green);
  white-space: nowrap;
  font-size: 0.65rem;
}

.changelog-date {
  color: var(--text-muted);
  white-space: nowrap;
  font-size: 0.62rem;
}

.changelog-text {
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Blog Cards ── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: rgba(3, 12, 5, 0.6);
  border: var(--border-panel);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,65,0.4), transparent);
}

.blog-card:hover {
  border-color: rgba(0,255,65,0.4);
  box-shadow: var(--glow-green-soft);
}

.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.blog-category {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--neon-blue);
  border: 1px solid rgba(0,136,255,0.3);
  padding: 1px 6px;
  border-radius: 2px;
}

.blog-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.blog-excerpt {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
}

.blog-link {
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: var(--glow-text-green);
  transition: var(--transition-fast);
}

.blog-link:hover { letter-spacing: 0.16em; }

/* ── CTA ── */
#cta {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(5,15,8,0.85) 0%,
    rgba(0,10,20,0.85) 100%
  );
}

.cta-decor {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-shadow: var(--glow-text-green);
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════
   RIGHT SIDEBAR WIDGETS
   ════════════════════════════════════════════════════ */

/* ── Shoutbox ── */
.message-list {
  height: 190px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2px 0;
  margin-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,65,0.3) transparent;
}

.message-list::-webkit-scrollbar { width: 4px; }
.message-list::-webkit-scrollbar-thumb { background: rgba(0,255,65,0.3); border-radius: 2px; }

.shout-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  line-height: 1.4;
  padding: 2px 0;
  border-bottom: 1px solid rgba(0,255,65,0.06);
}

.shout-user {
  color: var(--neon-cyan);
  text-shadow: var(--glow-text-cyan);
  font-weight: normal;
  flex-shrink: 0;
}

.shout-time {
  color: var(--text-muted);
  font-size: 0.6rem;
  align-self: flex-end;
}

.shout-msg {
  color: var(--text-secondary);
  width: 100%;
  padding-left: 2px;
}

.shout-input-row {
  display: flex;
  gap: 6px;
}

#shout-input {
  flex: 1;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,255,65,0.25);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition-fast);
  min-width: 0;
}

#shout-input::placeholder { color: var(--text-muted); }

#shout-input:focus {
  border-color: var(--neon-green);
  box-shadow: var(--glow-green-soft);
}

.shout-btn {
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.35);
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--radius);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.shout-btn:hover {
  background: rgba(0,255,65,0.18);
  box-shadow: var(--glow-green-soft);
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.gallery-thumb {
  aspect-ratio: 1;
  border: 1px solid rgba(0,255,65,0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: #020a04;
}

.gallery-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,65,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,65,0.06) 1px, transparent 1px);
  background-size: 10px 10px;
}

.gallery-thumb::after {
  content: '⊞';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(0,255,65,0.15);
  font-family: var(--font-mono);
}

.gallery-thumb:hover {
  border-color: rgba(0,255,65,0.55);
  box-shadow: var(--glow-green-soft);
}

.gallery-thumb:focus-visible {
  outline: 1px solid var(--neon-green);
  outline-offset: 2px;
}

/* ── Tech Stack Badges ── */
.badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 2px;
  border: 1px solid;
  transition: var(--transition-fast);
}

.tech-badge:nth-child(3n+1) {
  color: var(--neon-green);
  border-color: rgba(0,255,65,0.3);
  background: rgba(0,255,65,0.05);
}

.tech-badge:nth-child(3n+2) {
  color: var(--neon-cyan);
  border-color: rgba(0,255,255,0.3);
  background: rgba(0,255,255,0.04);
}

.tech-badge:nth-child(3n+3) {
  color: var(--neon-blue);
  border-color: rgba(0,136,255,0.3);
  background: rgba(0,136,255,0.04);
}

.tech-badge:hover {
  box-shadow: var(--glow-green-soft);
  border-color: rgba(0,255,65,0.5);
}

/* ── Now Playing / Mood ── */
.now-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,255,65,0.07);
  gap: 8px;
}

.now-row:last-of-type {
  border-bottom: none;
}

.now-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.now-value {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-value.mood {
  color: var(--neon-green);
  text-shadow: var(--glow-text-green);
}

.now-value.playing {
  color: var(--neon-cyan);
  text-shadow: var(--glow-text-cyan);
}

.now-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-top: 10px;
  justify-content: center;
}

.now-eq span {
  display: block;
  width: 4px;
  border-radius: 1px 1px 0 0;
  background: var(--neon-green);
  opacity: 0.6;
  animation: eqBar 1.2s ease-in-out infinite alternate;
}

.now-eq span:nth-child(1) { height: 40%; animation-delay: 0s; }
.now-eq span:nth-child(2) { height: 75%; animation-delay: 0.1s; }
.now-eq span:nth-child(3) { height: 55%; animation-delay: 0.2s; }
.now-eq span:nth-child(4) { height: 90%; animation-delay: 0.05s; }
.now-eq span:nth-child(5) { height: 65%; animation-delay: 0.15s; }
.now-eq span:nth-child(6) { height: 45%; animation-delay: 0.25s; }
.now-eq span:nth-child(7) { height: 80%; animation-delay: 0.08s; }
.now-eq span:nth-child(8) { height: 50%; animation-delay: 0.18s; }

@keyframes eqBar {
  from { height: 15%; }
  to   { height: var(--h, 80%); }
}

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
#site-footer {
  border-top: var(--border-panel);
  padding: 22px var(--gap) 28px;
  text-align: center;
  margin-top: var(--gap);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 14px;
  border-right: 1px solid var(--text-muted);
  transition: var(--transition-fast);
}

.footer-links a:last-child { border-right: none; }

.footer-links a:hover {
  color: var(--neon-green);
  text-shadow: var(--glow-text-green);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(58, 90, 58, 0.5);
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */
@media (max-width: 1050px) {
  :root { --sidebar-width: 190px; }
}

@media (max-width: 900px) {
  #layout-grid {
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-areas:
      "left main"
      "right right";
  }

  #sidebar-right {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #sidebar-right .widget {
    flex: 1 1 200px;
  }
}

@media (max-width: 650px) {
  :root { --sidebar-width: 100%; }

  #layout-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
  }

  #sidebar-left {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #sidebar-left .widget {
    flex: 1 1 160px;
  }

  #hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(4,9,6,0.98);
    border-bottom: var(--border-panel);
    padding: 10px 12px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a { display: block; width: 100%; }

  #main-nav { position: relative; }

  .intro-grid { flex-direction: column; align-items: center; text-align: center; }

  .intro-tags { justify-content: center; }
  .intro-actions { justify-content: center; }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ════════════════════════════════════════════════════
   REDUCED MOTION
   ════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════
   FOCUS VISIBLE (accessibility)
   ════════════════════════════════════════════════════ */
:focus-visible {
  outline: 1px solid var(--neon-green);
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 2px rgba(0,255,65,0.4);
  outline: none;
}
