/* ==============================
   PROFILE BANNER + BASIC INFO
============================== */

.profile-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.profile-badge-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.btn-view-full {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255,105,180,0.35);
  color: #ff69b4;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.btn-view-full:hover {
  background: rgba(255,105,180,0.08);
  border-color: rgba(255,105,180,0.6);
  color: #fff;
}
.profile-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #000;
  margin-bottom: -60px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.banner-img.banner-blurred {
  filter: blur(3px) brightness(0.8);
}

.profile-container {
  max-width: 800px;
  margin: 0 auto;       /* ✅ remove top offset */
  background: #111;
  color: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}


.profile-header {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
  position: relative;
  z-index: 2;
  margin-top: -40px;
}

.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid rgba(255, 105, 180, 0.6);
}

/* Custom ring wrapper overrides the default border */
.profile-pic-ring .profile-pic {
  border: none;
  margin-right: 0;
}
.profile-pic-ring {
  margin-right: 20px;
}

.profile-pic.default-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 3em;
  border: 3px solid rgba(255, 105, 180, 0.6);
}

.profile-info h2 {
  margin: 0;
  font-size: 1.8em;
  text-shadow: 0 0 6px rgba(255, 105, 180, 0.4);
}



/* ==============================
   3‑COLUMN PROFILE LAYOUT
============================== */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  gap: 25px;
  margin: 40px auto;
  max-width: 1400px;
}

/* ==============================
   PROFILE STATS + SECTIONS
============================== */
.profile-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

.stat-box {
  text-align: center;
  background: #1c1c1c;
  padding: 15px;
  border-radius: 10px;
  flex: 1;
  margin: 5px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-box,
.right-box {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 0 6px rgba(255,105,180,0.08);
}

.left-box h3,
.right-box h3 {
  color: #ff69b4;
  margin-bottom: 10px;
}

.right-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.right-box li {
  margin: 6px 0;
  color: #ccc;
  transition: 0.2s;
}

.right-box li:hover {
  color: #fff;
  text-shadow: 0 0 8px #ff69b4;
  cursor: pointer;
}



/* ==============================
   RECENTLY PLAYED (CLICKABLE)
============================== */

.recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-link {
  display: block;
  text-decoration: none;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px;
  border-radius: 8px;
  transition: 0.2s ease;
}

.recent-item.is-clickable {
  cursor: pointer;
}

.recent-item.is-clickable:hover {
  background: rgba(255,105,180,0.12);
  box-shadow: 0 0 10px rgba(255,105,180,0.3);
}

.recent-item.is-disabled {
  opacity: 0.6;
  cursor: default;
}

.recent-text strong {
  color: white;
}

.recent-text small {
  color: #ccc;
}



/* ==============================
   RECENTLY PLAYED TOOLTIP
============================== */

.recent-text {
  position: relative;
}

.recent-tooltip {
  display: block;
  margin-top: 2px;
  font-size: 0.65rem;        /* ✅ very small */
  color: #888;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Show tooltip only on hover of disabled item */
.recent-item.is-disabled:hover .recent-tooltip {
  opacity: 1;
}

/* Mobile */
@media (max-width: 992px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .left-column,
  .right-column {
    order: 2;
  }
  .middle-column {
    order: 1;
  }
}



/* ==============================
   RATING SLIDER
============================== */
.rating-box {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
  margin-top: 30px;
  text-align: center;
}

.rating-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-value {
  margin-top: 10px;
  font-size: 1.3rem;
  color: #ff69b4;
  font-weight: bold;
  text-shadow: 0 0 6px #ff00ff;
}

/* ==============================
   BADGES GRID
============================== */
.badges-section {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
}

.badges-section h3 {
  color: #ff69b4;
  margin-bottom: 15px;
  text-shadow: 0 0 8px #ff00ff;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 15px;
}

.badge-item {
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.8rem;
  text-align: center;
  box-shadow: 0 0 8px rgba(255,105,180,0.3);
  transition: 0.3s;
}

.badge-item:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255,105,180,0.7);
}



/* ==============================
   ACTIVITY FEED
============================== */
.activity-feed {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
}

.activity-feed h3 {
  margin-bottom: 15px;
  color: #ff69b4;
  text-shadow: 0 0 6px #ff00ff;
}

.activity-item {
  padding: 12px 0;
  border-bottom: 1px solid #333;
  font-size: 1rem;
}

.activity-item:last-child {
  border-bottom: none;
}



/* ==============================
   XP BAR (PROFILE)
============================== */
.xp-section {
  background: #111;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 16px;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
}

.xp-bar {
  width: 100%;
  height: 8px;
  background: #222;
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0;
}

.xp-fill {
  height: 100%;
  width: var(--xp-progress, 0%);
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
  box-shadow: 0 0 10px #ff00ff;
  border-radius: 10px;
  transition: width 0.6s ease;
}

.xp-text {
  color: #ff69b4;
  text-shadow: 0 0 6px #ff00ff;
  font-size: 0.85rem;
  margin-top: 2px;
}



/* ==============================
   PLAYLIST SHOWCASE
============================== */
.playlist-showcase {
  background: #111;
  padding: 20px;
  border-radius: 12px;
  margin-top: 30px;
  color: #fff;
  box-shadow: 0 0 12px rgba(255,105,180,0.2);
}

.playlist-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.playlist-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 0 8px rgba(255,105,180,0.3);
}

.playlist-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,105,180,0.7);
}

.playlist-card img {
  width: 100%;
  border-radius: 10px;
}

.playlist-card p {
  margin-top: 8px;
  color: #ff69b4;
  font-weight: 600;
}



/* ==============================
   NOW PLAYING
============================== */
.now-playing {
  text-align: center;
}

