:root {
  --blue: #5865f2;
  --green: #57f287;
  --yellow: #fee75c;
  --fuchsia: #eb459e;
  --red: #ed4245;
  --bg-overlay-1: rgba(0, 0, 0, 0.25);
  --bg-overlay-2: rgba(0, 0, 0, 0.45);
  --bg-dark: #202225;
  --text-normal: #dcddde;
  --text-muted: #a3a6aa;
  --interactive: #b9bbbe;
  --interactive-hover: #dcddde;
  --status-green: #3ba55c;
  --card-bg: rgba(32, 34, 37, 0.7);
}

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

body {
  font-family: 'Whitney', sans-serif;
  background-color: black;
  color: white;
  overflow: hidden;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

@import url('https://fonts.googleapis.com/css2?family=GG+Sans:wght@400;600&display=swap');

.discord-clan-badge {
  background-color: #3b3d41;
  color: #fff;
  display: none;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  font-family: 'GG Sans', 'Segoe UI', sans-serif;
  line-height: 1;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 4px;
}

.discord-clan-badge img {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.discord-clan-badge span {
  white-space: nowrap;
}

a {
  color: white;
  text-decoration: none;
}

/* Background Video */
.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.253);
}

/* Audio Controls */
.mute-button {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  z-index: 100;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: none;
}

.mute-button:hover {
  background-color: rgba(32, 34, 37, 0.9);
  transform: scale(1.1);
}

.mute-icon {
  width: 20px;
  height: 20px;
  color: white;
}

.volume-control {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  background-color: rgba(32, 34, 37, 0.7);
  padding: 10px;
  border-radius: 20px;
  width: 150px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: none;
}

.volume-slider {
  width: 100%;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--blue);
  cursor: pointer;
}

/* Main Card Container - For tilt effect */
.card-container {
  background-color: rgba(32, 34, 37, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 800px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}


#tilt-card {
  position: relative;
  overflow: hidden;
}

.tilt-background-gif {
  position: absolute;
  inset: 0;
  background-image: url('./static/images/sparkle_white.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
}


.content-container {
  position: relative;
  z-index: 1;
}

/* Profile Header */
.profile-header {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(40px);
}

.avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.avatar-decoration {
  width: 140px;
  height: 140px;
  background: conic-gradient(#ff7b00, #ff9a00, #ffb700, #ffd400, #fff200, #e7ff00, #c9ff00, #aaff00, #8cff00, #6eff00, #51ff00, #33ff00, #15ff00, #00ff0d, #00ff2b, #00ff49, #00ff67, #00ff84, #00ffa2, #00ffc0, #00ffdd, #00fffa, #00e7ff, #00caff, #00adff, #008fff, #0072ff, #0055ff, #0038ff, #001aff, #0d00ff, #2a00ff, #4800ff, #6500ff, #8300ff, #a000ff, #be00ff, #db00ff, #f900ff, #ff00db, #ff00be, #ff00a0, #ff0083, #ff0065, #ff0048, #ff002a, #ff000d);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.avatar-inner {
  width: 130px;
  height: 130px;
  background-color: black;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.status-indicator {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--status-green);
  border-radius: 50%;
  bottom: 8px;
  right: 8px;
  border: 4px solid black;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.username-container {
  position: absolute;
  bottom: -25px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 5px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateZ(20px);
}

.username {
  font-weight: 700;
  font-size: 20px;
}

.nickname {
  color: var(--text-muted);
  font-size: 16px;
}

/* Cards Container */
.cards-container {
  display: flex;
  width: 100%;
  gap: 20px;
  margin-top: 10px;
  transform-style: preserve-3d;
  transform: translateZ(30px);
  margin-bottom: 75px;
  padding: 0 15px; /*espace (15)*/
}

.card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 20px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* User Card */
.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.small-avatar-container {
  position: relative;
}

.small-avatar {
  width: 48px;
  height: 48px;
  top: 0%;
  left: 0%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.small-decoration {
  top: -10%;
  left: -14%;
  position: absolute;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.small-status-indicator {
  position: absolute;
  width: 14px;
  height: 14px;
  background-color: var(--status-green);
  border-radius: 50%;
  bottom: 0;
  right: 0;
  border: 2px solid var(--card-bg);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

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

.badge-container {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
  column-gap: 8px;
  width: 100%;
}

.badge {
  height: 24px;
  flex-shrink: 0;
}

.user-name {
  font-weight: 600;
  font-size: 16px;
}

/* Server Card */
.server-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.server-logo {
  border-radius: 8px;
  padding: 2px;
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo-text {
  background-color: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
}

.server-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.server-name {
  font-weight: 600;
  font-size: 16px;
}

.server-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 4px;
}

.online-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-green);
  border-radius: 50%;
}

/* Car Container */
.car-container {
  width: 100%;
  position: relative;
  margin-top: 50px;
  transform-style: preserve-3d;
  transform: translateZ(20px);
}

.car-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.view-counter {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 20px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transform: translateZ(5px);
}

.eye-icon {
  width: 16px;
  height: 16px;
}

.social-links {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  gap: 12px;
  transform: translateZ(5px);
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(32, 34, 37, 0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.social-link:hover {
  background-color: var(--blue);
  transform: translateY(-3px);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* Media Queries */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column;
  }
  
  .content-container {
    padding: 20px 30px 30px ;
  }
  
  .avatar-decoration {
    width: 120px;
    height: 120px;
  }
  
  .avatar-inner {
    width: 110px;
    height: 110px;
  }
  
  .avatar-img {
    width: 100px;
    height: 100px;
  }
  
  .card-container {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .avatar-decoration {
    width: 100px;
    height: 100px;
  }
  
  .avatar-inner {
    width: 90px;
    height: 90px;
  }
  
  .avatar-img {
    width: 80px;
    height: 80px;
  }
  
  .status-indicator {
    width: 18px;
    height: 18px;
    bottom: 6px;
    right: 6px;
  }
  
  .username-container {
    padding: 4px 15px;
  }
  
  .username {
    font-size: 16px;
  }
  
  .nickname {
    font-size: 14px;
  }
  
  .car-image {
    height: 180px;
  }
  
  .volume-control {
    width: 100px;
  }
}