/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #0a0a0f;
  --color-card: #16161f;
  --color-card-hover: #1e1e2a;
  --color-accent: #8b5cf6;
  --color-accent-hover: #a78bfa;
  --color-text: #ffffff;
  --color-text-muted: #a1a1aa;
  --color-border: #27272a;

  /* Platform Colors */
  --color-spotify: #1db954;
  --color-apple: #fc3c44;
  --color-soundcloud: #ff5500;
  --color-youtube: #ff0000;
  --color-twitch: #9146ff;
  --color-instagram: #e4405f;
  --color-tiktok: #000000;
  --color-patreon: #118dc7;
  --color-discord: #5865f2;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Background Animation */
.links-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-gradient {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, rgba(10, 10, 15, 0) 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Container */
.links-container {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Profile Header */
.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.profile-image {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-accent);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.profile-bio {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  font-size: 0.8125rem;
  color: var(--color-accent);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Links List */
.links-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Category */
.links-category {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.category-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  padding: 0 0.5rem;
  margin-bottom: 0.25rem;
}

/* Link Item */
.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.link-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.link-item:hover {
  background: var(--color-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.link-item:hover::before {
  transform: scaleY(1);
}

/* Featured Link */
.link-item.featured {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.05));
  border-color: rgba(139, 92, 246, 0.4);
  padding: 1rem;
}

.link-item.featured::before {
  transform: scaleY(1);
}

.link-item.featured .link-content {
  flex: 1;
}

.link-item.featured .link-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.125rem;
}

.link-item.featured .link-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Link Icon */
.link-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.link-item:hover .link-icon {
  background: rgba(255, 255, 255, 0.1);
}

/* Platform-specific hover colors */
.link-item.spotify:hover .link-icon {
  background: var(--color-spotify);
}
.link-item.apple:hover .link-icon {
  background: var(--color-apple);
}
.link-item.soundcloud:hover .link-icon {
  background: var(--color-soundcloud);
}
.link-item.youtube:hover .link-icon {
  background: var(--color-youtube);
}
.link-item.twitch:hover .link-icon {
  background: var(--color-twitch);
}
.link-item.instagram:hover .link-icon {
  background: var(--color-instagram);
}
.link-item.tiktok:hover .link-icon {
  background: var(--color-text);
  color: var(--color-bg);
}
.link-item.patreon:hover .link-icon {
  background: var(--color-patreon);
  color: var(--color-bg);
}
.link-item.discord:hover .link-icon {
  background: var(--color-discord);
}
.link-item.email:hover .link-icon {
  background: var(--color-accent);
}
.link-item.website:hover .link-icon {
  background: var(--color-accent);
}

.link-item.spotify:hover::before {
  background: var(--color-spotify);
}
.link-item.apple:hover::before {
  background: var(--color-apple);
}
.link-item.soundcloud:hover::before {
  background: var(--color-soundcloud);
}
.link-item.youtube:hover::before {
  background: var(--color-youtube);
}
.link-item.twitch:hover::before {
  background: var(--color-twitch);
}
.link-item.instagram:hover::before {
  background: var(--color-instagram);
}
.link-item.tiktok:hover::before {
  background: var(--color-text);
}
.link-item.twitter:hover::before {
  background: var(--color-text);
}
.link-item.discord:hover::before {
  background: var(--color-discord);
}

/* Link Title */
.link-title {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* Link Badge */
.link-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  background: rgba(145, 70, 255, 0.2);
  color: var(--color-twitch);
  border-radius: 4px;
}

/* Link Arrow */
.link-arrow {
  color: var(--color-text-muted);
  transition: all 0.3s ease;
}

.link-item:hover .link-arrow {
  color: var(--color-text);
  transform: translateX(4px);
}

/* Footer */
.links-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.links-footer p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 480px) {
  .links-container {
    padding: 2rem 1rem;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

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

  .link-item {
    padding: 0.75rem;
  }

  .link-icon {
    width: 36px;
    height: 36px;
  }

  .link-title {
    font-size: 0.875rem;
  }
}
