/* Global Resets & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  position: relative;
  /* Load skatepark background globally across the whole browser page */
  background: url('skatepark_bg.png') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff;
}

/* Add a dark overlay on body for enhanced text readability over the background image */
body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 22, 0.45); /* Subtle dark tint */
  z-index: 1;
  pointer-events: none;
}

/* --- Skate Theme Variables --- */
.theme-skate {
  --accent: #e5b493;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
}

/* --- Centered Profile Column Layout --- */
.main-container {
  width: 100%;
  max-width: 480px; /* Centered column width */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 40px 20px;
  z-index: 10; /* Float above the body dark overlay */
}

/* --- Profile Styling --- */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.avatar-container {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.avatar-container:hover {
  transform: scale(1.05);
}

.avatar-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-display-name {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.username {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  opacity: 0.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.bio {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 320px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* --- Link Buttons List --- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.link-btn-item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 20px 24px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  position: relative;
  overflow: visible !important;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-btn-item:hover {
  transform: scale(1.03) !important;
}

.link-btn-item:active {
  transform: scale(0.98) !important;
}

/* --- Jagged Paper Edge Background Layer --- */
.paper-bg {
  display: block;
  position: absolute;
  inset: -2px -4px;
  width: calc(100% + 8px);
  height: calc(100% + 4px);
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
  overflow: visible !important;
}

.link-icon,
.link-title {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.link-icon {
  margin-right: 14px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.link-title {
  flex: 1;
  text-align: center;
  margin-right: 18px; /* Offset spacing to balance icon */
}