﻿/**
 * frontend/css/profile.css
 * ─────────────────────────────────────────────────────────────
 * Styles für die öffentliche Profil-Seite (/:username)
 * ─────────────────────────────────────────────────────────────
 */

/* ── Hintergrund ── */

.profile-background {
  position:   fixed;
  inset:      0;
  z-index:    0;
  background: var(--color-bg);
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
}

.profile-background video {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;
}

/* ── Effekte-Container ── */

.effects-container {
  position:       fixed;
  inset:          0;
  z-index:        1;
  pointer-events: none;
  overflow:       hidden;
}

/* ── Hauptseite ── */

.profile-page {
  position:        relative;
  z-index:         2;
  min-height:      100vh;
  display:         flex;
  align-items:     flex-start;
  justify-content: center;
  padding:         var(--space-8) var(--space-4) var(--space-12);
}

/* ── Profil-Karte ── */

.profile-card {
  width:           100%;
  max-width:       480px;
  background:      rgba(8, 8, 16, 0.70);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border:          1px solid rgba(255, 255, 255, 0.10);
  border-radius:   28px;
  overflow:        hidden;
  position:        relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 0 0.5px rgba(255, 255, 255, 0.05);
}

/* Liquid-Glass-Glanzrand (wie Landing) */
.profile-card::before {
  content:        '';
  position:       absolute;
  inset:          0;
  border-radius:  inherit;
  padding:        1.4px;
  background:     linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.14) 22%, rgba(255,255,255,0) 42%, rgba(255,255,255,0) 62%, rgba(255,255,255,.14) 80%, rgba(255,255,255,.42) 100%);
  -webkit-mask:   linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index:        0;
}

.profile-card > * { position: relative; z-index: 1; }

/* ── Profil-Header ── */

.profile-header {
  padding:    var(--space-8) var(--space-6) var(--space-5);
  text-align: center;
}

.profile-avatar-wrap {
  margin-bottom: var(--space-4);
}

.profile-avatar {
  width:         100px;
  height:        100px;
  border-radius: 50%;
  object-fit:    cover;
  border:        2px solid rgba(255, 255, 255, 0.18);
  box-shadow:    0 0 0 5px rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.5);
  margin:        0 auto;
  display:       block;
}

.profile-display-name {
  font-family:    var(--font-display);
  font-style:     italic;
  font-size:      var(--text-3xl);
  font-weight:    var(--font-weight-normal);
  letter-spacing: -0.02em;
  color:          #ffffff;
  margin-bottom:  var(--space-1);
}

.profile-username {
  font-size:     var(--text-sm);
  color:         var(--color-gold);
  opacity:       0.8;
  margin-bottom: var(--space-3);
}

.profile-bio {
  font-size:  var(--text-sm);
  color:      var(--color-text-muted);
  line-height: 1.6;
  max-width:  340px;
  margin:     0 auto;
  white-space: pre-line;
}

/* ── Discord-Presence ── */

.discord-presence {
  margin:       0 var(--space-6) var(--space-5);
  padding:      10px 14px;
  border-radius: 14px;
  background:   rgba(255, 255, 255, 0.05);
  border:       1px solid rgba(255, 255, 255, 0.08);
  display:      flex;
  align-items:  center;
  gap:          11px;
}

.discord-presence.hidden { display: none; }

.dp-avatar { position: relative; width: 38px; height: 38px; flex-shrink: 0; }

.dp-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.dp-dot {
  position:      absolute;
  right:         -2px;
  bottom:        -2px;
  width:         13px;
  height:        13px;
  border-radius: 50%;
  border:        3px solid rgba(10, 10, 16, 0.9);
}

.dp-info { flex: 1; min-width: 0; text-align: left; }

.dp-name {
  font-size:     0.8rem;
  font-weight:   700;
  color:         #ffffff;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.dp-status { font-size: 0.68rem; color: var(--color-text-muted); }

.dp-logo { width: 18px; height: 18px; color: #5865F2; flex-shrink: 0; opacity: 0.9; }

/* ── Links ── */

.profile-links {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap:     var(--space-3);
}

.profile-link {
  display:         flex;
  align-items:     center;
  gap:             var(--space-3);
  padding:         var(--space-4) var(--space-5);
  background:      rgba(255,255,255,0.06);
  border:          1px solid rgba(255,255,255,0.09);
  border-radius:   var(--radius-xl);
  color:           #ffffff;
  text-decoration: none;
  font-weight:     var(--font-weight-semibold);
  font-size:       var(--text-sm);
  transition:      all var(--transition-normal);
  cursor:          pointer;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0) 100%);
}

