@font-face {
  font-family: Inter;
  src: url(../fonts/static/Inter-Regular.ttf);
}
@font-face {
  font-family: Inter-SemiBold;
  src: url(../fonts/static/Inter-SemiBold.ttf);
}

:root {
  /* Ploomsy brand — pulled from the network MOTD gradient + TAB colors */
  --ploomsy-purple: #9b59b6;
  --ploomsy-purple-light: #b47cc5;
  --ploomsy-purple-deep: #5500aa;
  --ploomsy-magenta: #c2185b;
  --ploomsy-orchid: #e763e7;
  --ploomsy-green: #55ffaa;
  --ploomsy-green-deep: #12b87e;

  --black-primary: #0d0a12;
  --black-secondary: #120d1a;
  --black-tertiary: #171122;
  --gray-primary: #ece8f2;
  --gray-secondary: #7d7390;
  --gray-tertiary: #a79db8;

  --primary-green: var(--ploomsy-green);
  --secondary-green: var(--ploomsy-green-deep);
  --red: var(--ploomsy-magenta);
  --dark-red: #7a0f38;
  --yellow: var(--ploomsy-purple);
  --green: var(--ploomsy-green-deep);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black-primary);
  background-image:
    radial-gradient(900px circle at 12% -8%, rgba(155, 89, 182, 0.22), transparent 60%),
    radial-gradient(760px circle at 92% 0%, rgba(85, 255, 170, 0.14), transparent 62%),
    radial-gradient(700px circle at 50% 118%, rgba(155, 89, 182, 0.16), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Navbar ---------- */
.navbar-darker {
  background-color: rgba(13, 10, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(155, 89, 182, 0.28);
  box-shadow: 0 6px 26px -12px rgba(85, 255, 170, 0.35);
}

.navbar-brand small {
  font-family: 'Inter-SemiBold', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--ploomsy-purple) 0%, var(--ploomsy-orchid) 45%, var(--ploomsy-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-brand::after {
  content: "BANS";
  margin-left: 0.6rem;
  font-size: 0.68rem;
  font-family: 'Inter-SemiBold', sans-serif;
  letter-spacing: 0.22em;
  color: var(--ploomsy-green);
  border: 1px solid rgba(85, 255, 170, 0.45);
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  vertical-align: middle;
}

.navbar-darker a {
  color: var(--gray-tertiary) !important;
  text-decoration: none !important;
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem !important;
  border-radius: 8px;
  transition: 0.18s ease;
}

.navbar-darker a:hover {
  cursor: pointer;
  color: var(--ploomsy-green) !important;
  background-color: rgba(85, 255, 170, 0.08);
}

.navbar-active a {
  color: #0d0a12 !important;
  background: linear-gradient(135deg, var(--ploomsy-purple-deep) 0%, var(--ploomsy-purple) 100%);
  font-family: 'Inter-SemiBold', sans-serif;
  box-shadow: 0 4px 16px -6px rgba(155, 89, 182, 0.9);
}

.navbar-active a:hover {
  color: #0d0a12 !important;
  background: linear-gradient(135deg, var(--ploomsy-purple-light) 0%, var(--ploomsy-orchid) 100%);
}

.navbar-toggle-btn-mobile {
  border: none;
  background-color: transparent;
  color: var(--ploomsy-purple-light);
  transition: 0.2s;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus,
.navbar-toggler {
  outline: none;
  box-shadow: none;
  border: none;
  color: var(--gray-primary) !important;
}

/* ---------- Heading ---------- */
.category-text {
  font-family: 'Inter-SemiBold', sans-serif;
  color: var(--gray-primary);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 0.55rem !important;
}

.category-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--ploomsy-purple), var(--ploomsy-green));
}

/* ---------- Punishment rows ---------- */
.punishment-row {
  background: linear-gradient(180deg, rgba(23, 17, 34, 0.96) 0%, rgba(18, 13, 26, 0.96) 100%);
  color: var(--gray-primary);
  border: 1px solid rgba(155, 89, 182, 0.16);
  border-radius: 12px;
  transition: 0.18s ease;
}

.punishment-row:hover {
  border-color: rgba(85, 255, 170, 0.42);
  box-shadow: 0 10px 30px -16px rgba(85, 255, 170, 0.55);
  transform: translateY(-1px);
}

.punishment-row img,
#punishments img {
  border-radius: 8px;
  border: 1px solid rgba(155, 89, 182, 0.35);
  background-color: rgba(85, 255, 170, 0.05);
}

