/* assets/style.css */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;700&family=Inter:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0a0a0c;
  --panel-bg: rgba(20, 20, 25, 0.85);
  --text-main: #e0e0e0;
  --text-muted: #888899;
  --accent-red: #d92e2e;
  --accent-red-glow: rgba(217, 46, 46, 0.6);
  --accent-green: #00ff00;
  --accent-green-dim: rgba(0, 255, 0, 0.2);
  --border-color: #2a2a35;
  --font-main: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  --nav-height: 70px;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* CRT Overlay Effect */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 9999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: 1px;
}

.logo-container img {
  height: 40px;
  width: 40px;
  border-radius: 8px;
  border: 1px solid var(--accent-red);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s, text-shadow 0.3s;
  padding: 5px 10px;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-red);
  text-shadow: 0 0 10px var(--accent-red-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--accent-red);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Main Layout */
main {
  margin-top: calc(var(--nav-height) + 40px);
  padding: 0 5%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - var(--nav-height) - 100px);
}

/* Typography Headings */
h1, h2, h3 {
  font-family: var(--font-main);
  font-weight: 800;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.8rem;
  color: #fff;
  text-shadow: 2px 2px 0px rgba(217,46,46,0.3);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent-red);
  padding-bottom: 10px;
}

h2 {
  font-size: 2rem;
  color: var(--accent-red);
  margin-top: 40px;
}

h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-top: 30px;
}

p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  text-decoration: underline;
  color: #ff4d4d;
}

/* Cards & Sections */
.card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(217, 46, 46, 0.15);
  border-color: var(--accent-red);
}

/* Table styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 1rem;
}

.data-table th, .data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(217, 46, 46, 0.1);
  color: #fff;
  font-weight: 600;
}

.data-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

/* Utility Glitch & Code */
.glitch-text {
  font-family: var(--font-code);
  color: var(--accent-green);
  background: var(--accent-green-dim);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  position: relative;
  display: inline-block;
}

.glitch-text.hover-glitch:hover {
  animation: rgbShift 0.3s infinite alternate;
}

@keyframes rgbShift {
  0% { text-shadow: 2px 0 red, -2px 0 blue; }
  25% { text-shadow: -2px 0 red, 2px 0 blue; }
  50% { text-shadow: 2px 0 red, -2px 0 blue; }
  75% { text-shadow: -2px 0 red, 2px 0 blue; }
  100% { text-shadow: 2px 0 red, -2px 0 blue; }
}

/* Alert Boxes for drama/safety info */
.alert-box {
  border-left: 4px solid var(--accent-red);
  background: rgba(217, 46, 46, 0.05);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.alert-box.green {
  border-left-color: var(--accent-green);
  background: rgba(0, 255, 0, 0.05);
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  margin-top: 50px;
  border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Code layout */
.code-block {
  text-align: center;
  font-family: var(--font-code);
  background: var(--bg-color);
  color: var(--accent-green);
  padding: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  letter-spacing: 2px;
  margin: 10px 0 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  
  .nav-links {
    position: fixed;
    right: -100%;
    top: var(--nav-height);
    flex-direction: column;
    background: var(--panel-bg);
    width: 60%;
    height: calc(100vh - var(--nav-height));
    padding-top: 20px;
    transition: right 0.3s ease;
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--accent-red);
  }

  .nav-links.nav-active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Archival & Journalistic Features */
.quote-block {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--text-muted);
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  color: #ccc;
  border-radius: 0 6px 6px 0;
}
.quote-block cite {
  display: block;
  margin-top: 10px;
  font-size: 0.85em;
  color: var(--accent-red);
  font-style: normal;
  font-weight: 600;
}

.references-section {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 2px dashed var(--border-color);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.references-section h3 {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.references-list {
  list-style-type: decimal;
  padding-left: 20px;
}
.references-list li {
  margin-bottom: 8px;
  word-wrap: break-word;
}
.references-list a {
  color: var(--text-muted);
  text-decoration: underline;
}
.references-list a:hover {
  color: var(--accent-red);
}
