/* ================================
   SITEWIDE BASICS START
================================ */
body {
  background-color: #1c1c1c;
  background-image: url('/src/images/bgs/dark_wall.png');
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  background-attachment: scroll;
  color: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  min-width: 1280px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('/src/images/bgs/wiggle.svg') repeat;
  opacity: 0.08;
  z-index: -1; /* force it behind everything */
}

a {
  color: #f2e298;
  font-weight: 700;
  font-family: "Lexend", sans-serif;
  text-decoration: none;
  text-shadow:
    2px 2px 0 #000,
    3px 3px 5px rgba(0, 0, 0, 0.75);
}

a:hover,
a:focus {
  color: #fff2b8;
}

.container {
  max-width: 960px;
}

.section-title {
  text-align: center;
  margin-top: 60px;
}

.section-title h1 {
  font-family: "Rubik Dirt", cursive;
  font-size: 3rem;
  font-weight: 400;
  text-transform: uppercase;
  text-shadow:
    3px 3px 0 #000,
    4px 4px 6px rgba(0, 0, 0, 0.8);
}

.section-title p {
  font-family: 'DM Sans', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: #ccc;
  text-shadow:
    2px 2px 0 #000,
    3px 3px 5px rgba(0, 0, 0, 0.75);
}

.divider {
  border: none;
  height: 12px;
  background-color: #777;
  background-image: url('/src/images/bgs/asfalt-light.png');
  background-repeat: repeat-x;
  background-position: center;
  background-size: 150px auto;
  width: 98%;
  margin: 2.5rem auto;
  box-shadow:
    inset 0 2px 4px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.7);
  filter: none;
}

/* Divider variant with cracked shape 1 */
.divider-crack-1 {
  clip-path: polygon(
    4% 0%, 94% 0%,
    100% 30%, 97% 100%,
    6% 100%, 0% 40%
  );
}

/* Divider variant with cracked shape 2 */
.divider-crack-2 {
  clip-path: polygon(
    3% 0%, 95% 0%,
    100% 60%, 92% 100%,
    5% 100%, 0% 50%
  );
}

.breadcrumb {
  background: transparent;
  padding-left: 0;
  justify-content: flex-start;
  text-align: left;
}


.breadcrumb-item {
  color: #f5f5f5;
}

.breadcrumb-item.active {
  color: #ffffff;
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #bbb;
}

.spotlight-buddies {
margin-top: 1rem;
margin-bottom: 1.5rem;
}

.spotlight-buddies .btn {
font-family: 'DM Sans', sans-serif;
font-size: 1.4rem;
padding: 1rem 2rem;
border: 3px solid #555;
text-shadow:
      2px 2px 0 #000,
      3px 3px 5px rgba(0, 0, 0, 0.75);
}

