* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Arial,
    Helvetica,
    sans-serif;

  background:
    linear-gradient(
      180deg,
      #f4fcff 0%,
      #e1f6ff 45%,
      #cceeff 100%
    );

  color: #123047;

  min-height: 100vh;

  overflow-x: hidden;
}


/* =========================
   MOUSE GLOW
   ========================= */

body::before {

  content: "";

  position: fixed;

  width: 450px;
  height: 450px;

  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 20%);

  transform:
    translate(-50%, -50%);

  background:
    radial-gradient(
      circle,
      rgba(70, 200, 255, 0.18),
      transparent 68%
    );

  pointer-events: none;

  z-index: 0;

  transition:
    left 0.08s ease,
    top 0.08s ease;
}


/* =========================
   HEADER
   ========================= */

header {

  position: relative;

  padding: 55px 6%;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #e5f8ff
    );

  border-bottom:
    2px solid #a9ddf5;

  overflow: visible;

  z-index: 10;
}

.header-content {

  max-width: 1200px;

  margin: auto;

  display: flex;

  justify-content:
    space-between;

  align-items: center;

  gap: 40px;
}

.brand h1 {

  margin: 0;

  font-size: 46px;

  font-weight: 900;

  letter-spacing: 3px;

  color: #12618a;

  text-shadow:
    0 3px 15px
    rgba(60, 170, 220, 0.35);
}

.brand p {

  margin:
    10px 0 0;

  color: #54809a;

  font-size: 17px;
}

.ice-glow {

  position: absolute;

  width: 600px;
  height: 250px;

  left: 30%;

  top: 0;

  background: #7ddcff;

  opacity: 0.2;

  filter: blur(90px);

  pointer-events: none;
}


/* =========================
   PLAYER SEARCH
   ========================= */

.player-search {

  position: relative;

  width: 310px;

  z-index: 20;
}

#player-search {

  width: 100%;

  padding:
    15px 18px;

  border:
    2px solid #a9ddf5;

  border-radius: 11px;

  background:
    rgba(255, 255, 255, 0.95);

  color: #12618a;

  font-size: 16px;

  outline: none;

  box-shadow:
    0 6px 20px
    rgba(45, 165, 220, 0.1);

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#player-search::placeholder {

  color: #7ca5b8;
}

#player-search:hover {

  border-color: #79c9eb;

  box-shadow:
    0 8px 25px
    rgba(45, 165, 220, 0.16);
}

#player-search:focus {

  border-color: #4fc3f7;

  transform: scale(1.02);

  box-shadow:
    0 0 20px
    rgba(79, 195, 247, 0.3);
}


/* SEARCH RESULTS */

.search-results {

  position: absolute;

  top: calc(100% + 8px);

  left: 0;

  width: 100%;

  background: white;

  border:
    2px solid #a9ddf5;

  border-radius: 11px;

  box-shadow:
    0 12px 35px
    rgba(30, 120, 160, 0.2);

  overflow: hidden;

  display: none;
}

.search-result {

  padding: 13px 16px;

  cursor: pointer;

  border-bottom:
    1px solid #e2f4fa;

  display: flex;

  justify-content:
    space-between;

  align-items: center;

  transition:
    background 0.15s ease,
    padding 0.15s ease;
}

.search-result:last-child {

  border-bottom: none;
}

.search-result:hover {

  background: #e5f8ff;

  padding-left: 21px;
}

.search-name {

  font-weight: bold;

  color: #12618a;
}

.search-tier {

  font-size: 12px;

  font-weight: 900;

  padding: 5px 8px;

  border-radius: 5px;
}


/* =========================
   MAIN
   ========================= */

main {

  position: relative;

  z-index: 1;

  width: 90%;

  max-width: 950px;

  margin:
    40px auto;
}


/* =========================
   SECTIONS
   ========================= */

section {

  background:
    rgba(255, 255, 255, 0.94);

  border:
    2px solid #a9ddf5;

  border-radius: 16px;

  padding: 30px;

  margin-bottom: 25px;

  box-shadow:
    0 8px 30px
    rgba(45, 145, 190, 0.12);
}

