/* Public profile redesign. Scoped so it does not change other FurMap pages. */
.profile-redesign {
  --profile-bg: #030712;
  --profile-panel: rgba(9, 15, 32, 0.88);
  --profile-panel-2: rgba(15, 23, 48, 0.86);
  --profile-line: rgba(116, 95, 214, 0.28);
  --profile-pink: #ff2fad;
  --profile-purple: #6f2cff;
  --profile-blue: #168cff;
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 47, 173, 0.12), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(22, 140, 255, 0.12), transparent 32%),
    var(--profile-bg);
}

.profile-redesign.has-nav-side .profile-main {
  width: min(1240px, calc(100% - 350px));
  margin: 28px 28px 70px max(320px, calc((100% - 1240px) / 2));
  padding: 0;
}

.profile-redesign .profile-main > .toast {
  margin: 0 0 14px;
}

.profile-redesign .profile-layout,
.profile-redesign .admin-profile-actions,
.profile-redesign .profile-gallery-section {
  border: 1px solid var(--profile-line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(13, 19, 42, 0.94), rgba(8, 13, 29, 0.96)),
    var(--profile-panel);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
}

.profile-redesign .profile-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  padding: clamp(20px, 3vw, 32px);
}

.profile-redesign .profile-layout > div {
  min-width: 0;
}

.profile-redesign .profile-layout > div:first-child {
  display: grid;
  justify-items: center;
}

.profile-redesign .photo-profile-button {
  display: grid;
  place-items: center;
  width: min(100%, 300px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.profile-redesign .profile-layout .big-avatar {
  width: min(300px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  border: 4px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  object-fit: cover;
  background: #081123;
  box-shadow:
    0 0 0 4px rgba(255, 47, 173, 0.72),
    0 22px 55px rgba(111, 44, 255, 0.28);
}

.profile-redesign #displayName {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.profile-redesign #username {
  margin: 10px 0 20px;
  color: #a9c7ff;
  font-size: 1rem;
}

.profile-redesign .info-list {
  gap: 11px;
}

.profile-redesign .info-item {
  display: grid;
  grid-template-columns: minmax(120px, 140px) minmax(0, 1fr);
  gap: 10px 18px;
  align-items: start;
  min-height: 50px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(25, 34, 62, 0.86);
}

.profile-redesign .info-item b {
  color: #f8f8ff;
}

.profile-redesign .info-item span {
  min-width: 0;
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.profile-redesign .admin-profile-actions {
  margin-top: 24px;
  padding: 20px;
}

.profile-redesign .admin-profile-actions h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.profile-redesign .admin-profile-actions .nav {
  margin: 14px 0 0;
  gap: 10px;
}

.profile-redesign .admin-profile-actions .btn,
.profile-redesign .admin-profile-actions button {
  border-radius: 8px;
}

.profile-redesign .friend-add-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.profile-redesign .profile-gallery-section {
  margin-top: 24px;
  padding: 24px;
}

.profile-redesign .profile-gallery-heading h2 {
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.profile-redesign .profile-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.profile-redesign .profile-gallery-card {
  border-color: rgba(116, 95, 214, 0.25);
  background: rgba(8, 13, 29, 0.78);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-redesign .profile-gallery-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 47, 173, 0.58);
  background: rgba(255, 47, 173, 0.08);
}

.profile-redesign .profile-gallery-image {
  border-radius: 8px;
}

.profile-redesign .profile-gallery-more {
  border-radius: 8px;
}

.profile-redesign .confirm-card {
  border: 1px solid rgba(255, 47, 173, 0.32);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(12, 17, 36, 0.98), rgba(8, 11, 26, 0.98));
}

.profile-redesign .photo-viewer {
  z-index: 100001;
}

@media (max-width: 1180px) {
  .profile-redesign.has-nav-side .profile-main {
    width: min(100% - 300px, 980px);
    margin-left: 286px;
    margin-right: 14px;
  }

  .profile-redesign .profile-layout {
    grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 1024px) {
  .profile-redesign.has-nav-side .profile-main {
    width: min(100% - 28px, 820px);
    margin: 18px auto 70px;
  }

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

  .profile-redesign .profile-layout > div:first-child {
    justify-items: center;
  }

  .profile-redesign #displayName,
  .profile-redesign #username {
    text-align: center;
  }

  .profile-redesign .profile-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-redesign .profile-layout,
  .profile-redesign .admin-profile-actions,
  .profile-redesign .profile-gallery-section {
    padding: 16px;
  }

  .profile-redesign .profile-layout .big-avatar {
    width: min(210px, 76vw);
  }

  .profile-redesign .info-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-redesign .admin-profile-actions .nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .profile-redesign .admin-profile-actions .btn,
  .profile-redesign .admin-profile-actions button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .profile-redesign.has-nav-side .profile-main {
    width: min(100% - 20px, 420px);
    margin-top: 14px;
  }

  .profile-redesign .profile-gallery-grid {
    grid-template-columns: 1fr;
  }
}
