@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");

:root {
  --accent-color: #bc86ca;
  --border-primary: #363636;
  --border-active: #525252;
  --background-color: #0e0e13;
  --background-secondary: #1b1b24;
  --hover-color: #20202a;
  --text-primary: #cecece;
  --text-inactive: #b3b3b3;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background-color);
  color: var(--text-primary);
  font-optical-sizing: auto;
  margin: 1.5rem;
  font-family: Quicksand, sans-serif;
  font-style: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.centered {
  text-align: center;
  flex-direction: column;
  align-items: center;
  width: 100%;
  display: flex;
  flex: 1;
  justify-content: center;
  padding: 2rem 0;
}

.page-transition {
  animation: 0.28s ease-out both page-enter;
}

@keyframes page-enter {
  0% {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    animation: none;
  }
}

h1 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 0;
}

h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h2:has(+ p) {
  margin-bottom: 0;
}

p {
  color: var(--text-inactive);
  white-space: normal;
  overflow-wrap: break-word;
  width: 90%;
  max-width: 600px;
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

.accent {
  color: var(--accent-color);
  font-weight: 900;
}

.accent-gradient {
  background: linear-gradient(
    90deg,
    var(--accent-color) 0%,
    #cf9ab9 25%,
    var(--accent-color) 100%
  );
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: 5s linear infinite shimmer;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

/* Navbar */
.navbar {
  background-color: var(--background-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 1.15rem;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  width: fit-content;
  margin: 0 auto 2rem;
  padding: 0.65rem 0.8rem 0.65rem 1.1rem;
  display: flex;
}

.navbar-brand {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.navbar-links {
  align-items: center;
  gap: 0.25rem;
  display: flex;
}

.navbar-link {
  color: var(--text-inactive);
  border-radius: 0.6rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
}

.navbar-link:hover {
  color: var(--text-primary);
}

.navbar-link-active {
  color: var(--text-primary);
  background-color: var(--hover-color);
}

/* Link buttons */
.link-container {
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  display: flex;
  margin-top: 0.75rem;
}

.link-button {
  text-wrap: none;
  background: var(--background-secondary);
  border-style: solid;
  border-color: var(--border-primary);
  border-width: 1px;
  border-radius: 1.25rem;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  display: inline-flex;
}

.link-button:hover {
  border-color: var(--border-active);
  background-color: var(--hover-color);
}

.link-text-container {
  flex-direction: column;
  align-items: start;
  display: inline-flex;
}

.link-text-lower {
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.link-text-upper {
  color: var(--text-inactive);
  font-size: 0.6rem;
  font-weight: 600;
}

.link-icon {
  object-fit: contain;
  width: 20px;
  height: 20px;
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Discord card */
.discord-card {
  text-align: left;
  background: var(--background-secondary);
  border: 1px solid var(--border-primary);
  width: 300px;
  height: 160px;
  color: var(--text-primary);
  border-radius: 1rem;
  margin-bottom: 1rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease-in-out,
    background-color 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
  display: block;
}

.discord-card:hover {
  border-color: var(--border-active);
  background-color: var(--hover-color);
}

.discord-card-username {
  color: var(--text-inactive);
  font-size: 0.7rem;
  font-weight: 700;
}

.discord-card-name {
  font-size: 1.1rem;
  font-weight: 800;
}

.discord-card-banner {
  object-fit: cover;
  width: 100%;
  height: 80px;
}

.discord-card-avatar-wrapper {
  width: 64px;
  height: 64px;
  position: absolute;
  top: 35px;
  left: 12px;
}

.discord-card-avatar,
.discord-card-avatar-deco {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.discord-card-avatar {
  border: 3px solid var(--background-secondary);
  object-fit: cover;
  border-radius: 50%;
}

.discord-card-avatar-deco {
  object-fit: contain;
  pointer-events: none;
  width: 120%;
  height: 120%;
  inset: -7%;
}

.discord-status {
  border: 3px solid var(--background-secondary);
  border-radius: 50%;
  width: 14px;
  height: 14px;
  position: absolute;
  bottom: -5px;
  right: -4px;
}

.discord-status-online {
  background: #3ba55d;
}

.discord-status-idle {
  background: #faa61a;
}

.discord-status-dnd {
  background: #ed4245;
}

.discord-status-offline {
  background: #747f8d;
}

.discord-card-content {
  margin-top: 25px;
  padding-left: 16px;
}

.discord-card-icon {
  color: var(--text-inactive);
  pointer-events: none;
  position: absolute;
  top: 5.5rem;
  right: 0.8rem;
}

/* Footer */
.footer {
  text-align: center;
  width: fit-content;
  margin: 2rem auto;
}

.footer-text {
  color: var(--text-inactive);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.footer-link {
  color: var(--text-primary);
  font-weight: 700;
  transition: color 0.2s ease-in-out;
}

.footer-link:hover {
  color: var(--accent-color);
}

/* Responsive */
@media (width <= 480px) {
  .navbar {
    gap: 0.75rem;
    padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .navbar-link {
    padding: 0.4rem 0.45rem;
    font-size: 0.75rem;
  }
}
