/* ─────────── RESET & BASE ─────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Major Mono Display', monospace;
  background: #7fff00 url('/green_checkbox.png') repeat;
  background-size: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flicker 3s infinite;
  color: white;
}

/* ─────────── GLOBAL FX ─────────── */
@keyframes flicker {
  0%, 100% { opacity: 0.99; }
  5% { opacity: 0.97; }
  10% { opacity: 0.98; }
  15% { opacity: 0.96; }
  20% { opacity: 1; }
  25% { opacity: 0.98; }
  30% { opacity: 1; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 100;
}

.crt-curved::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 60%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 50;
}

/* ─────────── LAYOUT WRAPPERS ─────────── */
.crt-curved {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  perspective: 1000px;
  overflow: hidden;
  position: relative;
}

.crt-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  overflow: hidden;
}

/* ─────────── HEADER & NAVIGATION ─────────── */
.banner img {
  width: 100%;
  display: block;
  border-bottom: 2px solid #22B14C;
  border-radius: 0 0 12px 12px;
}

.navbar {
  background: #145C32;
  border-bottom: 2px solid #22B14C;
  border-radius: 0 0 12px 12px;
  text-align: center;
}

.navbar ul {
  list-style: none;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
}

.navbar a:hover {
  color: #B5E61D;
  text-shadow: 0 0 5px #B5E61D;
}

/* ─────────── CONTENT AREA ─────────── */
.content {
  display: flex;
  flex: 1;
  padding: 2rem;
  gap: 2rem;
}

.sidebar {
  width: 200px;
  background: #145C32;
  border: 2px solid #22B14C;
  padding: 1rem;
  color: white;
  border-radius: 12px;
  box-shadow: inset 0 0 10px #22B14C;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
}

.sidebar a:hover {
  text-decoration: underline;
}

.main-body {
  flex: 1;
  background: #145C32;
  color: white;
  padding: 2rem;
  border: 2px solid #22B14C;
  border-radius: 12px;
  box-shadow: 0 0 15px #22B14C;
}

/* ─────────── FOOTER ─────────── */
.footer {
  background: #145C32;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  border-top: 2px solid #22B14C;
  border-radius: 12px 12px 0 0;
}

/* ─────────── SPLASH SCREEN ─────────── */
.splash-container {
  text-align: center;
  color: white;
  padding: 2rem;
  animation: fadeIn 2s ease-in;
  transform: scale(1.05) rotateX(1.5deg) rotateY(-1.5deg);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
  border: 3px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  border-radius: 12px;
}

.splash-title {
  position: relative;
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow:
    2px 0 #e40066,
    -2px 0 #345995,
    0 0 10px #22b14c;
}

.splash-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.enter-button {
  display: inline-block;
  background: #345995;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: bold;
  box-shadow: 0 0 10px #345995;
  transition: all 0.3s ease;
}

.enter-button:hover {
  background: #fb4d3d;
  color: #000;
  box-shadow: 0 0 15px #fb4d3d;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.crt-block {
  background-color: #22b14c;
  padding: 1rem 2rem;
  display: inline-block;
  border: 2px solid #000;
  border-radius: 12px;
  box-shadow:
    0 0 5px #E40066,
    0 0 15px #E40066,
    inset 0 0 4px #22b14c;
  font-family: 'Press Start 2P', monospace;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ─────────── BLOG ─────────── */
.blog-preview {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #22B14C;
}

.blog-preview h2 a {
  color: #E40066;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
}

.blog-preview h2 a:hover {
  color: #FB4D3D;
  text-shadow: 0 0 5px #FB4D3D;
}

.blog-date {
  font-size: 0.8rem;
  font-style: italic;
  color: #B5E61D;
  margin-bottom: 0.5rem;
}

.read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #22B14C;
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  color: white;
  text-shadow: 0 0 5px #22B14C;
}