.spotlight-buddies p {
margin-top: 0.5rem;
color: #bbb;
font-style: italic;
text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.footer {
  text-align: center;
  margin-top: auto;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: #aaa;
}

.footer a {
  color: #ccc;
  margin: 0 0.7rem;
  text-decoration: none;
  text-shadow:
    2px 2px 0 #000,
    3px 3px 5px rgba(0, 0, 0, 0.75);
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
}

.footer a:hover {
  color: #fff;
}

.footer .socials a {
  font-size: 1.5rem;
  margin: 0 0.5rem;
}

.footer .socials img {
  fill: #5865F2;
  width: 24px;
  height: 24px;
  margin: 0 0.5rem;
  filter: brightness(1.1) drop-shadow(1px 1px 1px #000);
  transition: filter 0.2s ease;
}

.footer .socials img:hover {
  filter: brightness(1.4) drop-shadow(2px 2px 2px #000);
}

.footer .social-icon svg {
  width: 24px;
  height: 24px;
  color: #5865F2; /* Discord blurple */
  filter: drop-shadow(1px 1px 2px #000);
  transition: color 0.2s ease, filter 0.2s ease;
}

.footer .social-icon:hover svg {
  color: #8ea1ff;
}


#basement-wrap {
  width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

/* ================================
   SITEWIDE BASICS END
================================ */

/* ================================
   USER STATUS / HEADER BAR START
================================ */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 98%;
  margin: 0 auto 1rem auto;
  padding: 0.5rem 0.5rem 0.8rem 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  font-family: "Lexend", sans-serif;
  color: #f2e298;
  text-shadow: 2px 2px 0 #000, 3px 3px 5px rgba(0, 0, 0, 0.75);
}

.breadcrumb-container {
  flex: 1;
}

.user-status {
  flex-shrink: 0;
}

.user-info {
  font-size: 0.95rem;
  color: #f2e298;
  text-align: right;
  letter-spacing: 0.5px;
}

.user-info .user-greeting {
  margin-right: 0.6rem;
  color: #e6d47d;
  font-weight: 600;
}

.user-link {
  color: #f2e298;
  margin-left: 0.4rem;
  text-decoration: none;
  font-weight: 700;
  font-family: "Lexend", sans-serif;
  text-shadow: 2px 2px 0 #000, 3px 3px 5px rgba(0, 0, 0, 0.75);
  transition: color 0.2s ease;
}

.user-link:hover {
  color: #fff2b8;
}

/* optional subtle animation/glow for logged-in state */
.user-info:has(.user-greeting) {
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
  }
  20%, 24%, 55% {
    opacity: 0.85;
  }
}
/* ================================
   USER STATUS / HEADER BAR END
================================ */

/* ================================
   REGISTER/LOGIN/RESET PAGE START
================================ */
.register-disclaimer {
  width: 50%;
  margin: 1.5rem auto 0 auto;
  text-align: center;
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.5;
  font-style: italic;
  text-shadow: 2px 2px 0 #000, 3px 3px 5px rgba(0, 0, 0, 0.75);
  background: rgba(30, 30, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05),
              0 2px 8px rgba(0, 0, 0, 0.6);
}

.password-wrapper {
  position: relative;
  display: block;
  width: 300px; /* matches text/email input width */
  max-width: 90%;
  margin: 0 auto 0.7rem auto;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 0.6rem; /* right padding for icon */
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: rgba(40, 40, 40, 0.9);
  color: #f5f5f5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6),
              0 2px 6px rgba(0, 0, 0, 0.5);
  text-shadow: 1px 1px 2px #000;
  box-sizing: border-box;
}

.toggle-password {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  color: #aaa;
  transition: color 0.2s ease;
}

.toggle-password svg {
  pointer-events: none;
  width: 20px;
  height: 20px;
  stroke: #aaa;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

.toggle-password:hover svg {
  stroke: #fff2b8;
  transform: scale(1.1);
}


form input[type="text"],
form input[type="email"],
form input[type="password"] {
  width: 300px; /* consistent width for all */
  max-width: 90%;
  padding: 0.5rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: rgba(40, 40, 40, 0.9);
  color: #f5f5f5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6),
              0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.7rem;
  text-shadow: 1px 1px 2px #000;
}


form button[type="submit"] {
  margin-top: 0.5rem;
  background: #141414;
  color: #f2e298;
  font-weight: 700;
  border: none;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  text-shadow: 1px 1px 1px #000;
  transition: background 0.2s ease;
}

form button[type="submit"]:hover {
  background: #4a4a4a;
}

/* ================================
   REGISTER/LOGIN/RESET PAGE END
================================ */

/* ================================
   ACCOUNT PAGE START
================================ */
.reset-box {
  background: rgba(255, 215, 0, 0.08);
  border: 2px solid #f2e298;
  padding: 1rem;
  width: 60%;
  margin: 1.5rem auto;
  font-style: italic;
  text-shadow: 1px 1px 2px #000;
}
.reset-box a {
  color: #fff2b8;
  text-decoration: underline;
}
.reset-box small {
  color: #aaa;
}

.reset-box em {
  color: #fff2b8;
  font-style: normal;
  font-weight: 600;
}

.reset-box strong {
  color: #f2e298;
}

/* ================================
   ACCOUNT PAGE END
================================ */

/* ================================
  USER ROLE CONTROLS START
================================ */
.roles-table-container {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.roles-table-container table {
  border-collapse: collapse;
  background: rgba(40, 40, 40, 0.9);
  color: #f5f5f5;
  border: 1px solid #555;
  box-shadow: 0 0 10px rgba(0,0,0,0.7);
  text-align: center;
}

.roles-table-container th,
.roles-table-container td {
  padding: 0.5rem 1rem;
  border: 1px solid #444;
}

.roles-table-container th {
  background: rgba(242, 226, 152, 0.15);
  color: #f2e298;
  text-shadow: 1px 1px 2px #000;
}

.roles-table-container input[type="text"] {
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid #555;
  color: #fff;
  border-radius: 4px;
  padding: 0.3rem 0.4rem;
}

.roles-table-container button {
  background: #f2e298;
  color: #111;
  font-weight: bold;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.roles-table-container button:hover {
  background: #fff2b8;
}

.save-message {
  text-align: center;
  margin: 1rem auto;
  padding: 0.8rem 1.2rem;
  width: fit-content;
  border-radius: 6px;
  background: rgba(60, 60, 60, 0.8);
  color: #f2e298;
  border: 1px solid #f2e298;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  text-shadow: 1px 1px 2px #000;
}

.roles-search-form {
  text-align: center;
  margin: 1rem auto 2rem auto;
}

.roles-search-form input[type="text"] {
  width: 300px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #555;
  border-radius: 4px;
  background: rgba(40, 40, 40, 0.9);
  color: #f5f5f5;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}

.roles-search-form button {
  margin-left: 0.5rem;
  background: #f2e298;
  color: #111;
  font-weight: 700;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.roles-search-form button:hover {
  background: #fff2b8;
}

.roles-search-form .clear-search {
  margin-left: 0.8rem;
  color: #f2e298;
  font-weight: bold;
  text-decoration: underline;
  text-shadow: 1px 1px 2px #000;
}

/* ================================
  USER ROLE CONTROLS END
================================ */