.profile-link:hover {
  background:   rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.40);
  color:        var(--color-gold-hover);
  transform:    translateY(-2px);
  box-shadow:   0 8px 24px rgba(255, 255, 255, 0.18);
}

.profile-link:active {
  transform: translateY(0);
}

.profile-link-icon {
  font-size:   1.2rem;
  flex-shrink: 0;
  display:     flex;
  align-items: center;
  opacity:     0.85;
}

.profile-link-icon svg { width: 17px; height: 17px; display: block; }

.profile-link-title {
  flex:       1;
  text-align: center;
}

/* ── Link-Typen: Divider & Text-Block ── */

.profile-link-divider {
  height:     1px;
  background: rgba(255, 255, 255, 0.10);
  border:     none;
  margin:     var(--space-1) 0;
}

.profile-link-text {
  text-align:  center;
  font-size:   var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color:       var(--color-text-muted);
  padding:     var(--space-2) var(--space-5);
  letter-spacing: 0.02em;
}

/* ── Equipment ── */

.profile-equipment {
  padding: 0 var(--space-6) var(--space-6);
}

.equipment-divider {
  height:       1px;
  background:   rgba(255,255,255,0.06);
  margin-bottom: var(--space-5);
}

.equipment-heading {
  font-size:      var(--text-xs);
  font-weight:    var(--font-weight-semibold);
  color:          var(--color-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom:  var(--space-4);
}

.equipment-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap:                   var(--space-3);
}

.equipment-item {
  background:      rgba(255,255,255,0.04);
  border:          1px solid rgba(255,255,255,0.07);
  border-radius:   var(--radius-lg);
  padding:         var(--space-3);
  text-align:      center;
  text-decoration: none;
  color:           var(--color-text-muted);
  font-size:       var(--text-xs);
  transition:      all var(--transition-fast);
  display:         block;
}

.equipment-item:hover {
  background:   rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  color:        var(--color-text);
}

.equipment-img {
  width:      56px;
  height:     56px;
  object-fit: contain;
  margin:     0 auto var(--space-2);
  display:    block;
}

.equipment-no-img {
  font-size:     2rem;
  margin-bottom: var(--space-2);
  display:       block;
}

.equipment-name {
  font-size:   var(--text-xs);
  line-height: 1.3;
}

/* ── Click-to-enter Overlay ── */

.enter-overlay {
  position:        fixed;
  inset:           0;
  z-index:         200;
  display:         flex;
  align-items:     center;
  justify-content: center;
  background:      rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  cursor:          pointer;
  opacity:         1;
  transition:      opacity 0.5s ease;
}

.enter-overlay.leaving { opacity: 0; pointer-events: none; }
.enter-overlay.hidden  { display: none; }

.enter-inner { text-align: center; animation: enterPulse 2.4s ease-in-out infinite; }

.enter-avatar {
  width:           86px;
  height:          86px;
  border-radius:   22px;
  margin:          0 auto 18px;
  background:      rgba(255, 255, 255, 0.08);
  background-size: cover;
  background-position: center;
  border:          1px solid rgba(255, 255, 255, 0.18);
  box-shadow:      0 0 36px rgba(255, 255, 255, 0.22);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       2rem;
  color:           #ffffff;
  font-family:     var(--font-display);
  font-style:      italic;
}

/* Typewriter-Cursor (Bio) */
.tw-cursor {
  display:        inline-block;
  width:          2px;
  height:         1em;
  background:     currentColor;
  margin-left:    3px;
  vertical-align: -2px;
  animation:      twBlink 1s step-end infinite;
}

@keyframes twBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.enter-text {
  font-family:    var(--font-display);
  font-style:     italic;
  font-size:      clamp(1.6rem, 5vw, 2.3rem);
  letter-spacing: -0.02em;
  color:          #ffffff;
}

.enter-sub {
  margin-top:     10px;
  font-size:      var(--text-xs);
  font-weight:    600;
  color:          var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes enterPulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) { .enter-inner { animation: none; } }

