* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: url('images/penisg.gif') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: auto;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Noto Sans Mono', monospace;
  position: relative;
}

/* Animated Background Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(103, 137, 204, 0.1) 0%,
    rgba(88, 101, 242, 0.1) 25%,
    rgba(231, 191, 143, 0.1) 50%,
    rgba(103, 137, 204, 0.1) 75%,
    rgba(88, 101, 242, 0.1) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  cursor: pointer;
}

.click-text {
  color: white;
  font-size: 2em;
  animation: glow 0.5s ease-in-out infinite alternate;
  font-family: 'Sintony', sans-serif;
}

.fade-out {
  animation: fadeOut 1s forwards;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px white, 0 0 20px white, 0 0 30px white;
  }
  to {
    text-shadow: 0 0 20px white, 0 0 30px white, 0 0 40px white;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Profiles Wrapper - Container para múltiplos cards */
.profiles-wrapper {
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  /* position removido – agora centralizado via body */
  perspective: 1200px;
}

/* Ajuste para responsividade */
@media (max-width: 768px) {
  .profiles-wrapper {
    flex-direction: column !important;
    gap: 20px;
    padding: 10px;
  }

  .profile-container {
    width: 100%;
    max-width: 340px;
  }
}

/* Profile Container */
.profile-container {
  text-align: center;
  position: relative;
  background: rgba(0, 0, 0, 0.685);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(103, 137, 204, 0.37),
              0 4px 8px rgba(0, 0, 0, 0.6);
  width: 400px;
  min-height: 700px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: slideIn 0.8s ease-out;
  transition: transform 0.5s ease-out,
              box-shadow 0.5s ease-out,
              background 0.5s ease-out,
              border-color 0.5s ease-out;
  display: flex;
  flex-direction: column;
}

.profile-container:hover {
  transform: translateY(-15px) scale(1.02);
  background: rgba(0, 0, 0, 0.8);
  box-shadow: 0 16px 48px 0 rgba(103, 137, 204, 0.6),
              0 8px 16px rgba(0, 0, 0, 0.8),
              0 0 40px rgba(103, 137, 204, 0.4);
  border-color: rgba(103, 137, 204, 0.5);
  animation: slideInFadeHover 0.5s ease-out forwards, floatCard 6s ease-in-out infinite;
}

/* ===== Efeito 3D Tilt (estilo guns.lol) ===== */
.profile-container.is-tilting {
  /* JS controla o transform; desliga a animação flutuante para não brigar */
  animation: none !important;
  transition: transform 0.12s ease-out,
              box-shadow 0.5s ease-out,
              background 0.5s ease-out,
              border-color 0.5s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Quando o mouse sai, volta suave */
.profile-container.tilt-reset {
  transition: transform 0.5s ease-out,
              box-shadow 0.5s ease-out,
              background 0.5s ease-out,
              border-color 0.5s ease-out;
}

/* Brilho que segue o cursor */
.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.profile-container.is-tilting .tilt-glare {
  opacity: 1;
}
.tilt-glare::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%),
              rgba(255, 255, 255, var(--glare-opacity, 0.25)) 0%,
              rgba(255, 255, 255, 0) 60%);
  transform: translateZ(0);
}

@keyframes slideInFadeHover {
  0% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Avatar */
.avatar-wrapper {
  position: relative;
  display: inline-block;
  margin: 20px auto;
  filter: drop-shadow(0 0 20px rgba(103, 137, 204, 0.5));
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  background: linear-gradient(45deg, #6789cc, #5865f2, #e7bf8f, #6789cc);
  background-size: 300% 300%;
  animation: gradientRotate 4s ease infinite;
  z-index: -1;
  opacity: 0.7;
}

@keyframes gradientRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05) rotate(5deg);
  filter: brightness(1.1);
}

/* Status Indicator */
.status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.685);
  background-color: #747f8d;
  transition: all 0.3s ease;
}

.status-indicator.online {
  background-color: #43b581;
  box-shadow: 0 0 10px #43b581, 0 0 20px rgba(67, 181, 129, 0.5);
  animation: pulse-online 2s ease-in-out infinite;
}

.status-indicator.idle {
  background-color: #faa61a;
  box-shadow: 0 0 10px #faa61a, 0 0 20px rgba(250, 166, 26, 0.5);
}

.status-indicator.dnd {
  background-color: #f04747;
  box-shadow: 0 0 10px #f04747, 0 0 20px rgba(240, 71, 71, 0.5);
}

.status-indicator.offline {
  background-color: #747f8d;
}

@keyframes pulse-online {
  0%, 100% {
    box-shadow: 0 0 10px #43b581, 0 0 20px rgba(67, 181, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 20px #43b581, 0 0 30px rgba(67, 181, 129, 0.8);
  }
}

/* Profile Info */
.profile-info {
  margin: 10px;
}

