﻿

:root {
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-gothic: 'UnifrakturMaguntia', 'Grenze Gotisch', cursive, serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-card: rgba(0, 0, 0, 0.16);
  --bg-card-border: rgba(255, 255, 255, 0.22);
  --bg-card-glow: rgba(255, 255, 255, 0.02);
  
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.38);
  
  --color-green: #238636;
  --color-green-hover: #2ea043;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: #070709;
  color: var(--text-main);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  position: relative;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.85); 
  z-index: 1;
  pointer-events: none;
}

.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.05) brightness(0.5);
  z-index: 0;
}

.dot-overlay {
  display: none !important;
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: radial-gradient(
    circle at center,
    transparent 60%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

.enter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.enter-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.enter-content {
  text-align: center;
}

.enter-badge {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.45);
  animation: enterPulse 2s infinite ease-in-out;
  padding: 10px 20px;
}

@keyframes enterPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.85);
  }
}

.top-controls {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 100;
}

.audio-controller {
  background: rgba(20, 20, 24, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 7px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  user-select: none;
}

.audio-controller:hover,
.audio-controller:focus-within {
  background: rgba(26, 26, 32, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.audio-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  outline: none;
}

.audio-btn:hover {
  color: #fff;
}

.speaker-icon {
  width: 19px;
  height: 19px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.audio-controller:hover .speaker-icon {
  color: #ffffff;
}

.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.audio-waves .bar {
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transform-origin: bottom;
  animation: waveAnim 1.2s ease-in-out infinite alternate;
}

.audio-waves .bar:nth-child(1) { animation-delay: 0.1s; }
.audio-waves .bar:nth-child(2) { animation-delay: 0.3s; }
.audio-waves .bar:nth-child(3) { animation-delay: 0.5s; }

.audio-controller.muted .audio-waves .bar,
.audio-btn.muted .audio-waves .bar {
  animation: none;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes waveAnim {
  0% { height: 20%; }
  50% { height: 100%; }
  100% { height: 40%; }
}

.volume-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-4px);
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.3s ease;
  white-space: nowrap;
}

.audio-controller:hover .volume-slider-wrap,
.audio-controller:focus-within .volume-slider-wrap {
  max-width: 145px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  margin-left: 2px;
}

.volume-range {
  -webkit-appearance: none;
  appearance: none;
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}

.volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease;
}

.volume-range::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-range::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  transition: transform 0.15s ease;
}

.volume-range::-moz-range-thumb:hover {
  transform: scale(1.3);
}

.volume-value {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 27px;
}

.profile-container {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  perspective: 1200px;
}

.glass-card {
  width: 100%;
  max-width: 720px; 
  background: var(--bg-card);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid var(--bg-card-border);
  border-radius: 32px;
  padding: 34px 40px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-shine {
  display: none;
}

.card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.profile-header {
  display: flex;
  align-items: flex-start; 
  gap: 24px;
  margin-bottom: 22px;
}

.avatar-container {
  position: relative;
  width: 96px;       
  height: 96px;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55); 
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
  image-rendering: auto;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.avatar-container:hover .avatar-img {
  transform: scale(1.03);
  border-color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.avatar-status-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3.5px solid #070709;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.avatar-status-dot.online { background-color: #23a55a; }
.avatar-status-dot.idle { background-color: #f0b232; }
.avatar-status-dot.dnd { background-color: #f23f43; }
.avatar-status-dot.offline { background-color: #80848e; }

.user-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 14px; 
}

.username-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.username {
  font-family: var(--font-gothic);
  font-size: 2.35rem; 
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: #ffffff;
  
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.username:active {
  transform: scale(0.96);
}

.badges {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.badge-img {
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.badge:hover .badge-img {
  transform: scale(1.15);
  filter: brightness(1.15);
}

.badge-diamond {
  width: 21px;
  height: 20px;
}

.badge-diamond-wrap {
  position: relative;
  top: 2px;
}

.badge-verified {
  width: 20px;
  height: 20px;
}

.tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tooltip-wrap::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.tooltip-wrap::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: rgba(14, 14, 18, 0.96) transparent transparent transparent;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1000;
}

.tooltip-wrap:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-wrap:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.discord-presence {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 3px;
  margin-bottom: 2px;
}

.discord-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discord-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #23a55a;
  box-shadow: 0 0 8px rgba(35, 165, 90, 0.7);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.discord-status-dot.online { background-color: #23a55a; box-shadow: 0 0 8px rgba(35, 165, 90, 0.7); }
.discord-status-dot.idle { background-color: #f0b232; box-shadow: 0 0 8px rgba(240, 178, 50, 0.7); }
.discord-status-dot.dnd { background-color: #f23f43; box-shadow: 0 0 8px rgba(242, 63, 67, 0.7); }
.discord-status-dot.offline { background-color: #80848e; box-shadow: none; }

.discord-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 0.84rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
  cursor: pointer;
}

.discord-tag-badge:hover {
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.35);
}

.discord-icon {
  color: #5865F2;
  font-size: 0.88rem;
}

.discord-status-label {
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  text-transform: capitalize;
}

.discord-activity-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-primary);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.2px;
}

.activity-icon-wrap {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  display: inline-flex;
}

.activity-text {
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

.joined-date {
  font-family: var(--font-primary);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.widget-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 12px 0 24px 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.roblox-widget {
  align-items: center;
  margin: 10px 0 18px 0;
}

.roblox-widget:hover {
  transform: translateY(-1px);
}

.widget-avatar-box {
  position: relative;
  width: 86px;
  height: 104px;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.widget-avatar-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  display: block;
  pointer-events: auto;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  cursor: grab;
}

.widget-avatar-3d:active {
  cursor: grabbing;
}

.widget-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.widget-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.widget-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.widget-action {
  margin-top: 4px;
}

.btn-profile {
  background: var(--color-green);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(35, 134, 54, 0.4);
}

.btn-profile:hover {
  background: var(--color-green-hover);
  transform: scale(1.04);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.social-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0 18px 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  cursor: pointer;
  text-decoration: none;
}

.social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 0 9px rgba(255, 255, 255, 0.38)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}

.social-icon-fallback {
  display: none;
  font-size: 2rem;
  color: #5865f2;
  filter: drop-shadow(0 0 9px rgba(88, 101, 242, 0.55));
}

.social-btn:hover .social-icon-img {
  transform: scale(1.12);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.48)) drop-shadow(0 5px 12px rgba(0, 0, 0, 0.75));
}

.social-btn:hover .social-icon-fallback {
  transform: scale(1.12);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease;
  filter: drop-shadow(0 0 12px rgba(88, 101, 242, 0.7));
}

.profile-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  user-select: none;
}

.views-counter,
.location-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  will-change: transform;
}

.views-counter:hover,
.location-badge:hover {
  color: #ffffff;
  transform: scale(1.04);
}

.eye-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              color 0.3s ease;
}

.views-counter:hover .footer-icon {
  transform: scale(1.12);
  opacity: 1;
  color: #ffffff;
  filter: none;
}

.views-number {
  font-family: var(--font-mono);
  font-weight: 500;
  transition: color 0.3s ease;
}

#sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

@media (max-width: 580px) {
  .profile-container {
    padding: 16px;
  }
  
  .glass-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .profile-header {
    gap: 16px;
  }

  .avatar-container {
    width: 68px;
    height: 68px;
  }

  .username {
    font-size: 1.45rem;
  }

  .wing {
    width: 24px;
    height: 16px;
  }

  .socials-cluster {
    gap: 14px;
  }

  .widget-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }
}

