/* Design System & Variables */
:root {
  --bg-primary: #0a050f;
  --text-primary: #ffffff;
  --text-secondary: #b3a9c0;
  --primary-color: #c71585; /* MediumVioletRed from Pronoms.fr */
  --primary-glow: rgba(199, 21, 133, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover-bg: rgba(255, 255, 255, 0.07);
  --glass-hover-border: rgba(199, 21, 133, 0.4);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding: 2rem 1rem;
}

/* Decorative Background Glows */
body::before, body::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

body::after {
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
}

/* App Container */
.linktree-container {
  width: 100%;
  max-width: 580px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.8s ease-out;
}

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

.avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 20px var(--primary-glow);
  transition: transform 0.3s ease;
}

.avatar:hover {
  transform: rotate(5deg) scale(1.05);
}

.profile h1 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.5px;
}

.username {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.pronouns {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(199, 21, 133, 0.15);
  border: 1px solid rgba(199, 21, 133, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #ff69b4;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Category Sections */
.category {
  width: 100%;
  margin-bottom: 2rem;
}

.category-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--primary-color);
}

/* Links List */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.link-item:hover {
  background: var(--glass-hover-bg);
  border-color: var(--glass-hover-border);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 30px rgba(199, 21, 133, 0.15);
}

.link-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.link-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.link-content {
  flex-grow: 1;
}

.link-title {
  font-weight: 600;
  font-size: 1rem;
}

.link-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.link-arrow {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  transition: transform 0.3s ease, opacity 0.3s ease;
  color: var(--text-secondary);
}

.link-item:hover .link-arrow {
  opacity: 1;
  transform: translateX(3px);
  color: var(--primary-color);
}

/* Footer */
footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
