/* style.css – Dark HUD-Style Theme for State of Decay 2 Wiki */

/* Color Variables (Dark theme with neon accents) */
:root {
  --bg-color: #121212;           /* Dark gray background (Material Design dark) */
  --text-color: #e0e0e0;         /* Light gray text */
  --accent-red: #e03a3e;         /* Neon red accent */
  --accent-green: #3ae04f;       /* Neon green accent */
  --accent-blue: #3a88e0;        /* Neon blue accent */
  --header-bg: rgba(0, 0, 0, 0.8);
  --footer-bg: rgba(0, 0, 0, 0.8);
  --font-sans: 'Roboto', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --transition-speed: 0.3s;
}

/* Global reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
  transition: background-color var(--transition-speed) ease,
              color var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease,
              transform var(--transition-speed) ease;
}
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  margin: 0;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  overflow-y: scroll;
  user-select: text;
}

/* Scrollbar for WebKit browsers */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
  background-color: var(--accent-red);
  border-radius: 6px;
  border: 2px solid #121212;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #ff5252;
}

/* Focus outlines for accessibility */
:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

/* Header and Footer */
header, footer {
  background-color: var(--header-bg);
  color: var(--text-color);
  padding: 1rem 2rem;
  border-top: 1px solid var(--accent-red);
  border-bottom: 1px solid var(--accent-red);
  text-align: center;
  user-select: none;
}
header {
  border-bottom: none;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 15px var(--accent-red);
}
footer {
  border-top: none;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  opacity: 0.7;
  user-select: text;
}

/* Headings (Game-inspired) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 1.2rem 0 0.6rem;
  color: var(--text-color);
  text-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
  letter-spacing: 0.05em;
  user-select: text;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Paragraphs */
p {
  margin: 1rem 0;
  font-size: 1rem;
  user-select: text;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Links */
a {
  color: var(--accent-green);
  text-decoration: none;
  cursor: pointer;
  user-select: text;
  transition: color var(--transition-speed) ease, text-shadow var(--transition-speed) ease;
}
a:hover,
a:focus {
  color: var(--accent-blue);
  text-decoration: underline;
  text-shadow:
    0 0 6px var(--accent-blue),
    0 0 12px var(--accent-blue);
  outline: none;
}

/* Code blocks */
code, pre {
  font-family: 'Courier New', Courier, monospace;
  background-color: #222;
  color: #e03a3e;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.95rem;
  user-select: text;
}
pre {
  padding: 1rem;
  overflow-x: auto;
  max-width: 100%;
  margin: 1rem auto;
}

/* Blockquotes */
blockquote {
  border-left: 4px solid var(--accent-red);
  padding-left: 1rem;
  margin: 1rem auto;
  font-style: italic;
  max-width: 720px;
  color: #bbb;
  user-select: text;
  background-color: rgba(224, 58, 62, 0.1);
  box-shadow: inset 0 0 8px rgba(224,58,62,0.15);
}

/* Lists */
ul, ol {
  max-width: 720px;
  margin: 1rem auto 1rem 2rem;
  padding-left: 1rem;
  user-select: text;
}
li {
  margin-bottom: 0.4rem;
}

/* Main container */
main {
  padding: 1rem 2rem;
  max-width: 960px;
  margin: 0 auto 2rem auto;
  user-select: text;
  animation: fadeIn 0.4s ease forwards;
}

/* Fade-in animation for content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation / Category Buttons Container */
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 2rem;
  padding: 0;
  list-style: none;
}

/* Category Button Styles */
.category-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--accent-red);
  border-radius: 6px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
  text-shadow: none;
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease,
    background-color 0.25s ease;
}
.category-button:hover,
.category-button:focus {
  color: var(--accent-red);
  background-color: rgba(224, 58, 62, 0.15);
  box-shadow:
    0 0 12px var(--accent-red),
    0 0 24px rgba(224, 58, 62, 0.5);
  transform: scale(1.1);
  outline: none;
}
.category-button:active {
  transform: scale(0.95);
}

/* Tables */
table {
  border-collapse: collapse;
  margin: 1rem auto;
  max-width: 100%;
  width: auto;
  user-select: text;
}
thead {
  background-color: rgba(224, 58, 62, 0.3);
}
th, td {
  padding: 0.75rem 1rem;
  border: 1px solid #333;
  text-align: left;
}
tbody tr:hover {
  background-color: rgba(224, 58, 62, 0.1);
}

/* Images and Media */
img, embed, object, video {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
  display: block;
  margin: 1rem auto;
}

/* Utility classes */
.hidden {
  display: none !important;
}
.align-center {
  text-align: center !important;
}
.text-glow-red {
  color: var(--accent-red);
  text-shadow:
    0 0 8px var(--accent-red),
    0 0 16px var(--accent-red);
}

/* Responsive Design (Mobile-first) */
@media (max-width: 600px) {
  header, footer {
    text-align: center;
    padding: 1rem;
  }
  main {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  .category-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }
  .category-button {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  p, li {
    font-size: 0.95rem;
  }
}