.now-img,
.now-playing-img {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
  transition: opacity 0.4s ease;
}

.now-title,
.now-playing-title {
  color: #ff69b4;
  font-weight: bold;
  margin-top: 10px;
}

.now-artist,
.now-playing-artist {
  color: #ccc;
  font-size: 0.9rem;
}

.np-progress-container {
  height: 6px;
  background: #333;
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.np-progress-bar {
  height: 100%;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, #ff69b4, #ff00ff);
  border-radius: 5px;
  transition: width 0.15s linear;
}



/* ==============================
   FRIENDS LIST
============================== */
.friends-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.friends-list li {
  padding: 8px 0;
  border-bottom: 1px solid #333;
  color: #ccc;
  transition: 0.3s;
}

.friends-list li:hover {
  color: #fff;
  text-shadow: 0 0 10px #ff69b4;
}

/* ==============================
   PROFILE LEFT COLUMN UX IMPROVEMENTS
============================== */

.left-box a {
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--color-accent);
}

.left-box p {
  color: var(--color-text-dim);
}

/* ─── Stats Box Grid ─────────────────────────── */
.stats-box-title i {
  font-size: 0.85em;
  opacity: 0.7;
  margin-right: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 6px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 4px 5px;
  background: rgba(255, 105, 180, 0.07);
  border: 1px solid rgba(255, 105, 180, 0.14);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  cursor: default;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

a.stat-card {
  cursor: pointer;
}

a.stat-card:hover {
  background: rgba(255, 105, 180, 0.15);
  border-color: rgba(255, 105, 180, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.stat-card__icon {
  font-size: 0.75rem;
  color: #d9608a;
  opacity: 0.7;
}

.stat-card__value {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-card__label {
  font-size: 0.58rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* Inline followers/following pills (under bio) */
.pf-inline-follow-stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pf-inline-follow-stats .stat-card {
  flex-direction: row;
  align-items: center;
  padding: 5px 14px;
  gap: 6px;
  border-radius: 20px;
  min-width: 0;
}
.pf-inline-follow-stats .stat-card__icon {
  font-size: 0.65rem;
}
.pf-inline-follow-stats .stat-card__value {
  font-size: 0.9rem;
}
.pf-inline-follow-stats .stat-card__label {
  font-size: 0.6rem;
  text-shadow: 0 0 6px rgba(255, 105, 180, 0.4);
}
.pf-inline-follow-stats .stat-card__value {
  text-shadow: 0 0 6px rgba(255, 105, 180, 0.4);
}



/* ==============================
   PROFILE HEADER ACTIONS (FINAL, DIVIDER-ALIGNED)
============================== */

.profile-header {
  position: relative;        /* anchor */
  display: flex;
  align-items: center;
}

/* Edit button container */
.profile-actions {
  position: absolute;
  right: 8px;

  /* ✅ anchor to divider, not banner top */
  bottom: 12px;              /* THIS is the key value */
}

/* Edit Profile Button */
.edit-profile-btn {
  padding: 10px 18px;
  font-size: 0.95rem;
  white-space: nowrap;

  background: transparent;
  color: #ff69b4;
  border: 1px solid #ff69b4;

  transition: 0.25s ease;
}

.edit-profile-btn:hover {
  background: #ff69b4;
  color: #000;
  box-shadow: 0 0 12px rgba(255,105,180,0.7);
}



/* ==============================
   EDIT PROFILE PAGE (THEMED)
============================== */

.edit-profile-container {
  max-width: 600px;
  margin: 70px auto;
  padding: 20px;
}

.edit-profile-card {
  background: #111;
  padding: 35px;
  border-radius: 16px;
  border: 1px solid rgba(255,105,180,0.35);
  box-shadow:
    0 0 25px rgba(255,105,180,0.35),
    inset 0 0 20px rgba(255,0,255,0.12);
}

.edit-profile-title {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 30px;
  color: #ff69b4;
  text-shadow: 0 0 10px #ff00ff;
}

/* ================= USER TAB ================= */

.user-profile-container {
  position: relative;
  display: flex;
  align-items: center;
}

/* Outer pill */
.user-profile {
  position: relative;
  border-radius: 999px;
  background: rgba(255, 105, 180, 0.08);
  overflow: hidden;
  transition: all 0.25s ease;
}

/* Link inside pill */
.user-profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  color: #ff69b4;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

/* Glow + lift */
.user-profile:hover {
  box-shadow:
    0 0 10px rgba(255, 105, 180, 0.6),
    0 0 25px rgba(139, 0, 255, 0.4);
  transform: translateY(-1px) scale(1.04);
}

/* Light sweep effect */
.user-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 105, 180, 0.35),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

.user-profile:hover::before {
  transform: translateX(100%);
}

.user-profile-pic {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.user-username {
  white-space: nowrap;
}

/* ================= DROPDOWN ================= */

.logout-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;

  background: #111;
  border-radius: 10px;
  padding: 6px 0;
  min-width: 150px;

  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  z-index: 9999;

  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-profile-container:hover .logout-dropdown,
.logout-dropdown:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-profile-container::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 10px;
}

.logout-link {
  display: block;
  padding: 12px 18px;
  font-size: 0.95rem;
  color: #ff69b4;
  text-decoration: none;
  font-weight: 500;
}

.logout-link:hover {
  background: rgba(255, 105, 180, 0.1);
}

.top-section {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  opacity: 1 !important;
}

/* ================= FIX USER DROPDOWN CLIPPING ================= */

/* Allow dropdowns to escape header containers */
.top-section,
.right-icons,
.icon-box,
.icon-box-container {
  overflow: visible !important;
}

.logout-dropdown {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}

.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}
