/* CS2ServerList — plain CSS (replaces Tailwind utilities for PHP pages) */

:root {
  --bg-top: #16181c;
  --bg-mid: #141519;
  --bg-bottom: #1c1e24;
  --panel: #1e2029;
  --panel-2: #272a36;
  --border: #2a2e3a;
  --text: #ffffff;
  --muted: #9ca3af;
  --accent: #ff4655;
  --accent-dark: #c62828;
  --radius: 8px;
  --max: 1720px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-mid) 40%, var(--bg-bottom));
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover:not(.btn) {
  color: var(--accent);
}

.text-muted {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(22, 24, 28, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
}

.site-logo__img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo__text {
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.site-logo__accent {
  color: var(--accent);
}

.site-nav {
  display: none;
}

.site-nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-nav__link {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: #fff;
  transition: background 0.18s ease, color 0.18s ease;
}

.site-nav__link:hover {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 768px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: block;
    order: 0;
    margin-inline: auto;
  }

  .site-nav__links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav__link {
    padding: 0.25rem 0;
    border-radius: 0;
  }

  .site-nav__link:hover {
    background: transparent;
    color: var(--accent);
  }

  .site-nav__link.is-active {
    color: var(--accent);
  }
}

@media (min-width: 768px) {
  .site-header__actions {
    flex-wrap: nowrap;
  }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}

.site-user-dropdown {
  position: relative;
}

.site-user-btn {
  padding-right: 0.55rem;
}

.site-user-btn__caret {
  width: 0.95rem;
  height: 0.95rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.site-user-menu {
  min-width: 12rem;
}

.md-hidden {
  display: inline-flex;
}

.md-only {
  display: none;
}

.md-only-flex {
  display: none;
}

@media (min-width: 768px) {
  .md-hidden {
    display: none;
  }

  .md-only {
    display: inline;
  }

  .md-only-flex {
    display: inline-flex;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.nav-toggle span + span {
  margin-top: 4px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav.is-open {
  display: block;
  position: fixed;
  top: calc(var(--header-h) - 2px);
  left: 0;
  right: 0;
  width: 100%;
  padding: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid #373a47;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  z-index: 90;
}

@media (min-width: 768px) {
  .nav-toggle.md-hidden {
    display: none;
  }

  .site-nav.is-open {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    width: auto;
  }
}

.site-header__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn:disabled,
.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
  transform: none;
  filter: grayscale(0.2) brightness(0.9);
}

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.btn-primary:not(:disabled):hover,
.btn-primary:not([disabled]):hover {
  filter: brightness(1.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary:not(:disabled):active,
.btn-primary:not([disabled]):active {
  transform: translateY(0);
  filter: brightness(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.btn-primary:disabled,
.btn-primary[disabled] {
  background: #5f6577;
  color: #c5cada;
  border-color: #5f6577;
  box-shadow: none;
  filter: none;
}

.btn-ghost {
  background: #2a3040;
  color: #fff;
}

.btn-ghost:hover {
  filter: brightness(1.08);
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* Server hero admin row (matches Nuxt ServerHeader edit / claim controls). */
.sv-hero__admin .btn-ghost {
  background: #1e2029;
  border: 1px solid #2a2e3a;
  filter: none;
}

.sv-hero__admin .btn-ghost:hover {
  filter: none;
  background: #272a36;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.22);
}

.btn-steam {
  background: linear-gradient(to right, #b71c1c, var(--accent-dark));
  color: #fff;
}

.btn-steam:hover {
  filter: brightness(1.1);
}

.btn-header-steam {
  padding-inline: 0.6rem;
}

.btn-header-add {
  background: var(--accent-dark);
  color: #fff;
  padding-inline: 0.65rem;
}

.btn-header-add:hover {
  filter: brightness(1.1);
  color: #fff;
}

.btn-header-add:focus,
.btn-header-add:active {
  color: #fff;
}

.btn-header-add__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-header-ghost {
  background: var(--panel);
  color: #fff;
  border: 1px solid var(--border);
  padding-inline: 0.6rem;
}

.btn-header-ghost:hover {
  filter: brightness(1.1);
}

.btn-header__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-header__icon--steam {
  fill: currentColor;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

/* Hero strip */
.hero-strip {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 1rem;
}

.hero-strip__inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 0.875rem;
}

.hero-pill__badge {
  background: var(--accent-dark);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* Main */
.site-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem clamp(0.75rem, 2vw, 1.5rem) 3rem;
  min-height: 50vh;
}

/* Home */
.welcome-block {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-block__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.welcome-block__text {
  color: var(--muted);
  max-width: 48rem;
  margin: 0 auto;
  line-height: 1.6;
}

.page-home__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .page-home__grid {
    grid-template-columns: 1fr 280px;
  }
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.input,
.select {
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: #fff;
  min-width: 140px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.server-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.server-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.server-table th,
.server-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.server-table thead th {
  background: var(--panel-2);
  font-weight: 600;
}

.server-table__name {
  font-weight: 600;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pagination__link {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.panel--center {
  max-width: 32rem;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
}

.panel__head {
  padding: 0.75rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

.panel__title {
  margin: 0;
  font-size: 1rem;
}

.recent-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.recent-list__item {
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  border-bottom: 1px solid var(--border);
}

.empty-state,
.alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(255, 70, 85, 0.12);
  border: 1px solid var(--accent);
  color: #fecaca;
}

.alert-success {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.65);
  color: #bbf7d0;
}

.page-home .login-flash {
  margin: 0 0 1rem;
}

/* Server page */
.server-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.server-card--hero .server-card__head {
  padding: 1rem 1.25rem;
}

.server-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.server-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.server-card__actions {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
}

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.player-list__row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: var(--bg-top);
  border-top: 1px solid var(--border);
}

.footer-stats {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #12141a, #16181c);
}

.footer-stats__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.footer-stats__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-stats__title {
  margin: 0;
  font-size: 1.1rem;
}

.footer-stats__updated {
  margin: 0;
  color: #6b7280;
  font-size: 0.75rem;
}

@media (max-width: 640px) {
  .footer-stats__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .footer-stats__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  background: #1a1c23;
}

.stat-card__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stat-card__value {
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-stats__blurb {
  margin: 1.1rem 0 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255, 70, 85, 0.45);
  color: #9ca3af;
  line-height: 1.6;
  font-size: 0.9rem;
}

.footer-spotlight__title {
  margin: 0;
  font-size: 1rem;
}

.footer-spotlight__sub {
  margin: 0.35rem 0 0.85rem;
  color: #6b7280;
  font-size: 0.75rem;
}

.footer-spotlight__empty {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
}

.footer-spotlight .sl-list-shell {
  margin-top: 0.5rem;
}

.footer-spotlight__desktop {
  display: none !important;
}

.footer-spotlight__mobile {
  display: block !important;
}

@media (min-width: 1024px) {
  .footer-spotlight__desktop {
    display: block !important;
  }

  .footer-spotlight__mobile {
    display: none !important;
  }
}

.footer-spotlight__desktop .sl-row,
.footer-spotlight__mobile .sl-card {
  cursor: pointer;
}

.footer-spotlight-seo {
  margin-top: 1.35rem;
}

.footer-spotlight-seo .tvxContLimit {
  max-width: 100%;
}

.footer-spotlight-seo .hrStyle {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 70, 85, 0.5), rgba(255, 70, 85, 0));
  margin-bottom: 0.95rem;
}

.footer-spotlight-seo .metaStyle h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-spotlight-seo .metaStyle p {
  margin: 0 0 0.75rem;
  color: #9ca3af;
  line-height: 1.6;
  font-size: 0.875rem;
}

.footer-spotlight-seo .metaStyle p:last-child {
  margin-bottom: 0;
}

.footer-spotlight-seo .metaStyle a {
  color: #f3f4f6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-spotlight-seo .metaStyle a:hover {
  color: #ff6b78;
}

.site-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 100%;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

@media (max-width: 640px) {
  .site-footer__links {
    gap: 0.65rem 1rem;
    font-size: 0.82rem;
  }
}

.site-footer__promo {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}

.site-footer__promo:hover {
  border-color: rgba(255, 70, 85, 0.5);
  color: var(--accent);
}

.site-footer__icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--muted);
}

.site-footer__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.site-footer__icon:hover {
  color: var(--accent);
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Language dropdown */
.lang-dropdown {
  position: relative;
}

.lang-dropdown__menu {
  position: absolute;
  right: 0;
  margin-top: 0.5rem;
  min-width: 11.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 50;
}

.lang-dropdown__menu[hidden] {
  display: none;
}

.lang-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.58rem 0.85rem;
  font-size: 0.875rem;
  border: none;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.lang-dropdown__item:hover {
  background: var(--panel-2);
  color: var(--accent);
}

.site-nav__mobile-action {
  display: block;
}

.site-nav__mobile-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: calc(100% - 1.5rem);
  margin: 0.25rem 0.75rem 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav__mobile-add:hover {
  color: #fff;
  filter: brightness(1.08);
}

.site-nav__mobile-add:focus,
.site-nav__mobile-add:active {
  color: #fff;
}

.site-nav__mobile-add-icon {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 768px) {
  .site-nav__mobile-action {
    display: none;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden {
  display: none !important;
}

