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

/* Root Variables */
:root {
  --bg-color: #1c192d;
  --card-bg: #010101;
  --text-color: #ffffff;
  --primary-color: #a288ba;
  --primary-hover: #7d7993;
  --discord-color: #7289da;
  --instagram-color: #e1306c;
}

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

/* Body & Layout */

html,
head {
  background: #2a2542;
}

body {
  background: radial-gradient(circle at top left, #2a2542, var(--bg-color));
  color: var(--text-color);
  font-family: "Quicksand", sans-serif;
  margin: 0;
  padding: 6vh 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  min-height: 100vh;
}

/* Main Container */
.container {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 550px;
  width: 90%;
  padding: 40px 30px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  text-align: center;
  animation: fadeInScale 0.5s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Typography */
h1 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 1.8em;
}

p {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #cccccc;
  max-width: 450px;
}

/* Navigation */
nav {
  margin-top: 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 450px;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 14px;
  transition: all 0.3s ease;
  font-size: 0.9em;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

nav a.active {
  background-color: var(--primary-color);
  color: var(--text-color);
  box-shadow: 0 4px 15px rgba(162, 136, 186, 0.3);
}

/* Avatar & Pat Counter */
.avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-color);
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}

.avatar-container:active .avatar {
  transform: scale(0.9) translateY(5px);
}

.pat-counter {
  background-color: var(--primary-color);
  color: var(--card-bg);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  white-space: nowrap;
}

.floating-heart {
  position: absolute;
  font-size: 1.5em;
  pointer-events: none;
  animation: floatUp 0.8s ease-out forwards;
  z-index: 100;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) scale(1.5);
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--card-bg);
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: 0.3s ease;
  margin: 10px 0;
}

.btn.social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn.social#discord {
  background-color: var(--discord-color);
}

.btn.social#instagram {
  background-color: var(--instagram-color);
}

section {
  padding: 10px 0;
}

section:has(.btn.social) {
  margin-top: 0.1vh;
  padding: 5px 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.social svg {
  width: 26px;
  height: 26px;
  fill: var(--text-color);
  transition: fill 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-hover);
  color: var(--text-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(125, 121, 147, 0.3);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.social-links a svg {
  width: 22px;
  height: 22px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--card-bg);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(162, 136, 186, 0.4);
}

.social-links a:hover svg {
  transform: scale(1.15);
}

/* Site Footer */
.site-footer {
  width: 100%;
  margin-top: auto;
  padding: 25px 20px;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.site-footer p {
  margin: 0;
  color: #cccccc;
  font-size: 0.9em;
  text-align: center;
  font-weight: 600;
}

.site-footer p a,
.site-footer p a:visited {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.site-footer p a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--primary-color);
}

/* Mobile Version */
@media (max-width: 600px) {
  body {
    padding: 3vh 0 0 0;
    gap: 20px;
  }

  .social-links {
    gap: 10px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links a svg {
    width: 18px;
    height: 18px;
  }

  .container {
    width: 95%;
    padding: 30px 15px;
    border-radius: 24px;
  }

  nav {
    gap: 4px;
    padding: 6px;
    border-radius: 16px;
  }

  nav a {
    padding: 8px 6px;
    font-size: 0.75em;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.5em;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }
}