.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wrapper h1 {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  font-family: 'Sintony', sans-serif;
  background: linear-gradient(to right, #6789cc 10%, #ffffff 50%);
  background-size: 200% auto;
  color: #fff;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textclip 1.5s linear infinite;
  display: inline-block;
  margin: 0;
}

@keyframes textclip {
  to {
    background-position: 200% center;
  }
}

/* Badges */
.badges-container {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  width: 22px;
  height: 22px;
  transition: transform 0.2s, filter 0.2s;
  position: relative;
  cursor: pointer;
  animation: badgeFadeIn 0.5s ease-out backwards;
}

.badge:nth-child(1) { animation-delay: 0.1s; }
.badge:nth-child(2) { animation-delay: 0.2s; }
.badge:nth-child(3) { animation-delay: 0.3s; }
.badge:nth-child(4) { animation-delay: 0.4s; }
.badge:nth-child(5) { animation-delay: 0.5s; }

@keyframes badgeFadeIn {
  from {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.badge:hover {
  transform: scale(1.3) rotate(10deg);
  filter: drop-shadow(0 0 8px rgba(103, 137, 204, 0.8));
}

.badge img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tooltip */
.badge .tooltip {
  visibility: hidden;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.badge:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Display Name */
.display-name {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 5px 0;
}

/* Custom Status */
.custom-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.status-emoji {
  font-size: 20px;
}

.status-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

/* Description/Bio */
.description-text {
  color: white;
  font-family: 'Noto Sans Mono', monospace;
  margin: 10px 0;
  font-size: 14px;
}

/* Activities Section */
.activities-section {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Spotify Card */
.spotify-card {
  background: rgba(30, 215, 96, 0.1);
  border: 1px solid rgba(30, 215, 96, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.spotify-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #1ed760;
  font-size: 14px;
  font-weight: bold;
}

.spotify-header i {
  font-size: 18px;
}

.spotify-content {
  display: flex;
  gap: 12px;
}

.spotify-album {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  flex-shrink: 0;
}

.spotify-info {
  flex: 1;
  min-width: 0;
}

.spotify-song {
  font-weight: bold;
  font-size: 14px;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotify-progress {
  margin-top: 8px;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: #1ed760;
  width: 0%;
  transition: width 1s linear;
}

.spotify-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

/* Activity Card (Games, VS Code, etc) */
.activity-card {
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
}

.activity-header {
  font-size: 14px;
  font-weight: bold;
  color: #5865f2;
  margin-bottom: 10px;
}

.activity-content {
  display: flex;
  gap: 12px;
}

.activity-image {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  flex-shrink: 0;
  object-fit: cover;
}

.activity-info {
  flex: 1;
  min-width: 0;
}

.activity-name {
  font-weight: bold;
  font-size: 14px;
  color: white;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-details,
.activity-state {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Social Icons */
.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

.social-icons li {
  display: inline;
}

.social-icons li a {
  color: white;
  text-decoration: none;
  font-size: 24px;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-icons li a:hover {
  transform: scale(1.2) translateY(-3px);
  color: #6789cc;
}

/* Line Separator */
.line {
  display: block;
  width: 155px;
  height: 2px;
  background-color: #fff;
  margin: 15px auto;
}

/* Visitor Counter */
.ip-display {
  margin-top: 15px;
}

.visitor-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(103, 137, 204, 0.2), rgba(88, 101, 242, 0.2));
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: counterGlow 3s ease-in-out infinite;
}

.visitor-counter:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(103, 137, 204, 0.5);
}

.visitor-counter i {
  font-size: 16px;
  animation: eyeBlink 4s ease-in-out infinite;
}

@keyframes counterGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(103, 137, 204, 0.3);
  }
  50% {
    box-shadow: 0 0 15px rgba(103, 137, 204, 0.6);
  }
}

@keyframes eyeBlink {
  0%, 90%, 100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.1);
  }
}

/* Sparkle Divs */
div[style*="position: absolute"] {
  pointer-events: none;
  z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .profile-container {
    max-width: 90%;
    padding: 15px;
  }

  .wrapper h1 {
    font-size: 28px;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  .status-indicator {
    width: 25px;
    height: 25px;
    border-width: 2px;
  }

  .click-text {
    font-size: 1.5em;
    padding: 0 20px;
  }

  .spotify-content,
  .activity-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .spotify-album,
  .activity-image {
    width: 80px;
    height: 80px;
  }
}

/* Loading Animation */
.loading {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}



.social-icons {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}



.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}



.profile-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



.wrapper {
  width: 100%;
  justify-content: center;
  text-align: center;
}



.ip-display {
  margin-top: auto;
  padding-top: 15px;
}



div[style*="position: absolute"] {
  pointer-events: none;
  z-index: 2147483647;
}



.profiles-wrapper {
  align-items: stretch !important;
}



.profile-info {
  flex-shrink: 0;
}

.activities-section {
  flex: 1;
  display: flex;
  justify-content: center;
}

.social-icons {
  margin-top: 20px;
}

.ip-display {
  margin-top: 0;
}



.profile-container {
  display: flex;
  flex-direction: column;
}



.social-icons {
  margin: 0;
  padding: 0;
  list-style: none;
}



.social-icons li a {
  display: flex;
  align-items: center;
  justify-content: center;
}