/* ── Musik-Player ── */

.music-volume {
  width:        70px;
  accent-color: #ffffff;
  cursor:       pointer;
  flex-shrink:  0;
}

/* Player IN der Karte (player_position = card) */
.music-player.in-card {
  position:   static;
  margin:     0 var(--space-6) var(--space-5);
  width:      auto;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.05);
  border:     1px solid rgba(255, 255, 255, 0.08);
}

.music-player.in-card .mp-mid { max-width: none; flex: 1; }

.mp-cover {
  width:           38px;
  height:          38px;
  border-radius:   10px;
  background:      rgba(255, 255, 255, 0.08);
  border:          1px solid rgba(255, 255, 255, 0.1);
  display:         flex;
  align-items:     center;
  justify-content: center;
  color:           rgba(255, 255, 255, 0.75);
  flex-shrink:     0;
}

.mp-mid {
  display:        flex;
  flex-direction: column;
  gap:            4px;
  min-width:      140px;
  max-width:      190px;
}

.mp-title {
  font-size:     0.72rem;
  font-weight:   600;
  color:         #ffffff;
  white-space:   nowrap;
  overflow:      hidden;
  text-overflow: ellipsis;
}

.mp-sub {
  display:     flex;
  align-items: center;
  gap:         6px;
  font-size:   0.6rem;
  color:       var(--color-text-faint);
  font-variant-numeric: tabular-nums;
}

.mp-wave {
  display:     flex;
  align-items: center;
  gap:         2px;
  height:      14px;
  flex:        1;
  overflow:    hidden;
}

.mp-wave i {
  flex:          0 0 2.5px;
  border-radius: 2px;
  background:    rgba(255, 255, 255, 0.75);
  height:        30%;
  animation:     wavebar 0.9s ease-in-out infinite alternate;
}

.music-player.paused .mp-wave i {
  animation-play-state: paused;
  height: 22% !important;
}

@keyframes wavebar { from { height: 16%; } to { height: 96%; } }

@media (prefers-reduced-motion: reduce) {
  .mp-wave i { animation: none; height: 50% !important; }
}

.music-player {
  position:    fixed;
  bottom:      var(--space-5);
  right:       var(--space-5);
  z-index:     100;
  background:  rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(8px);
  border:      1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding:     var(--space-2) var(--space-5) var(--space-2) var(--space-4);
  display:     flex;
  align-items: center;
  gap:         var(--space-3);
  font-size:   var(--text-xs);
  color:       var(--color-text-muted);
  box-shadow:  var(--shadow-xl);
}

.music-btn {
  background:    var(--color-gold);
  color:         #ffffff;
  border:        none;
  border-radius: 50%;
  width:         30px;
  height:        30px;
  cursor:        pointer;
  font-size:     0.75rem;
  display:       flex;
  align-items:   center;
  justify-content: center;
  flex-shrink:   0;
  transition:    all var(--transition-fast);
}

.music-btn:hover {
  background: var(--color-gold-hover);
  transform:  scale(1.1);
}

/* ── Branding ── */

.cardly-branding {
  padding:         var(--space-3) var(--space-5);
  border-top:      1px solid rgba(255,255,255,0.05);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             var(--space-3);
}

.profile-meta {
  flex:        1;
  display:     flex;
  align-items: center;
  gap:         5px;
  font-size:   var(--text-xs);
  color:       var(--color-text-faint);
  min-height:  16px;
  cursor:      default;
}

.profile-meta svg { width: 13px; height: 13px; flex-shrink: 0; }

.profile-meta-right { justify-content: flex-end; }

.cardly-branding a {
  font-size:     var(--text-xs);
  color:         var(--color-text-faint);
  transition:    color var(--transition-fast);
  font-weight:   500;
  letter-spacing: .04em;
}

.cardly-branding a:hover {
  color: var(--color-gold);
}

/* ── Skeleton (Ladezustand) ── */

.skeleton {
  background:      linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface-3) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation:       skeleton-shimmer 1.4s infinite;
  border-radius:   var(--radius-md);
}

@keyframes skeleton-shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Partikel / Effekte ── */

.particle {
  position:       absolute;
  pointer-events: none;
  border-radius:  50%;
  animation:      particle-rise linear infinite;
}