#punishments .fs-5 {
  color: var(--ploomsy-green);
  font-family: 'Inter-SemiBold', sans-serif;
  font-size: 0.74rem !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.flex-nowrap {
  overflow-x: auto;
}

/* ---------- Status accents ---------- */
.permanent-line {
  border-left: 5px solid var(--ploomsy-magenta);
  height: 8vh;
  padding: 1vh;
  box-shadow: -2px 0 14px -3px rgba(194, 24, 91, 0.85);
}

.active-line {
  border-left: 5px solid var(--ploomsy-purple);
  height: 8vh;
  padding: 1vh;
  box-shadow: -2px 0 14px -3px rgba(155, 89, 182, 0.85);
}

.expired-line {
  border-left: 5px solid var(--ploomsy-green);
  height: 8vh;
  padding: 1vh;
  box-shadow: -2px 0 14px -3px rgba(85, 255, 170, 0.6);
}

.permanent,
.active,
.expired {
  font-family: 'Inter-SemiBold', sans-serif;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.permanent {
  background: linear-gradient(135deg, var(--ploomsy-magenta) 0%, #8e1246 100%);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(194, 24, 91, 0.9);
}

.active {
  background: linear-gradient(135deg, var(--ploomsy-purple) 0%, var(--ploomsy-purple-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 14px -6px rgba(155, 89, 182, 0.9);
}

.expired {
  background: linear-gradient(135deg, var(--ploomsy-green) 0%, var(--ploomsy-green-deep) 100%);
  color: #06301f;
  box-shadow: 0 4px 14px -6px rgba(85, 255, 170, 0.75);
}

/* ---------- Pagination ---------- */
.next-btn, .previous-btn {
  border: 1px solid rgba(155, 89, 182, 0.3);
  outline: none;
  background-color: var(--black-tertiary);
  color: var(--gray-tertiary);
  transition: 0.18s ease;
  font-size: 0.9rem;
}

.next-btn { border-radius: 0px 8px 8px 0px; }
.previous-btn { border-radius: 8px 0px 0px 8px; }

.next-btn:hover, .previous-btn:hover {
  color: #0d0a12;
  background: linear-gradient(135deg, var(--ploomsy-purple) 0%, var(--ploomsy-green) 100%);
  border-color: transparent;
}

.page-count {
  border: 1px solid rgba(155, 89, 182, 0.3);
  border-left: none;
  border-right: none;
  outline: none;
  background-color: var(--black-tertiary);
  color: var(--ploomsy-green);
  font-family: 'Inter-SemiBold', sans-serif;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] { -moz-appearance: textfield; }

/* ---------- Spinner ---------- */
#punishments-spinner {
  color: var(--ploomsy-purple);
}

/* ---------- Footer ---------- */
.footer {
  background-color: rgba(18, 13, 26, 0.9) !important;
  color: var(--gray-tertiary);
  border-top: 1px solid rgba(155, 89, 182, 0.22);
  margin-top: auto;
}

.footer-text { font-size: 0.88rem; }

.heart-icon { color: var(--ploomsy-magenta); }

.light-row { background-color: var(--black-tertiary); }

.dark-modal-header { background-color: var(--black-secondary); }

/* ---------- Mobile card layout (added 2026-08-28) ---------- */
@media (max-width: 767.98px) {
  #punishments .flex-nowrap {
    overflow-x: visible;
  }

  .pun-row {
    flex-wrap: wrap !important;
    position: relative;
    text-align: left;
    row-gap: 0.65rem;
    margin-bottom: 0.85rem;
    padding: 1rem 1rem 1rem 1.35rem !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
  }

  /* left accent becomes a full-height bar, right accent is dropped */
  .pun-row > .col-auto:first-child {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    height: auto !important;
    padding: 0 !important;
    border-radius: 14px 0 0 14px;
  }
  .pun-row > .col-auto:last-child {
    display: none !important;
  }

  .pun-face-staff {
    display: none !important;
  }

  .pun-face { order: 1; }
  .pun-offender {
    order: 2;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 45% !important;
    max-width: none !important;
  }
  .pun-badge { order: 3; margin-left: auto; }
  .pun-staff { order: 4; }
  .pun-reason { order: 5; }
  .pun-date { order: 6; }
  .pun-duration { order: 7; }

  .pun-staff,
  .pun-reason,
  .pun-date,
  .pun-duration {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  .pun-face img {
    width: 40px;
    height: 40px;
  }

  .pun-row .fs-5 {
    font-size: 0.7rem !important;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.85;
  }

  .pun-offender p:last-child {
    margin-bottom: 0;
    font-size: 1.05rem;
  }

  .pun-row p {
    margin-bottom: 0;
  }

  .pun-reason p,
  .pun-reason div {
    word-break: break-word;
  }

  .pun-offender p,
  .pun-staff p,
  .pun-row .fs-5 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .permanent,
  .active,
  .expired {
    font-size: 0.68rem;
    padding: 0.32rem 0.62rem;
  }

  .category-text {
    padding-left: 0.2rem;
  }
}

/* ------------------------------------------------------------------ */
/* Player search (added 2026-08-29)                                     */
/* Mobile first: the search box lives inside the navbar collapse, so on */
/* a phone it stacks full width above the type tabs instead of fighting */
/* them for horizontal room.                                            */
/* ------------------------------------------------------------------ */

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.6rem 0;
}

.search-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(155, 89, 182, 0.35);
  border-radius: 999px;
  color: var(--gray-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  padding: 0.5rem 2.4rem 0.5rem 1rem;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-input::placeholder { color: var(--gray-secondary); }

.search-input:focus {
  border-color: var(--ploomsy-green);
  background-color: rgba(255, 255, 255, 0.08);
}

.search-clear {
  position: absolute;
  right: 0.55rem;
  background: none;
  border: none;
  color: var(--gray-secondary);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem 0.35rem;
  cursor: pointer;
}

.search-clear:hover { color: var(--gray-primary); }

#search-status {
  color: var(--gray-tertiary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background-color: var(--black-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.search-card:hover {
  border-color: rgba(155, 89, 182, 0.55);
  transform: translateY(-1px);
}

.search-face {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.search-card-body { flex: 1 1 auto; min-width: 0; }

.search-name {
  font-family: 'Inter-SemiBold', sans-serif;
  font-size: 1.05rem;
  color: var(--gray-primary);
  overflow-wrap: anywhere;
}

.search-aliases {
  font-size: 0.78rem;
  color: var(--gray-secondary);
  overflow-wrap: anywhere;
}

.search-counts { margin-top: 0.3rem; }

.search-count {
  display: inline-block;
  font-size: 0.74rem;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  margin-right: 0.25rem;
  white-space: nowrap;
}

.search-count-0 { background-color: rgba(194, 24, 91, 0.22); color: #f06292; }
.search-count-1 { background-color: rgba(155, 89, 182, 0.22); color: var(--ploomsy-purple-light); }
.search-count-2 { background-color: rgba(231, 99, 231, 0.18); color: var(--ploomsy-orchid); }
.search-count-3 { background-color: rgba(255, 255, 255, 0.07); color: var(--gray-tertiary); }

.search-card-last {
  flex: 0 0 auto;
  text-align: right;
  font-size: 0.74rem;
  color: var(--gray-secondary);
}

.search-last-when { color: var(--gray-tertiary); font-size: 0.85rem; }

.search-more {
  color: var(--gray-secondary);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.8rem;
}

.player-head {
  background-color: var(--black-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.2rem;
}

.player-id { display: flex; align-items: center; gap: 0.9rem; }

.player-uuid {
  font-size: 0.72rem;
  color: var(--gray-secondary);
  overflow-wrap: anywhere;
}

.search-back {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--gray-tertiary);
  font-size: 0.8rem;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.9rem;
  cursor: pointer;
}

.search-back:hover { color: var(--gray-primary); border-color: rgba(255, 255, 255, 0.3); }

.search-bar {
  background-color: var(--black-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.55rem 0;
}

@media (min-width: 992px) {
  .search-wrap { max-width: 420px; margin: 0; }
}
