/*
Theme Name: KickAss USA
Theme URI: https://bombsquad.com
Author: BombSquad Team
Description: KickAss USA BombSquad server hub
Version: 7.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kickass-usa
*/

/* ═══════════════════════════════════════════
   RESET — kill WP defaults before they ship
   ═══════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body li, body td, body th,
body blockquote, body figure, body figcaption,
body div, body section, body article, body aside, body main, body header, body footer,
body span, body a, body button, body input, body textarea, body select {
  color: #f5f7ff;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
}

/* Nuke WP block-library resets */
p,
h1, h2, h3, h4, h5, h6,
ul, ol, li,
figure,
blockquote,
table,
hr,
pre,
code {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* Override WP admin bar */
html {
  background: #070916 !important;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  color: #f5f7ff;
  background: #070916;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WP block overrides */
.wp-block-button,
.wp-block-button__link,
.wp-block-file__button,
.wp-block-latest-posts,
.wp-block-search,
.wp-block-query {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}

/* Remove WP link defaults */
a {
  color: inherit;
  text-decoration: none !important;
  transition: none !important;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ═══════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════ */

:root {
  --bg: #070916;
  --panel: rgba(17, 21, 48, .82);
  --panel-strong: rgba(20, 25, 56, .96);
  --line: rgba(132, 178, 255, .18);
  --cyan: #3cddff;
  --blue: #667cff;
  --pink: #ff4fa3;
  --yellow: #ffd45d;
  --green: #55efad;
  --text: #f5f7ff;
  --muted: #a9b5d8;
  --danger: #ff637b;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

/* ═══════════════════════════════
   ANIMATED BACKGROUND
   ═══════════════════════════════ */

.bg-animated {
  position: fixed;
  inset: -15%;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 18%, rgba(60, 221, 255, .21), transparent 20rem),
    radial-gradient(circle at 82% 8%, rgba(255, 79, 163, .18), transparent 25rem),
    radial-gradient(circle at 55% 86%, rgba(102, 124, 255, .22), transparent 27rem),
    linear-gradient(145deg, #060817 0%, #111940 45%, #090617 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .55;
  animation: float 14s ease-in-out infinite alternate;
}

.orb.one {
  width: 260px;
  height: 260px;
  top: 12%;
  left: 7%;
  background: radial-gradient(circle, rgba(60, 221, 255, .45), transparent 68%);
}

.orb.two {
  width: 340px;
  height: 340px;
  right: 5%;
  top: 22%;
  background: radial-gradient(circle, rgba(255, 79, 163, .36), transparent 68%);
  animation-delay: -6s;
}

.orb.three {
  width: 300px;
  height: 300px;
  bottom: 3%;
  left: 38%;
  background: radial-gradient(circle, rgba(255, 212, 93, .18), transparent 65%);
  animation-delay: -9s;
}

@keyframes float {
  from {
    transform: translate3d(-35px, -18px, 0) scale(1);
  }
  to {
    transform: translate3d(55px, 38px, 0) scale(1.18);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(120, 168, 255, .17) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 168, 255, .17) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

/* ═══════════════════════════════
   LAYOUT
   ═══════════════════════════════ */

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ═══════════════════════════════
   TOP BAR / NAV
   ═══════════════════════════════ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(120, 160, 255, .12);
  background: rgba(6, 8, 23, .76);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: #f5f7ff;
  text-decoration: none !important;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(60, 221, 255, .55);
  border-radius: 13px;
  color: #06101f;
  font-size: 22px;
  background: linear-gradient(135deg, var(--cyan), #8dffca);
  box-shadow: 0 0 25px rgba(60, 221, 255, .3);
}

.brand strong {
  display: block;
  font-size: 15px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--muted) !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease;
}

.nav-links a:hover {
  color: var(--cyan) !important;
}

.nav-actions {
  display: flex;
  gap: 9px;
}

/* ═══════════════════════════════
   BUTTONS
   ═══════════════════════════════ */

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 15px;
  color: var(--text) !important;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
  transition: transform .2s ease, filter .2s ease, border-color .2s ease;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-secondary {
  border-color: rgba(133, 171, 255, .28) !important;
  background: rgba(90, 123, 212, .12) !important;
}

.btn-primary {
  color: #071020 !important;
  background: linear-gradient(135deg, var(--cyan), #8cffa9) !important;
  box-shadow: 0 10px 24px rgba(60, 221, 255, .16);
}

/* ═══════════════════════════════
   HERO
   ═══════════════════════════════ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .85fr);
  gap: 22px;
  padding: 42px 0 22px;
}

.hero-main,
.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--panel);
  backdrop-filter: blur(14px);
}

.hero-main {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 25, .95) 0%, rgba(6, 10, 29, .58) 47%, rgba(6, 10, 29, .38) 100%),
    linear-gradient(0deg, rgba(5, 7, 19, .82), transparent 55%);
  transform: scale(1.02);
}

.eyebrow {
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(85, 239, 173, .34);
  border-radius: 999px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  background: rgba(85, 239, 173, .08);
}

h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(38px, 6vw, 73px);
  line-height: .95;
  letter-spacing: -.06em;
  text-transform: uppercase;
  color: var(--text);
}

h1 span {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(60, 221, 255, .45);
}

.hero-copy {
  max-width: 560px;
  margin: 18px 0 25px;
  color: #d5ddf8;
  font-size: 16px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  padding: 13px 18px;
}

.live-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(85, 239, 173, .11), 0 0 18px rgba(85, 239, 173, .8);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  50% {
    opacity: .45;
    transform: scale(.82);
  }
}

/* ═══════════════════════════════
   SEASON CARD
   ═══════════════════════════════ */

.season-card {
  padding: 23px;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}

.card-label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.season-card h2 {
  margin: 10px 0 6px;
  font-size: 27px;
  letter-spacing: -.04em;
  color: var(--text);
}

.season-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.season-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 24px 0;
}

.season-points div {
  padding: 13px 8px;
  border: 1px solid rgba(132, 178, 255, .16);
  border-radius: 13px;
  text-align: center;
  background: rgba(7, 12, 35, .42);
}

.season-points strong {
  display: block;
  color: var(--yellow);
  font-size: 20px;
}

.season-points span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ═══════════════════════════════
   DASHBOARD
   ═══════════════════════════════ */

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
  gap: 22px;
  padding: 12px 0 35px;
}

.leaderboard,
.server-card,
.login-card,
.info-card {
  padding: 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 17px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 25px;
  letter-spacing: -.04em;
  color: var(--text);
}

.section-heading a {
  color: var(--cyan) !important;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none !important;
}

/* ═══════════════════════════════
   LEADERBOARD
   ═══════════════════════════════ */

.rank-list {
  display: grid;
  gap: 7px;
}

.rank-row {
  display: grid;
  grid-template-columns: 44px 1fr 80px 65px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(4, 7, 23, .34);
  transition: background .2s ease, border-color .2s ease;
}

.rank-row:hover {
  border-color: rgba(60, 221, 255, .24);
  background: rgba(60, 221, 255, .06);
}

.rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  background: rgba(118, 143, 216, .11);
}

.rank.gold {
  color: #2a1600;
  background: linear-gradient(135deg, #ffe17a, #f5a72c);
}

.rank.silver {
  color: #162033;
  background: linear-gradient(135deg, #e9f4ff, #a6b9d4);
}

.rank.bronze {
  color: #311606;
  background: linear-gradient(135deg, #f5a864, #b96832);
}

.player {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text);
}

.player span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.score {
  color: var(--yellow);
  text-align: right;
  font-size: 14px;
  font-weight: 900;
}

.trend {
  color: var(--green);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.trend.down {
  color: var(--danger);
}

/* ═══════════════════════════════
   SIDEBAR
   ═══════════════════════════════ */

.side-stack {
  display: grid;
  gap: 22px;
  align-content: start;
}

.server-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.server-top h2 {
  margin: 5px 0 0;
  font-size: 24px;
  letter-spacing: -.04em;
  color: var(--text);
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(85, 239, 173, .28);
  border-radius: 999px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  background: rgba(85, 239, 173, .07);
}

.status-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.server-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.server-block {
  padding: 18px 20px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.server-block:hover {
  border-color: rgba(60, 221, 255, .35);
  box-shadow: 0 4px 32px rgba(60, 221, 255, .10);
}

.server-block:last-child {
  margin-bottom: 0;
}

.server-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.server-name {
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .02em;
}

.server-stats div {
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(132, 178, 255, .08);
  background: rgba(4, 8, 26, .55);
}

.server-stats span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.server-stats strong {
  font-size: 15px;
  color: var(--text);
}

/* ═══════════════════════════════
   LOGIN CARD
   ═══════════════════════════════ */

.login-card h2 {
  margin: 5px 0 8px;
  font-size: 24px;
  letter-spacing: -.04em;
  color: var(--text);
}

.login-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.login-row {
  display: flex;
  gap: 10px;
}

.login-row .btn {
  flex: 1;
}

/* ═══════════════════════════════
   COMMUNITY
   ═══════════════════════════════ */

.community {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 42px;
}

.info-card h3 {
  margin: 7px 0 8px;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--text);
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.info-card a {
  display: inline-block;
  margin-top: 17px;
  color: var(--cyan) !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

/* ═══════════════════════════════
   FOOTER
   ═══════════════════════════════ */

footer {
  padding: 22px 0 32px;
  border-top: 1px solid rgba(132, 178, 255, .12);
  color: #8390b8;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════
   MODAL
   ═══════════════════════════════ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(2, 4, 14, .76);
  backdrop-filter: blur(9px);
}

.modal-backdrop.active {
  display: grid;
}

.modal {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid rgba(94, 179, 255, .28);
  border-radius: 20px;
  background: #101630;
  box-shadow: 0 25px 90px rgba(0, 0, 0, .62);
}

.modal h2 {
  margin: 6px 0 6px;
  font-size: 27px;
  letter-spacing: -.04em;
  color: var(--text);
}

.modal p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.close-modal {
  position: absolute;
  top: 13px;
  right: 14px;
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  font-size: 21px;
  background: rgba(255, 255, 255, .06);
}

.form-group {
  margin-bottom: 13px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #c9d4f0;
  font-size: 12px;
  font-weight: 800;
}

.form-group input {
  width: 100%;
  padding: 12px 13px;
  outline: none;
  border: 1px solid rgba(135, 171, 255, .22);
  border-radius: 10px;
  color: var(--text);
  background: rgba(4, 7, 22, .6);
  font-size: 14px;
}

.form-group input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(60, 221, 255, .1);
}

.modal .btn {
  width: 100%;
  margin-top: 5px;
}

.modal-note {
  margin-top: 14px !important;
  color: #8491b7 !important;
  font-size: 11px !important;
}

/* ═══════════════════════════════
   WP ADMIN BAR
   ═══════════════════════════════ */

.admin-bar .topbar {
  top: 32px;
}

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */

@media (max-width: 930px) {
  .hero,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .season-card {
    min-height: auto;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 680px) {
  .nav {
    min-height: 66px;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .nav-actions .btn {
    padding: 9px 10px;
    font-size: 11px;
  }

  .hero-main {
    min-height: 410px;
  }

  .community {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 36px 1fr 62px;
    gap: 8px;
    padding: 10px 8px;
  }

  .trend {
    display: none;
  }

  .score {
    font-size: 12px;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
