/* =========================================================
   PERSONAL PROFILE / NEOCITIES THEME
   Change the background here:
   --background-image: url("../images/background.jpg");
   ========================================================= */

:root {
  --background-image: url("../images/background.jpg");
  --accent: #b8d5e8;
  --accent-bright: #d9efff;
  --text: #e8edf1;
  --muted: #aeb9c2;
  --panel: rgba(18, 29, 38, 0.72);
  --panel-dark: rgba(8, 15, 21, 0.78);
  --border: rgba(210, 230, 242, 0.22);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  /* ESCALA GLOBAL */
  zoom: 1.5;

  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  background-image: var(--background-image);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #17232d;
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(15, 27, 37, 0.48), rgba(10, 17, 24, 0.72)),
    radial-gradient(circle at top, rgba(190, 220, 240, 0.12), transparent 50%);
  pointer-events: none;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  color: white;
}

.site-shell {
  width: min(1000px, calc(100% - 24px));
  margin: 26px auto;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 12px 35px var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* HEADER */

.profile-header {
  display: grid;
  grid-template-columns: 76px 1fr 170px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  margin-bottom: 12px;
}

.avatar {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.35);
  background: #202b34;
}

.profile-intro h1 {
  margin: 0 0 2px;
  font-size: 23px;
  font-weight: normal;
  letter-spacing: .2px;
}

.site-name {
  margin: 0 0 5px;
  color: #d3dde4;
}

.status {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 12px;
}

.mini-links {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #87949e;
  font-size: 11px;
}

.level-card {
  align-self: stretch;
  padding: 9px 11px;
  background: rgba(5, 11, 16, .27);
  border-left: 1px solid var(--border);
}

.small-label {
  color: #8e9ba4;
  font-size: 9px;
  letter-spacing: 1.2px;
}

.level-number {
  font-size: 25px;
  margin: 2px 0 5px;
}

.level-bar {
  height: 4px;
  background: rgba(255,255,255,.13);
}

.level-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.level-subtext {
  margin-top: 5px;
  color: #89949c;
  font-size: 9px;
}

/* MAIN GRID */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 12px;
}

.main-column,
.side-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card,
.music-player,
.content-card,
.side-card {
  padding: 10px;
}

.section-title,
.music-top,
.side-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  margin: 1px 0 9px;
  color: #d9e7ee;
  font-size: 11px;
}

.muted,
.hint {
  color: var(--muted);
  font-size: 10px;
}

.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.7;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.15);
  background: #17242e;
}

.caption {
  margin: 8px 2px 2px;
  color: #b9c5cc;
  line-height: 1.5;
}

/* MUSIC PLAYER */

.music-player {
  background: linear-gradient(
    rgba(10, 17, 23, .84),
    rgba(21, 32, 41, .70)
  );
}

.music-top {
  padding-bottom: 8px;
}

.song-title {
  margin-top: 2px;
  color: #edf7fb;
  font-size: 13px;
}

.song-artist {
  color: #8f9da6;
  font-size: 10px;
}

.track-time {
  color: #8d9aa3;
  font-family: monospace;
  font-size: 10px;
}

.progress-wrap input,
.volume-box input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.player-btn {
  min-width: 34px;
  height: 25px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  color: #d7e3ea;
  cursor: pointer;
  font-size: 10px;
}

.player-btn:hover {
  background: rgba(255,255,255,.14);
}

.player-btn.play {
  min-width: 42px;
}

.volume-box {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  width: 125px;
  color: #8997a0;
  font-size: 8px;
}

.playlist {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.track {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 7px;
  align-items: center;
  padding: 5px 4px;
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: #aebbc3;
  cursor: pointer;
}

.track:hover,
.track.active {
  background: rgba(180, 215, 235, .08);
  color: white;
}

.track-num {
  color: #74818a;
  font-family: monospace;
}

.track-duration {
  color: #69757d;
  font-size: 9px;
}

/* CONTENT */

.group-preview {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  align-items: center;
}

.group-preview img {
  width: 76px;
  height: 76px;
  object-fit: cover;
}

.group-preview h2 {
  margin: 0 0 5px;
  font-size: 14px;
  font-weight: normal;
}

.group-preview p,
.content-card p {
  color: #aebbc3;
  line-height: 1.55;
}

.group-preview p {
  margin: 0 0 8px;
}

.group-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #7f8c95;
  font-size: 9px;
}

.group-stats b {
  display: block;
  color: #dce9ef;
  font-size: 13px;
  font-weight: normal;
}

/* SIDEBAR */

.side-card {
  padding: 9px;
}

.side-heading {
  padding-bottom: 7px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  color: #9aa8b1;
  font-size: 9px;
  letter-spacing: .7px;
}

.side-heading span {
  color: #d2dfe6;
}

.profile-nav {
  display: flex;
  flex-direction: column;
}

.profile-nav a {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 3px;
  min-height: 29px;
  padding: 0 5px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  color: #b9c5cc;
  font-size: 11px;
}

.profile-nav a:hover {
  background: rgba(185, 215, 235, .09);
  color: white;
}

.profile-nav a span {
  color: #8ca6b7;
}

.profile-nav b {
  color: #7d8991;
  font-size: 9px;
  font-weight: normal;
}

.badges {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  padding: 5px 0 2px;
}

.badges img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
}

.button-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px 0;
}

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

/* SITES I LIKE */

.sites-list {
  display: flex;
  flex-direction: column;
}

.site-link {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}

.site-link:hover {
  background: rgba(255,255,255,.06);
}

/* 88x31 WEB BUTTON */

.site-button {
  width: 88px;
  height: 31px;
  object-fit: contain;
  display: block;
  flex: 0 0 88px;
}

.site-link strong {
  display: block;
  color: #d4e0e6;
  font-size: 11px;
  font-weight: normal;
}

.site-link small {
  display: block;
  margin-top: 2px;
  color: #7f8b93;
  font-size: 9px;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 9px 11px;
  color: #87949c;
  font-size: 9px;
}

/* MOBILE */

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 14px, 600px);
    margin: 12px auto;
  }

  .profile-header {
    grid-template-columns: 64px 1fr;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }

  .level-card {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

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

  .hero-image {
    aspect-ratio: 16 / 9;
  }

  .footer {
    flex-direction: column;
    gap: 5px;
  }
}