/* Global page styling */
:root {
  color-scheme: dark;
  background-color: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #0f172a;
  color: #f8fafc;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #7dd3fc;
  transition: color 200ms ease;
}

a:hover {
  color: #e1a6b0;
}

.page-title {
  font-size: clamp(2rem, 2.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-align: center;
}

.page-title.teal {
  color: #ce7a8a;
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 3.5vw, 4.5rem);
}

.page-title.blue {
  color: #ce7a8a;
}

.page-title.streaming {
  color: #176dad;
}

.nav {
  background-color: transparent;
  padding: 1rem;
  display: flex;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
}

.nav-button {
  display: inline-block;
  border-radius: 0.75rem;
  background-color: #b94c67;
  color: #ffffff;
  font-weight: 600;
  transition: background-color 200ms ease;
}

.nav-button:hover {
  background-color: #1767be;
}

/* Forces the menu into a horizontal row on desktop */
.nav-menu {
  display: flex !important; /* The !important overrides any lingering grid styles */
  flex-direction: row;
  gap: 1rem;
  align-items: center; 
}

/* Cleans up the buttons so text stays perfectly centered */
.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem; /* Gives the text room to breathe */
  border-radius: 0.5rem;
  background-color: #b94c67;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap; /* Strictly prevents the text from wrapping or squishing */
  transition: background-color 200ms ease;
}

.nav-button:hover {
  background-color: #d7909d;
}

/* Apply the transparent navbar styling only when header uses the navbar class */
header.navbar {
  background-color: transparent;
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

details {
  background-color: rgba(44, 154, 236, 0.18);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}

.details-block summary {
  cursor: pointer;
  list-style: none;
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.details-block p {
  padding-left: 1.75rem;
  padding-top: 0.5rem;
}

/* Staff page styles */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

.staff-card {
  background-color: #1f2937;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
  transition: transform 200ms ease, border-color 200ms ease;
  border: 2px solid transparent;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.staff-card:hover {
  transform: translateY(-2px);
  border-color: #c36378;
}

.staff-avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 3px solid #374151;
  margin-bottom: 1rem;
}

.staff-name {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.pronouns {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #9ca3af;
}

.role {
  margin: 0;
  font-size: 0.875rem;
  color: #d1d5db;
}

.description {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 2.2vw, 2.5rem);
  font-weight: 700;
  text-align: center;
}

.section-heading img {
  width: 2rem;
  height: 2rem;
}

.section-management .section-heading {
  color: #c36378;
}

.section-management .staff-card h3 {
  color: #c36378;
}

.section-management .staff-card h3.name-asuna {
  color: #ffeead;
}

.section-administration .section-heading {
  color: #ce7a8a;
}

.section-administration .staff-card h3 {
  color: #ce7a8a;
}

.section-head-moderation .section-heading,
.section-head-moderation .staff-card h3 {
  color: #d7909d;
}

.section-moderation .section-heading,
.section-moderation .staff-card h3 {
  color: #e1a6b0;
}

.section-head-stream .section-heading,
.section-head-stream .staff-card h3 {
  color: #6e6bac;
}

.section-streaming-mods .section-heading,
.section-streaming-mods .staff-card h3 {
  color: #9895ee;
}

.section-streaming-title {
  color: #176dad;
}

@media (max-width: 640px) {
  .card-container {
    gap: 1rem;
  }

  .staff-card {
    max-width: 100%;
  }

  .section-heading {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* --- Base & Desktop Styles (Moved outside the media query!) --- */

.nav-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent; 
  color: white;
  font-family: sans-serif;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ce7a8a;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-btn {
  background-color: var(--pink-dark);
  color: #fff;
  text-decoration: none;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background-color 160ms ease, transform 160ms ease;
  white-space: nowrap;
  }

.nav-btn:hover { background-color: var(--pink-muted); transform: translateY(-1px); }
.nav-btn.active { background-color: var(--pink-primary); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 767px) {
  .nav-menu {
    display: none !important; 
  }

  /* When JS adds the 'active' class, force it to show */
  .nav-menu.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #2c2430;
    padding: 20px;
    z-index: 1000;
  }
}

.cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background-color: #ce7a8a;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(12, 74, 122, 0.15);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cta-button:hover {
  background-color: #e9bcc3;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(12, 74, 122, 0.2);
  color: #ffffff;
}

@media (max-width: 420px) {
  .cta-button {
    width: 100%;
    text-align: center;
  }
}

.about-background {
  background-image:
    linear-gradient(rgba(2,6,23,0.55), rgba(2,6,23,0.55)),
    radial-gradient(circle at 10% 20%, rgba(44,154,236,0.06), transparent 20%),
    var(--about-bg, linear-gradient(180deg, #071129 0%, #0b1220 100%));
  background-size: cover, cover, cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

.about-background .details-block {
  background-color: rgba(44,154,236,0.22);
}

.footer {
  background-color: transparent;
  color: #9ca3af;
  text-align: center;
  padding: 1rem;
  font-size: 0.875rem;
}

/* Style the burger container */
.burger {
  position: relative;
  width: 40px;
  height: 30px;
  background: transparent;
  cursor: pointer;
  display: none; /* hidden on desktop */
  z-index: 1001;
}

.burger input { display: none; }

.burger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: white;
  border-radius: 9px;
  transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) { top: 0; }
.burger span:nth-of-type(2) { top: 13px; }
.burger span:nth-of-type(3) { top: 26px; }

.burger input:checked ~ span:nth-of-type(1) { top: 13px; transform: rotate(45deg); }
.burger input:checked ~ span:nth-of-type(2) { opacity: 0; }
.burger input:checked ~ span:nth-of-type(3) { top: 13px; transform: rotate(-45deg); }

/* Desktop: horizontal row, burger hidden */
@media (min-width: 769px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    position: static;
    background: transparent;
    padding: 0;
  }
}

/* Mobile: burger visible, menu hidden until checked */
@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 20px;
    gap: 10px;
    z-index: 1000;
  }

  #burger:checked + .nav-menu,
  .nav-menu.active {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .about-background {
    background-image:
      linear-gradient(rgba(2,6,23,0.55), rgba(2,6,23,0.55)),
      url('wallpaper-phone.png');
    background-attachment: scroll;
    background-size: cover;
    background-position: center top;
  }
}

/* Buttons New */

button {
 padding: 15px 25px;
 border: unset;
 border-radius: 15px;
 color: #212121;
 z-index: 1;
 background: #e8e8e8;
 position: relative;
 font-weight: 1000;
 font-size: 17px;
 -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 transition: all 250ms;
 overflow: hidden;
}

button::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 height: 100%;
 width: 0;
 border-radius: 15px;
 background-color: #212121;
 z-index: -1;
 -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 transition: all 250ms
}

button:hover {
 color: #e8e8e8;
}

button:hover::before {
 width: 100%;
}

button.cta-button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}