@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  color: white;
  cursor: default;
}

.card:hover,
.fake-profile-card:hover {
  backdrop-filter: blur(14px);
  background: rgba(223, 211, 211, 0.06);
  transform: scale(1.02);
  transition: 0.3s;
}

#click-text, #intro-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  cursor: pointer;
  user-select: none;
  z-index: 100;
  transition: opacity 0.5s ease;
}

#intro-text {
  display: none;
}

.hidden {
  display: none;
}

#bg-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4);
}

canvas#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;      /* zamiast 100% */
  height: 100vh;     /* zamiast 100% */
  z-index: 2;
  pointer-events: none;
}

.card {
  transition: transform 0.2s ease-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(20, 20, 20, 0.6);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  opacity: 0;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  perspective: 1000px;
  z-index: 10;
}

.card-inner {
  transition: transform 0.2s ease;
  transform-style: preserve-3d;
}


.card.visible {
  animation: cardEnter 0.6s ease forwards;
}

@keyframes cardEnter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9) rotateX(10deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotateX(0);
  }
}

.card.tilt {
  transform: translate(-50%, -50%) rotateX(var(--rotateX)) rotateY(var(--rotateY)) scale(1.02);
}

.card:hover {
  transform: translate(-50%, -50%) scale(1.01);
}

.card .pfp {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: none;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  cursor: pointer;
}

.pfp-wrapper .hover-popup {
  display: none !important;
}

.nick {
  text-align: center;
  font-size: 24px;
  margin: 15px 0;
  position: relative;
  cursor: pointer;
}

.bio {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.icon {
  position: relative;
  cursor: pointer;
}

.icon img {
  width: 32px;
  height: 32px;
}

.hover-popup {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.05);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  display: none;
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.icon:hover .hover-popup,
.nick:hover .hover-popup {
  display: block;
}

@keyframes slideIn {
  0% {
    transform: translateX(150%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  0% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(150%);
    opacity: 0;
  }
}

.notif {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateX(150%);
  pointer-events: none;
}


.volume {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
  transition: width 0.3s ease, padding 0.3s ease;
  overflow: hidden;
  width: 40px; /* Tylko ikona */
}

.volume:hover {
  width: 180px;
  padding: 8px 14px;
}

#volume-slider {
  appearance: none;
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #ffffff88, #ffffff11);
  border-radius: 2px;
  outline: none;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.volume:hover #volume-slider {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.volume:hover #sound-icon {
  margin-right: 12px;
}

#sound-icon {
  width: 20px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, margin-right 0.3s ease;
}

#sound-icon:hover {
  transform: scale(1.1);
}

/* Track */
#volume-slider::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
}

/* Thumb */
#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 4px #ffffffaa;
  transition: transform 0.2s ease;
  transform: translateY(-2px); /* 👈 KLUCZOWE */
}

#volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 0 4px #ffffffaa;
}

.volume:hover #volume-slider {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

#volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.2);
  transform: translateY(-2px); /* 👈 KLUCZOWE */
}

#volume-slider:hover::-webkit-slider-thumb,
#volume-slider:active::-webkit-slider-thumb {
  transform: scale(1.3);
}

.fake-profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  margin-top: 25px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  backdrop-filter: blur(6px);
}

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

.dc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.status-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #000;
  padding: 2px;
}

.user-info {
  flex-grow: 1;
}

.user-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.username {
  font-weight: 600;
  font-size: 18px;
}

.badges img {
  height: 20px;
  margin-right: 4px;
  vertical-align: middle;
}

.last-seen {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}

.subtag {
  font-size: 12px;
  color: #aaa;
  font-weight: 400;
  opacity: 0.8;
}

.animated-nick {
  position: relative;
  display: inline-block;
  font-weight: 800;
  font-size: 32px;
  background: linear-gradient(270deg, #ff0080, #7928ca, #007cf0, #00dfd8, #00ff87, #ffbf00, #ff0080);
  background-size: 1000% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s linear infinite, pulse 2s ease-in-out infinite;
  line-height: 1;
}

.animated-nick .particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  animation: floatParticle 3s infinite ease-in-out;
}

/* Rozrzucone wewnątrz napisu */
.animated-nick .particle:nth-child(2) { top: 10%; left: 20%; animation-delay: 0s; }
.animated-nick .particle:nth-child(3) { top: 60%; left: 40%; animation-delay: 0.4s; }
.animated-nick .particle:nth-child(4) { top: 30%; left: 60%; animation-delay: 0.8s; }
.animated-nick .particle:nth-child(5) { top: 50%; left: 80%; animation-delay: 1.2s; }
.animated-nick .particle:nth-child(6) { top: 20%; left: 35%; animation-delay: 1.6s; }


/* Animation itself */
@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px) scale(1.2);
  }
  70% {
    opacity: 1;
    transform: translateY(-5px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
  }
}

/* Gradient flow */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Subtelny puls */
@keyframes pulse {
  0%, 100% { transform: scale(1); text-shadow: 0 0 6px rgba(255, 255, 255, 0.2); }
  50% { transform: scale(1.05); text-shadow: 0 0 12px rgba(255, 255, 255, 0.4); }
}

/* RESPONSYWNOŚĆ – TELEFONY, TABLETY */
@media (max-width: 1024px) {

#bg-gif {
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4);
}

  .card {
    width: 90%;
    padding: 20px;
  }

  .nick {
    font-size: 20px;
  }

  .bio {
    font-size: 12px;
  }

  .icons {
    gap: 10px;
  }

  .icon img {
    width: 24px;
    height: 24px;
  }

  #click-text, #intro-text {
    font-size: 24px;
    text-align: center;
    padding: 0 10px;
  }

  .fake-profile-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 10px;
  }

  .user-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .username {
    font-size: 16px;
  }

  .animated-nick {
    font-size: 24px;
    text-align: center;
  }

  .notif {
    font-size: 12px;
    padding: 10px 16px;
    bottom: 10px;
    right: 10px;
  }

  .card .pfp {
    width: 80px;
    height: 80px;
  }

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

  .dc-avatar {
    width: 48px;
    height: 48px;
  }

  .status-icon {
    width: 14px;
    height: 14px;
  }

}

@media (max-width: 600px) {
  .animated-nick {
    font-size: 20px;
  }

  .card .pfp {
    width: 64px;
    height: 64px;
  }

  .icons {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .notif {
    font-size: 11px;
    padding: 8px 14px;
  }
}
