/* TheHiddenFeesSynd.css
   Mobile-first, black background, responsive, neon names
*/

/* ===== Global ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #000;
  color: #f3f3f3;
  font-family: "Permanent Marker", "Bangers", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* prevent horizontal scroll */
  text-align: center;
  padding-bottom: 2rem;
}

/* ===== Header ===== */
header {
  padding: 1.25rem 1rem;
  background: linear-gradient(180deg, #170000 0%, #000 100%);
  color: #ffdd66;
  text-shadow: 0 0 10px rgba(255,80,80,0.25);
}

header h1 {
  font-family: "Bangers", "Permanent Marker", cursive;
  font-size: 2.25rem;
  color: #ff4040;
  margin-bottom: 0.25rem;
  line-height: 1;
  /* allow glow without clipping */
  display: inline-block;
  padding-right: 0.4em;
  text-shadow: 0 0 8px #ff2a2a, 0 0 18px #ff6a2a;
}

header .tagline {
  font-family: "Bangers", cursive;
  font-size: 1rem;
  color: #ffdca8;
  display: block;
  margin-top: 0.35rem;
}

/* ===== Nav / Hamburger ===== */
.navbar {
  background: #0f0f0f;
  padding: 0.6rem 0.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255,80,80,0.06);
}

.menu-toggle {
  display: flex; /* mobile-first show toggle */
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 22px;
  cursor: pointer;
  margin-left: 0.5rem;
  margin-right: 0.75rem;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle:focus { outline: 2px dashed #ff7a7a; outline-offset: 4px; }

.bar {
  height: 3px;
  width: 100%;
  background: #ffcc00;
  border-radius: 6px;
  transition: transform 250ms ease, opacity 200ms ease;
}

/* nav-list hidden on mobile until menu active */
.nav-list {
  list-style: none;
  display: none;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.5rem 0;
  background: #0f0f0f;
  position: absolute;
  top: 54px;
  left: 0;
  z-index: 999;
  border-top: 1px solid rgba(255,80,80,0.03);
}
.nav-list li { width: 100%; }
.nav-list li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #ffcc00;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.nav-list li a:hover,
.nav-list li a:focus { color: #fff; background: rgba(255,255,255,0.02); }

/* when mobile menu toggled */
.menu-toggle.active .bar:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.menu-toggle.active .bar:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }
.nav-list.active { display: flex; }

/* ===== Main / villain section ===== */
main { padding: 1rem; max-width: 1100px; margin: 0 auto; }

section#villains { padding-top: 0.75rem; }

section#villains h2 {
  font-size: 1.5rem;
  color: #ff4040;
  text-shadow: 0 0 8px rgba(255,30,30,0.25);
  margin-bottom: 0.75rem;
  font-family: "Permanent Marker", cursive;
}

/* character grid - mobile stacked */
ul.character-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

/* each character card */
ul.character-list li {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,80,80,0.04);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  justify-content: flex-start;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
ul.character-list li:focus-within,
ul.character-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(255,60,60,0.08);
}

/* profile image */
ul.character-list img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,60,60,0.9);
  flex: 0 0 88px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
ul.character-list img:hover,
ul.character-list li:hover img {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(255,80,40,0.18), 0 0 30px rgba(255,40,40,0.12);
}

/* name + sublinks */
.character-info {
  text-align: left;
  flex: 1 1 auto;
  overflow: hidden;
}
.character-info a {
  color: #ffdd66;
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-block;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(255,120,60,0.12);
}
.character-info a:hover,
.character-info a:focus { color: #fff; text-shadow: 0 0 14px rgba(255,160,60,0.22); }

/* small nested list style */
.character-info ul {
  list-style: none;
  margin-top: 0.4rem;
  padding-left: 0;
}
.character-info ul li a {
  color: #ff9a4d;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ===== Larger screens (tablet & desktop) ===== */
@media (min-width: 600px) {
  /* show nav inline and hide mobile menu */
  .menu-toggle { display: none; }
  .nav-list { display: flex; position: static; width: auto; background: transparent; margin: 0; gap: 1rem; top: auto; left: auto; }
  .nav-list li { display: inline-flex; }
  .nav-list li a { padding: 0; }

  ul.character-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  ul.character-list li {
    max-width: 220px;
    flex: 0 1 220px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  ul.character-list img {
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    margin-bottom: 0.6rem;
  }

  .character-info { text-align: center; }
  .character-info a { font-size: 1.08rem; }
}

/* larger desktop */
@media (min-width: 1000px) {
  ul.character-list { gap: 1.5rem; }
  ul.character-list li { max-width: 200px; flex: 0 1 200px; }
  header h1 { font-size: 2.75rem; }
}

/* ===== Accessibility & small tweaks ===== */
a:focus { outline: 2px dashed #ff7a7a; outline-offset: 4px; }
button, .menu-toggle { -webkit-tap-highlight-color: transparent; }

/* ensure long names won't overflow */
.character-info a,
.character-info ul li a {
  word-break: break-word;
  overflow-wrap: anywhere;
}
/* ===== Buttons ===== */
.button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 3rem auto 2rem;
  width: 100%;
  text-align: center;
}

.btn {
  display: block;
  width: 90%;
  max-width: 300px;
  text-align: center;
  padding: 0.85rem 1.5rem;
  font-family: "Bangers", cursive;
  font-size: 1.2rem;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* Evil red/orange button */
.btn-evil {
  background: linear-gradient(90deg, #ff3030, #ff6600);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 64, 0, 0.6);
}

.btn-evil:hover {
  background: linear-gradient(90deg, #ff6600, #ff3030);
  box-shadow: 0 0 25px rgba(255, 80, 0, 0.8);
  transform: scale(1.05);
}

/* Heroic green button */
.btn-hero {
  background: linear-gradient(90deg, #00b33c, #66ff66);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 255, 80, 0.6);
}

.btn-hero:hover {
  background: linear-gradient(90deg, #66ff66, #00b33c);
  box-shadow: 0 0 25px rgba(0, 255, 80, 0.8);
  transform: scale(1.05);
}