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

:root {
  --bg: #0a0015;
  --neon-turquoise: #00ffcc;
  --neon-pink: #ff00aa;
  --text: #e0e0ff;
  --grid: rgba(255, 255, 255, 0.05);
  --glitch-red: #ff0055;
  --glitch-blue: #00f;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'VT323', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

.crt-overlay {
  position: relative;
  padding: 2rem;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.1),
    rgba(0,0,0,0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
  overflow: hidden;
}

.crt-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
  pointer-events: none;
  animation: scanline 6s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.header-grid {
  text-align: center;
  border-bottom: 2px solid var(--neon-turquoise);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  background: repeating-linear-gradient(45deg, var(--grid), var(--grid) 10px, transparent 10px, transparent 20px);
}

.neon-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 4rem;
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-turquoise);
  margin: 0;
  animation: flicker 2s infinite alternate;
}

.tagline {
  font-size: 1.5rem;
  color: var(--neon-turquoise);
  text-shadow: 0 0 5px var(--neon-turquoise);
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--neon-pink);
  text-shadow: 0 0 10px var(--neon-pink);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background: rgba(20, 0, 50, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--neon-turquoise);
  padding: 1.5rem;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: scale(1.05);
}

.featured {
  grid-column: 1 / -1;
  border-color: var(--neon-pink);
  box-shadow: 0 0 20px var(--neon-pink);
}

.neon-headline {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--neon-turquoise);
  text-shadow: 0 0 8px var(--neon-turquoise);
  margin-top: 0;
}

.teaser {
  font-size: 1.2rem;
  line-height: 1.5;
}

.read-more {
  color: var(--neon-pink);
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-shadow: 0 0 5px var(--neon-pink);
}

.glitch {
  text-shadow: 0.05em 0 0 var(--glitch-red), -0.05em 0 0 var(--glitch-blue), 0.05em 0.05em 0 #0f0;
  animation: glitch 3s infinite;
}

.glitch.active {
  animation: glitch 0.1s infinite;
}

@keyframes glitch {
  0% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(3px, -3px); }
  60% { transform: translate(-3px, 3px); }
  80% { transform: translate(3px, -3px); }
  100% { transform: translate(0); }
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 10px var(--neon-pink); }
  20%, 24%, 55% { opacity: 0.5; text-shadow: none; }
}

footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--neon-turquoise);
  font-size: 0.9rem;
  color: var(--text);
}