section h2 {

  margin-top: 0;

  font-size: 24px;

  color: #12618a;

  text-shadow:
    0 0 10px
    rgba(79, 195, 247, 0.25);
}


/* =========================
   SERVER
   ========================= */

.server {

  text-align: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.server:hover {

  transform:
    translateY(-3px);

  border-color:
    #79c9eb;

  box-shadow:
    0 12px 35px
    rgba(45, 165, 220, 0.18);
}

.server p {

  color: #64879b;
}

.ip-box {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 12px;

  margin-top: 20px;
}

#server-ip {

  background: #edfaff;

  border:
    2px solid #a9ddf5;

  padding:
    13px 20px;

  border-radius: 9px;

  font-family: monospace;

  color: #12618a;

  font-size: 16px;
}


/* =========================
   BUTTONS
   ========================= */

button {

  border:
    2px solid #79c9eb;

  background:
    linear-gradient(
      180deg,
      #ffffff,
      #dff5ff
    );

  color: #12618a;

  padding:
    12px 17px;

  border-radius: 9px;

  font-weight: bold;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

button:hover {

  transform:
    translateY(-4px)
    scale(1.03);

  background:
    #c9efff;

  border-color:
    #4fc3f7;

  box-shadow:
    0 8px 20px
    rgba(45, 165, 220, 0.3);
}

button:active {

  transform:
    translateY(-1px)
    scale(0.98);
}


/* =========================
   OVERALL
   ========================= */

.overall {

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.overall:hover {

  transform:
    scale(1.01);

  border-color:
    #79c9eb;

  box-shadow:
    0 12px 35px
    rgba(45, 165, 220, 0.18);
}

.section-description {

  color: #64879b;

  margin-top: -10px;

  margin-bottom: 20px;
}

.overall-player {

  display: grid;

  grid-template-columns:
        70px 1fr 70px;

  align-items: center;

  background: #f1fbff;

  border:
    1px solid #b8e2f5;

  padding:
    17px 20px;

  margin-top: 10px;

  border-radius: 10px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.overall-player:hover {

  transform:
    translateX(6px)
    scale(1.01);

  background:
    #e4f7ff;

  box-shadow:
    0 6px 18px
    rgba(40, 160, 210, 0.15);
}

.overall-rank {

  color: #4c91b4;

  font-weight: bold;
}

.overall-ign {

  font-weight: bold;

  font-size: 16px;
}

.overall-tier {

  text-align: center;

  padding:
    7px 8px;

  border-radius: 6px;

  font-weight: 900;
}


/* =========================
   GAMEMODES
   ========================= */

.gamemodes {

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.gamemodes:hover {

  transform:
    translateY(-2px);

  border-color:
    #79c9eb;

  box-shadow:
    0 12px 35px
    rgba(45, 165, 220, 0.16);
}

.gamemode-buttons {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;
}


/* =========================
   LEADERBOARD
   ========================= */

.leaderboard {

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.leaderboard:hover {

  transform:
    scale(1.015);

  border-color:
    #4fc3f7;

  box-shadow:
    0 12px 40px
    rgba(45, 165, 220, 0.25),
    0 0 25px
    rgba(79, 195, 247, 0.18);
}

.player {

  display: grid;

  grid-template-columns:
        70px 1fr 70px;

  align-items: center;

  background: #f1fbff;

  border:
    1px solid #b8e2f5;

  padding:
    16px 20px;

  margin-top: 10px;

  border-radius: 10px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.player:hover {

  transform:
    translateX(6px)
    scale(1.01);

  background:
    #e4f7ff;

  box-shadow:
    0 6px 18px
    rgba(40, 160, 210, 0.15);
}

.rank {

  color: #4c91b4;

  font-weight: bold;
}

.ign {

  font-weight: bold;

  font-size: 16px;
}

.tier {

  text-align: center;

  padding:
    7px 8px;

  border-radius: 6px;

  font-weight: 900;
}


/* =========================
   PLAYER PROFILE
   ========================= */

.player-profile {

  position: relative;

  animation:
    profileOpen 0.25s ease;

  border-color:
    #4fc3f7;

  box-shadow:
    0 15px 50px
    rgba(45, 165, 220, 0.25),
    0 0 30px
    rgba(79, 195, 247, 0.15);
}

.player-profile.hidden {

  display: none;
}

@keyframes profileOpen {

  from {

    opacity: 0;

    transform:
      translateY(15px)
      scale(0.98);
  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);
  }
}

.profile-header {

  display: flex;

  justify-content:
    space-between;

  align-items:
    flex-start;
}

.profile-label {

  color: #68a9c7;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 2px;
}

.profile-header h2 {

  margin-top: 7px;

  font-size: 32px;
}

.close-profile {

  padding:
    8px 12px;

  font-size: 16px;
}

.profile-overall {

  display: grid;

  grid-template-columns:
        1fr 1fr;

  gap: 15px;

  margin-top: 20px;
}

.overall-stat {

  background:
    linear-gradient(
      135deg,
      #edfaff,
      #d9f3ff
    );

  border:
    1px solid #a9ddf5;

  border-radius: 10px;

  padding: 18px;
}

.overall-stat span {

  display: block;

  color: #64879b;

  font-size: 12px;

  font-weight: bold;

  margin-bottom: 8px;
}

.overall-stat strong {

  font-size: 22px;

  color: #12618a;
}

.overall-stat .tier {

  display: inline-block;

  font-size: 16px;
}

.player-profile h3 {

  margin-top: 28px;

  color: #12618a;
}

.profile-tiers {

  display: grid;

  grid-template-columns:
        1fr 1fr;

  gap: 10px;
}

.profile-tier {

  display: flex;

  justify-content:
    space-between;

  align-items: center;

  background:
    #f1fbff;

  border:
    1px solid #b8e2f5;

  border-radius: 9px;

  padding:
    13px 15px;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.profile-tier:hover {

  transform:
    translateX(4px);

  background:
    #e3f7ff;
}

.profile-tier-name {

  color: #3f7188;

  font-weight: bold;
}


/* =========================
   TIER COLORS
   ========================= */

.ht1 {

  background: #bdeeff;

  color: #075278;

  box-shadow:
    0 0 10px
    rgba(100, 210, 255, 0.35);
}

.lt1 {

  background: #8cddff;

  color: #075278;
}

.ht2 {

  background: #62c9f2;

  color: #063e5b;
}

.lt2 {

  background: #3eabd8;

  color: white;
}

.ht3 {

  background: #268fbd;

  color: white;
}

.lt3 {

  background: #6bb8d8;

  color: white;
}

.ht4 {

  background: #9bd4e9;

  color: #14506b;
}

.lt4 {

  background: #b5dfef;

  color: #14506b;
}

.ht5 {

  background: #c8e8f3;

  color: #14506b;
}

.lt5 {

  background: #e0f3f9;

  color: #39738b;

  border:
    1px solid #acd6e5;
}


/* =========================
   FOOTER
   ========================= */

footer {

  position: relative;

  z-index: 1;

  text-align: center;

  color: #6393a9;

  padding: 35px;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

  header {

    padding:
      40px 20px;
  }

  .header-content {

    flex-direction: column;

    align-items: stretch;

    text-align: center;
  }

  .brand h1 {

    font-size: 34px;
  }

  .player-search {

    width: 100%;
  }

  main {

    width: 94%;
  }

  section {

    padding: 20px;
  }

  .ip-box {

    flex-direction: column;
  }

  .gamemode-buttons button {

    width: 100%;
  }

  .profile-overall {

    grid-template-columns: 1fr;
  }

  .profile-tiers {

    grid-template-columns: 1fr;
  }

  .player,
  .overall-player {

    grid-template-columns:
            50px 1fr 65px;

    padding: 14px;
  }

  .leaderboard:hover {

    transform: scale(1.005);
  }
}