@keyframes particle-rise {
  from { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.8; }
  95%  { opacity: 0.8; }
  to   { transform: translateY(-10px) rotate(720deg); opacity: 0; }
}

/* ── Location ── */

.profile-location {
  font-size:     var(--text-xs);
  color:         var(--color-text-faint);
  margin-bottom: var(--space-2);
}

.profile-joined {
  font-size:     var(--text-xs);
  color:         var(--color-text-faint);
  margin-top:    -6px;
  margin-bottom: var(--space-3);
}

/* ── Badges ── */

.profile-badges-area {
  display:         flex;
  flex-wrap:       wrap;
  justify-content: center;
  gap:             var(--space-1);
  margin-bottom:   var(--space-3);
  min-height:      0;
}

.profile-badge {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           32px;
  height:          32px;
  border-radius:   50%;
  border:          2px solid transparent;
  font-size:       1rem;
  cursor:          default;
  transition:      transform var(--transition-fast);
  position:        relative;
}

.profile-badge:hover .badge-icon-sm { transform: scale(1.18); }
.badge-icon-sm { transition: transform var(--transition-spring); }

/* ── Schwebender Badge-Tooltip (Hover) ── */

.profile-badge::after {
  content:        attr(data-name);
  position:       absolute;
  bottom:         calc(100% + 9px);
  left:           50%;
  transform:      translateX(-50%) translateY(5px) scale(.92);
  background:     rgba(10, 10, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border:         1px solid rgba(255, 255, 255, 0.16);
  color:          #ffffff;
  font-size:      0.68rem;
  font-weight:    600;
  letter-spacing: 0.03em;
  padding:        5px 11px;
  border-radius:  9999px;
  white-space:    nowrap;
  opacity:        0;
  pointer-events: none;
  transition:     opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index:        50;
  box-shadow:     0 8px 24px rgba(0, 0, 0, 0.5);
}

.profile-badge::before {
  content:        '';
  position:       absolute;
  bottom:         calc(100% + 5px);
  left:           50%;
  width:          8px;
  height:         8px;
  background:     rgba(10, 10, 14, 0.92);
  border-right:   1px solid rgba(255, 255, 255, 0.16);
  border-bottom:  1px solid rgba(255, 255, 255, 0.16);
  transform:      translateX(-50%) translateY(5px) rotate(45deg);
  opacity:        0;
  pointer-events: none;
  transition:     opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index:        49;
}

.profile-badge:hover::after  { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.profile-badge:hover::before { opacity: 1; transform: translateX(-50%) translateY(0) rotate(45deg); }

/* Tooltip-Rand in Seltenheits-Farbe */
.profile-badge.badge-rare:hover::after      { border-color: rgba(59, 130, 246, 0.55); }
.profile-badge.badge-epic:hover::after      { border-color: rgba(168, 85, 247, 0.6); }
.profile-badge.badge-legendary:hover::after { border-color: rgba(255, 255, 255, 0.55); box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 14px rgba(255,255,255,.25); }

.profile-badge.badge-common     { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.75); }
.profile-badge.badge-rare       { background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.4); color: #93c5fd; }
.profile-badge.badge-epic       { background: rgba(168,85,247,0.12); border-color: rgba(168,85,247,0.5); color: #d8b4fe; }
.profile-badge.badge-legendary  {
  background:   rgba(255,255,255,0.14);
  border-color: var(--color-gold);
  color:        #ffffff;
  box-shadow:   0 0 10px rgba(255,255,255,0.35);
  animation:    badge-pulse 2.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(255,255,255,0.25); }
  50%      { box-shadow: 0 0 16px rgba(255,255,255,0.55); }
}

.badge-icon-sm { font-size: 0.95rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.badge-icon-sm svg { width: 15px; height: 15px; display: block; }

@media (prefers-reduced-motion: reduce) {
  .profile-badge.badge-legendary { animation: none; }
}

/* ── Equipment-Kategorie ── */

.equipment-cat {
  font-size:   9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color:       var(--color-text-faint);
  margin-bottom: 2px;
}

/* ── Button-Stile (per CSS-Klasse auf #profile-links) ── */

/* Standard: filled */
#profile-links.btn-style-filled .profile-link {
  background:    var(--btn-color, rgba(255,255,255,0.05));
  border-color:  transparent;
  color:         var(--btn-text-color, #ffffff);
  border-radius: var(--btn-radius, 12px);
}

/* Outline */
#profile-links.btn-style-outline .profile-link {
  background:    transparent;
  border:        2px solid var(--btn-color, var(--color-gold));
  color:         var(--btn-color, var(--color-gold));
  border-radius: var(--btn-radius, 12px);
}

/* Minimal */
#profile-links.btn-style-minimal .profile-link {
  background:    transparent;
  border:        none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-radius: 0;
  color:         var(--btn-text-color, #ffffff);
}

/* Shadow */
#profile-links.btn-style-shadow .profile-link {
  background:    var(--btn-color, rgba(255,255,255,0.05));
  border-color:  transparent;
  color:         var(--btn-text-color, #ffffff);
  border-radius: var(--btn-radius, 12px);
  box-shadow:    0 8px 24px rgba(0,0,0,0.4);
}

/* Glass */
#profile-links.btn-style-glass .profile-link {
  background:      rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  border-color:    rgba(255,255,255,0.15);
  border-radius:   var(--btn-radius, 12px);
}

