/* ==========================================================================
   V3RSA — Official Link-in-Bio Stylesheet
   Modern, dark electronic-music aesthetic with glassmorphism & subtle glows.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (THEME CONFIGURATION)
   Easily customize brand colors, surfaces, and typography here.
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-base: #08090d;
  --bg-surface: rgba(255, 255, 255, 0.035);
  --bg-surface-hover: rgba(255, 255, 255, 0.075);
  --bg-surface-active: rgba(255, 255, 255, 0.11);
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.22);
  
  /* Accent & Glows */
  --accent-cyan: #00f0ff;
  --accent-violet: #7928ca;
  --accent-glow: rgba(0, 240, 255, 0.15);
  
  /* Status Indicator */
  --status-active: #10b981;
  --status-glow: rgba(16, 185, 129, 0.4);
  
  /* Affiliate Card Specifics */
  --affiliate-accent: #00f0ff;
  --affiliate-bg: rgba(0, 240, 255, 0.025);
  --affiliate-bg-hover: rgba(0, 240, 255, 0.06);
  --affiliate-border: rgba(0, 240, 255, 0.22);
  --affiliate-border-hover: rgba(0, 240, 255, 0.55);
  --affiliate-glow: rgba(0, 240, 255, 0.12);

  /* Typography */
  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Layout & Radii */
  --container-max-width: 580px;
  --radius-card: 16px;
  --radius-badge: 9999px;
  --radius-logo: 26px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s var(--ease-spring);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   AMBIENT BACKGROUND GLOWS (CSS-ONLY)
   -------------------------------------------------------------------------- */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
  opacity: 0.45;
}

.bg-glow--top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.16) 0%, rgba(121, 40, 202, 0.12) 50%, transparent 75%);
}

.bg-glow--bottom {
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(121, 40, 202, 0.1) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   PAGE LAYOUT
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 20px 40px;
}

.bio-container {
  width: 100%;
  max-width: var(--container-max-width);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --------------------------------------------------------------------------
   HEADER & BRANDING
   -------------------------------------------------------------------------- */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
  width: 100%;
}

.logo-wrapper {
  position: relative;
  margin-bottom: 20px;
  border-radius: var(--radius-logo);
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 240, 255, 0.25) 50%, rgba(121, 40, 202, 0.2) 100%);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(0, 240, 255, 0.12);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.logo-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.9), 0 0 35px -2px rgba(0, 240, 255, 0.22);
}

.profile-logo {
  display: block;
  width: 104px;
  height: 104px;
  border-radius: calc(var(--radius-logo) - 2px);
  object-fit: cover;
  background-color: #0b0d14;
}

.profile-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 6px;
}

.profile-descriptor {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-badge);
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--status-active);
  box-shadow: 0 0 10px var(--status-glow);
  position: relative;
}

.status-badge__dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--status-active);
  opacity: 0.7;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.status-badge__text {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   LINKS SECTION & CARDS
   -------------------------------------------------------------------------- */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Base Link Card */
.link-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  border-radius: var(--radius-card);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform var(--transition-base), background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.link-card:hover {
  transform: translateY(-2px);
  background-color: var(--bg-surface-hover);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.6), 0 0 16px -4px rgba(255, 255, 255, 0.06);
}

.link-card:active {
  transform: translateY(0);
  background-color: var(--bg-surface-active);
}

/* Accessibility Focus Outline */
.link-card:focus-visible,
.share-button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

/* Card Icon Box */
.link-card__icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  margin-right: 16px;
  transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.link-card:hover .link-card__icon-box {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  transform: scale(1.04);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

/* Card Body */
.link-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  min-width: 0;
  text-align: left;
}

.link-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__handle,
.link-card__subtitle {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  margin-left: 12px;
  transition: transform var(--transition-base), color var(--transition-base);
}

.link-card__arrow svg {
  width: 100%;
  height: 100%;
}

.link-card:hover .link-card__arrow {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   SPONSORED AFFILIATE CARD (DJCITY)
   -------------------------------------------------------------------------- */
.link-card--affiliate {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background-color: var(--affiliate-bg);
  border-color: var(--affiliate-border);
  box-shadow: 0 0 20px -5px var(--affiliate-glow);
  overflow: hidden;
}

.link-card--affiliate:hover {
  background-color: var(--affiliate-bg-hover);
  border-color: var(--affiliate-border-hover);
  box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7), 0 0 24px -2px rgba(0, 240, 255, 0.22);
}

.link-card__affiliate-badge {
  width: 100%;
  padding: 4px 18px;
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12) 0%, rgba(121, 40, 202, 0.1) 100%);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

.link-card__affiliate-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 18px;
}

.link-card__icon-box--affiliate {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  color: var(--accent-cyan);
}

.link-card--affiliate:hover .link-card__icon-box--affiliate {
  background: rgba(0, 240, 255, 0.16);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.link-card__title--prominent {
  font-weight: 700;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   FOOTER & SHARE BUTTON
   -------------------------------------------------------------------------- */
.profile-footer {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  width: 100%;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-badge);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-base);
}

.share-button:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.share-button:active {
  transform: translateY(0);
}

.share-button__icon {
  width: 15px;
  height: 15px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   INITIAL LOAD ANIMATIONS (PROGRESSIVE ENHANCEMENT)
   CSS keyframes ensure elements animate smoothly on entrance.
   -------------------------------------------------------------------------- */
@keyframes fadeInSlideUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-header {
  animation: fadeInSlideUp 0.6s var(--ease-spring) forwards;
}

.link-card {
  animation: fadeInSlideUp 0.6s var(--ease-spring) backwards;
}

.links-section .link-card:nth-child(1) { animation-delay: 0.12s; }
.links-section .link-card:nth-child(2) { animation-delay: 0.18s; }
.links-section .link-card:nth-child(3) { animation-delay: 0.24s; }
.links-section .link-card:nth-child(4) { animation-delay: 0.30s; }
.links-section .link-card:nth-child(5) { animation-delay: 0.36s; }

.profile-footer {
  animation: fadeInSlideUp 0.6s var(--ease-spring) 0.38s backwards;
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS-REDUCED-MOTION
   Disables entrance and transform animations for users with motion sensitivity.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .status-badge__dot::after {
    display: none;
  }

  .link-card:hover {
    transform: none;
  }

  .link-card:hover .link-card__arrow {
    transform: none;
  }

  .logo-wrapper:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & SMALL SCREENS)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .page-wrapper {
    padding: 36px 16px 32px;
  }

  .logo-wrapper {
    margin-bottom: 16px;
  }

  .profile-logo {
    width: 92px;
    height: 92px;
  }

  .profile-title {
    font-size: 1.75rem;
  }

  .profile-descriptor {
    font-size: 0.875rem;
  }

  .link-card {
    min-height: 64px;
    padding: 12px 14px;
  }

  .link-card__icon-box {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }

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

  .link-card__title {
    font-size: 0.9375rem;
  }

  .link-card__handle,
  .link-card__subtitle {
    font-size: 0.75rem;
  }

  .link-card__affiliate-inner {
    padding: 12px 14px;
  }
}
