body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: url('../images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 100vh;
}

/* === MAIN CONTAINER === */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  margin-bottom: 40px;
  box-sizing: border-box;
}

/* === PROFILE CARD === */
.profile-card {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.profile-card img {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 20px;
}

.profile-card h1 {
  font-size: 28px;
  margin: 10px 0;
}

.profile-card p {
  font-size: 18px;
  margin: 5px 0;
}

/* === PROFILE VIEWS === */
.views {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
  color: rgba(200, 100, 255, 0.7);
  text-shadow: 0 0 6px rgba(200, 100, 255, 0.6);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.views:hover {
  color: rgba(255, 180, 255, 0.9);
  text-shadow: 0 0 12px rgba(255, 150, 255, 0.8);
}

/* === LINK BUTTONS === */
.links {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.link-item {
  background: #222;
  padding: 12px;
  margin: 4px 0;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 320px;
}

.link-item:hover {
  background: #333;
}

.link-item .link-text {
  font-size: 16px;
}

.link-item .arrow {
  font-size: 20px;
}

/* === DISCORD CARD === */
.discord-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 12px 18px;
  width: 90%;
  max-width: 400px;
  margin: 20px auto;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

/* === AVATAR CONTAINER === */
.avatar-container {
  position: relative;
  display: inline-block;
  margin-top: 8px;
}

#discord-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* === STATUS DOT (Discord-accurate) === */
#status-indicator {
  position: absolute;
  bottom: -3px;  /* slight overlap on bottom */
  right: -3px;   /* slight overlap on right */
  width: 16px;   /* fixed Discord size */
  height: 16px;
  background-color: #43b581;
  border-radius: 50%;
  border: 2px solid #0d0d1a;
  z-index: 2;
}

/* === STATUS TEXT === */
.status-text {
  flex: 1;
  margin-left: 14px;
  text-align: left;
  font-size: 14px;
  color: #ccc;
}

#discord-username {
  font-weight: 600;
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

#activity {
  display: block;
  font-size: 13px;
  color: #a9b8ff;
  opacity: 0.9;
  margin-top: 4px;
}

/* === DISCORD BUTTON === */
#discord-btn {
  background: #5865f2;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

#discord-btn:hover {
  background: #4752c4;
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .discord-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    text-align: left !important;
  }

  .avatar-container {
    width: 60px !important;
    height: 60px !important;
    margin-right: 10px !important;
    margin-bottom: 0 !important;
  }

  .status-text {
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .status-text .username {
    font-size: 18px !important;
  }

  .status-text .activity {
    font-size: 16px !important;
  }

  .discord-card button {
    margin: 0 !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
  }

  #status-indicator {
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
  }
}

/* === MOBILE LAYOUT FIXES === */
@media (max-width: 768px) {
  body {
    overflow-y: auto;
    height: auto;
  }

  .container {
    padding: 30px 16px;
  }

  .profile-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background: rgba(10, 10, 20, 0.8);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  }

  .discord-card {
    margin-bottom: 16px;
    transform: scale(0.95);
  }

  #profile-name {
    font-size: 1.2rem;
  }

  #profile-title {
    font-size: 0.9rem;
  }

  .status-text .username {
    font-size: 0.9rem;
  }

  .activity {
    font-size: 0.8rem;
  }

  .views {
    font-size: 14px;
    margin-top: 10px;
  }
}

/* === FIX FOR WIDER SCREENS (dot + alignment consistency) === */
@media (min-width: 769px) {
  .discord-card {
    transform: none !important;
  }

  .avatar-container {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 60px;
    margin-top: 8px;
  }

  #discord-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
  }

  #status-indicator {
    position: absolute;
    bottom: -3px; /* consistent overlap */
    right: -3px;  /* consistent overlap */
    width: 16px;
    height: 16px;
    background-color: #43b581;
    border-radius: 50%;
    border: 2px solid #0d0d1a;
    z-index: 2;
  }
}
