/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg-color: #0b0b0c;
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #737373;
  --glass-bg: rgba(15, 15, 17, 0.01);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.6);
  --glow-color: rgba(255, 255, 255, 0.15);
  --accent-color: #ffffff;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

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

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  backdrop-filter: blur(1px);
  /* extremely subtle blur for premium feel */
}

/* Enter Screen Overlay */
.enter-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  /* Solid dark background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.5s ease-out, visibility 0.5s;
}

.enter-text {
  font-size: 1.2rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  animation: pulse-text 2s ease-in-out infinite;
  user-select: none;
}

@keyframes pulse-text {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}


/* Main Layout Container */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  padding: 20px;
  z-index: 2;
  text-align: center;
}

/* Profile Name & Subtitle */
.profile-header {
  margin-bottom: 25px;
  animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-name {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.25),
    0 0 40px rgba(255, 255, 255, 0.1);
  margin-bottom: 4px;
}

.profile-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  opacity: 0.9;
}

/* Glassmorphic Discord Status Card */
.discord-card {
  width: max-content;
  max-width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: left;
  animation: scaleUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.05);
}

.discord-card:active {
  transform: translateY(0) scale(0.98);
}

/* Avatar with Idle Status Indicator */
.discord-avatar-wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.discord-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Discord Status Indicator */
.discord-status-status {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #0b0b0c;
  /* Matches wrapper background */
  border: 2.5px solid #0b0b0c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.discord-status-status.online {
  background-color: #23a55a;
}

.discord-status-status.idle {
  background-color: #f0b232;
}

.discord-status-status.dnd {
  background-color: #f23f43;
}

.discord-status-status.offline {
  background-color: #80848e;
}

.discord-status-status.idle svg {
  width: 10px;
  height: 10px;
  color: #0b0b0c;
  /* cutout effect */
}

.discord-status-status.dnd svg {
  width: 10px;
  height: 10px;
  color: #0b0b0c;
  /* cutout effect */
}

.discord-status-status.offline svg {
  width: 8px;
  height: 8px;
  color: #0b0b0c;
  /* cutout effect */
}

/* Discord Metadata and Badges */
.discord-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

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

.discord-username {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.discord-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Aura Badges / Tags */
.aura-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--aura-bg);
  border: 1px solid var(--aura-border);
  color: var(--aura-text);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

.aura-icon {
  width: 10px;
  height: 10px;
  color: #c084fc;
}

/* Badges styling */
.discord-badge-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.9;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.discord-badge-icon:hover {
  opacity: 1;
  transform: scale(1.18);
}

.discord-status-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

/* Social & Link Buttons Grid */
.links-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 5px;
}

.link-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 51px;
  height: 51px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  outline: none;
}

.link-logo {
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: filter 0.3s ease, transform 0.3s ease;
}

.solana-logo {
  width: 32px;
  height: 33px;
}

.spotify-logo {
  width: 31px;
  height: 31px;
}

/* Solana Button Speficic Hover */
.sol-btn:hover .solana-logo {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(153, 69, 255, 0.6)) drop-shadow(0 0 20px rgba(20, 241, 149, 0.4));
}

.sol-btn:active .solana-logo {
  transform: scale(0.95);
}

/* Spotify Button Specific Hover */
.spotify-btn:hover .spotify-logo {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px rgba(30, 215, 96, 0.7));
}

.spotify-btn:active .spotify-logo {
  transform: scale(0.95);
}

/* View Counter (Bottom Left) */
.footer-views {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 5;
  animation: fadeInLeft 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.view-eye-icon {
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
}

.toast {
  background: rgba(15, 25, 15, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(46, 213, 115, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(46, 213, 115, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframe Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Portrait Optimization (Main Target) */
@media (max-width: 480px) {
  .profile-container {
    max-width: 90%;
    padding: 15px;
  }

  .profile-name {
    font-size: 2.3rem;
  }

  .profile-subtitle {
    font-size: 1rem;
  }

  .discord-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .discord-avatar-wrapper {
    width: 52px;
    height: 52px;
  }

  .discord-username {
    font-size: 1.05rem;
  }

  .discord-status-text {
    font-size: 0.82rem;
  }

  .link-btn {
    width: 40px;
    height: 40px;
  }

  .solana-logo {
    width: 27px;
    height: 30px;
  }

  .spotify-logo {
    width: 26px;
    height: 26px;
  }
}

/* Discord Live Activity Styles */
.discord-activity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.discord-activity-album {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.discord-activity-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  justify-content: center;
}

.discord-activity-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.discord-activity-subtitle {
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spotify-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 2.2px;
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex-shrink: 0;
  padding-bottom: 2px;
}

.spotify-equalizer-bar {
  width: 2px;
  height: 100%;
  background-color: #1ed760;
  border-radius: 1px;
  animation: bounceEqualizer 0.7s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.spotify-equalizer-bar:nth-child(2) {
  animation-delay: 0.2s;
  animation-duration: 0.5s;
}

.spotify-equalizer-bar:nth-child(3) {
  animation-delay: 0.4s;
  animation-duration: 0.9s;
}

@keyframes bounceEqualizer {
  0% {
    transform: scaleY(0.2);
  }

  100% {
    transform: scaleY(1);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}