/* balle.rs - made with ❤︎ by millicas */
:root {
  --background: #0f0f0f;
  --surface: #1a1a1acc;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --text-muted: #999999;
  --primary-color: #8a63d2;
  --secondary-color: #ff7c7c;
  --accent: #4a90e2;
}

body {
  background-color: var(--background);
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
}

#enter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  backdrop-filter: blur(20px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

#enter-button {
  color: var(--primary-color);
  font-size: 24px;
  text-shadow: 0 0 10px var(--primary-color);
  cursor: pointer;
  transition: transform 1.5s ease-in-out;
  position: relative;
  background: none;
  border: none;
  padding: 10px 20px;
}

#enter-button:hover {
  transform: scale(1.05);
}

#enter-button::before,
#enter-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--primary-color);
  left: 0;
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

#enter-button::before {
  top: 0;
  transform-origin: left;
}

#enter-button::after {
  bottom: 0;
  transform-origin: right;
}

#enter-button:hover::before,
#enter-button:hover::after {
  transform: scaleX(1);
}

.overlay-content {
  text-align: center;
  padding: 30px;
  z-index: 2;
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
#enter-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.profile-container {
  opacity: 0;
  filter: blur(15px);
  transition: opacity 1s ease, filter 1s ease;
}

.profile-container.visible {
  opacity: 1;
  filter: blur(0);
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 880px;
  padding: 2.5rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.profile-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px solid transparent;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.username {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.bio {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 480px;
}

.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: linear-gradient(
    145deg,
    rgba(26, 26, 26, 0.5),
    rgba(15, 15, 15, 0.5)
  );
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 0.1;
}

.link-title {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.link-url {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.link-url:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .profile-container {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 1rem;
  }

  .username {
    font-size: 1.75rem;
  }

  .bio {
    font-size: 1rem;
    max-width: 100%;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .link-title {
    font-size: 1.125rem;
  }

  .link-url {
    font-size: 0.95rem;
  }

  .entrance-content p {
    text-align: center;
    padding: 0 1rem;
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .username {
    font-size: 1.5rem;
  }

  .bio {
    font-size: 0.95rem;
  }

  .card {
    padding: 1rem;
  }

  .link-title {
    font-size: 1rem;
  }

  .link-url {
    font-size: 0.9rem;
  }
}