/* ----------------------------------------------
   GLITCH RESET FRAMEWORK
   For NeoCities personal site
   Inspired by: Wired Sounds for Wired People, terminal00
   Aesthetic: DedSec / Serial Experiments Lain / Cybercore
---------------------------------------------- */

/* ---------- RESET & BASE ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000000;
  color: #00ff99;
  font-family: 'Fira Mono', 'Courier New', monospace;
  line-height: 1.6;
  padding: 20px;
  background-image: url('https://media.giphy.com/media/3o7abB06u9bNzA8LC8/giphy.gif');
  background-size: cover;
  background-attachment: fixed;
  background-blend-mode: overlay;
  background-position: center;
}

/* ---------- CRT SCANLINES ---------- */
.scanlines {
  position: relative;
}

.scanlines::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 0, 0.03) 0px,
    rgba(0, 255, 0, 0.03) 2px,
    transparent 2px,
    transparent 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* ---------- GLITCH BORDER (containers) ---------- */
.glitch-border {
  border: 2px solid #00ff99;
  box-shadow: 0 0 8px #00ff99;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 20px;
  margin-bottom: 30px;
  transition: all 0.2s ease;
}

.glitch-border:hover {
  box-shadow: 0 0 15px #00ff99;
  border-color: #ed1816; /* was #ff00cc */
}

/* ---------- GLITCH TEXT ANIMATION ---------- */
.glitch-text {
  font-family: 'Rubik Glitch Pop', 'Courier New', monospace;
  font-size: 2.5rem;
  font-weight: normal;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.1s ease;
}

.glitch-text:hover {
  animation: glitch-skew 0.2s infinite;
}

@keyframes glitch-skew {
  0% { transform: skew(0deg); text-shadow: -3px 0 red, 3px 0 cyan; }
  20% { transform: skew(2deg); text-shadow: 2px 0 red, -2px 0 #ed1816; } /* was blue */
  40% { transform: skew(-2deg); text-shadow: -2px 0 lime, 2px 0 #ed1816; } /* was magenta */
  60% { transform: skew(1deg); }
  100% { transform: skew(0deg); text-shadow: 0 0 5px #00ff99; }
}

/* ---------- GIF CONTAINER (neon glow) ---------- */
.gif-container {
  display: inline-block;
  margin: 10px 10px 10px 0;
  filter: drop-shadow(0 0 6px #00ff99);
  transition: filter 0.2s;
}

.gif-container:hover {
  filter: drop-shadow(0 0 12px #ed1816); /* was #ff00cc */
}

/* ---------- BLOG POST STYLES ---------- */
.blog-post {
  margin-bottom: 40px;
}

.post-title {
  font-family: 'Rubik Glitch Pop', monospace;
  font-size: 1.8rem;
  color: #ed1816; /* was #ff00cc */
  text-shadow: 2px 2px 0 #00ff99;
  margin-bottom: 15px;
  word-break: break-word;
}

.post-date {
  font-size: 0.8rem;
  color: #88ffaa;
  border-left: 3px solid #ed1816; /* was #ff00cc */
  padding-left: 10px;
  margin-bottom: 20px;
}

.post-content {
  font-size: 0.95rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
}

/* ---------- CHAOS SIDEBAR (floating elements) ---------- */
.chaos-sidebar {
  float: right;
  width: 240px;
  margin: 0 0 20px 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
  border: 1px dashed #ed1816; /* was #ff00cc */
}

/* ---------- CLEARFIX FOR LAYOUT ---------- */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* ---------- GLITCHY NAVIGATION ---------- */
.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}

.nav-button {
  font-family: 'Rubik Glitch Pop', monospace;
  background: black;
  border: 2px solid #00ff99;
  color: #00ff99;
  padding: 8px 16px;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s;
  box-shadow: 0 0 5px #00ff99;
  display: inline-block;
}

.nav-button:hover {
  background: #ed1816; /* was #ff00cc */
  border-color: #ed1816;
  color: black;
  box-shadow: 0 0 15px #ed1816;
  transform: scale(1.05);
}

/* ---------- FOOTER ---------- */
.glitch-footer {
  text-align: center;
  margin-top: 50px;
  padding: 15px;
  font-size: 0.7rem;
  border-top: 1px solid #00ff99;
}

/* ---------- GLITCH FLICKER (random) ---------- */
@keyframes flicker {
  0% { opacity: 1; }
  5% { opacity: 0.8; }
  10% { opacity: 1; }
  15% { opacity: 0.9; }
  20% { opacity: 1; }
  100% { opacity: 1; }
}

.flicker {
  animation: flicker 3s infinite;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  body {
    padding: 10px;
  }

  .glitch-text {
    font-size: 1.8rem;
  }

  .chaos-sidebar {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
  }

  .post-title {
    font-size: 1.3rem;
  }
}

/* ---------- UTILITY CLASSES ---------- */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mb-20 {
  margin-bottom: 20px;
}

.highlight {
  color: #ed1816; /* was #ff00cc */
}

.blink {
  animation: blink-animation 1s step-end infinite;
}

@keyframes blink-animation {
  50% {
    opacity: 0;
  }
}