/* ── Glow-Effekte ── */

.profile-card.avatar-glow .profile-avatar {
  box-shadow: 0 0 0 4px rgba(255, 255, 255,0.15),
              0 0 20px 4px var(--avatar-glow-color, #ffffff);
}

.profile-card.username-glow .profile-display-name {
  text-shadow: 0 0 18px var(--username-glow-color, #ffffff),
               0 0 40px var(--username-glow-color, #ffffff);
}

#profile-links.link-glow .profile-link:hover {
  box-shadow:   0 0 20px 4px var(--link-glow-color, #ffffff);
  border-color: var(--link-glow-color, #ffffff);
}

/* ── Animierter Titel ── */

.animated-title {
  background:             linear-gradient(90deg, var(--color-gold), #ffffff 40%, var(--color-gold) 80%);
  background-size:        200% auto;
  background-clip:        text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:              title-shine 3s linear infinite;
}

@keyframes title-shine {
  to { background-position: 200% center; }
}

/* ── Eingangs-Animationen ── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes bounceIn {
  0%   { opacity: 0; transform: scale(0.3); }
  50%  { opacity: 1; transform: scale(1.08); }
  80%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.entrance-fade  { animation: fadeInUp    0.6s cubic-bezier(0.16,1,0.3,1) both; }
.entrance-slide { animation: fadeInDown  0.6s cubic-bezier(0.16,1,0.3,1) both; }
.entrance-scale { animation: scaleIn     0.55s cubic-bezier(0.16,1,0.3,1) both; }
.entrance-bounce { animation: bounceIn  0.7s cubic-bezier(0.16,1,0.3,1) both; }

/* ── Link-Animationen ── */

@keyframes linkFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.link-anim-stagger .profile-link {
  animation: linkFadeIn 0.4s ease both;
}
.link-anim-fade .profile-link {
  animation: linkFadeIn 0.5s ease both;
}
.link-anim-slide .profile-link {
  animation: slideLeft 0.4s ease both;
}

/* ── Layout-Varianten ── */

/* Wide: Karte breiter */
.profile-card.layout-wide {
  max-width: 600px;
}

/* Split: Avatar links, Inhalt rechts */
.profile-card.layout-split .profile-header {
  display:     flex;
  align-items: flex-start;
  gap:         var(--space-5);
  text-align:  left;
}
.profile-card.layout-split .profile-avatar-wrap {
  margin-bottom: 0;
  flex-shrink:   0;
}
.profile-card.layout-split .profile-avatar {
  width:  72px;
  height: 72px;
  margin: 0;
}

/* Grid: Links als 2er-Raster */
.profile-card.layout-grid .profile-links {
  display:               grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Responsive ── */

@media (max-width: 520px) {
  .profile-page {
    padding: var(--space-4) var(--space-3) var(--space-10);
  }

  .profile-display-name {
    font-size: var(--text-xl);
  }

  .profile-avatar {
    width:  72px;
    height: 72px;
  }

  .music-player {
    bottom: var(--space-3);
    right:  var(--space-3);
    padding: var(--space-2) var(--space-3);
  }
}


