/* --- Cài đặt chung & Nền Gradient --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100vh;
}

body {
  font-family: 'Be Vietnam Pro', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* --- Thẻ Kính (Glassmorphism) --- */
.glass-card {
  width: 100%;
  max-width: 550px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
  padding: 40px;
  text-align: center;
  color: #fff;
  position: relative;
}

/* --- Phần Header (Avatar, Tên, Ngôn ngữ) --- */
.profile-header .avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  object-fit: cover;
}

.profile-header .name {
  font-family: 'Mali', cursive;
  font-size: 2.2rem;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.profile-header .verify-badge {
  width: 30px;
  height: 30px;
}

.profile-header .nickname {
  font-family: 'Mali', cursive;
  font-size: 1.5rem;
  opacity: 0.8;
  margin-bottom: 25px;
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
}

.language-switcher a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-weight: 700;
  padding: 5px 8px;
  transition: all 0.3s ease;
}

.language-switcher a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* --- Phần Thông tin cá nhân --- */
.info-section {
  margin-top: 20px;
  text-align: left;
}

.info-section p {
  font-family: 'Mali', cursive;
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.info-section i {
  width: 30px;
  text-align: center;
  margin-right: 10px;
  color: rgba(255, 255, 255, 0.8);
}

.info-section a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.info-section a:hover {
  border-bottom-color: #fff;
}

/* --- Phần các nút bấm --- */
.links-section {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

.links-section .section-title {
  font-family: 'Mali', cursive;
  margin-bottom: 20px;
  font-size: 1.2rem;
  opacity: 0.9;
}

.primary-buttons,
.secondary-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.secondary-buttons {
  margin-top: 15px;
}

.action-button {
  padding: 12px 25px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.action-button:hover {
  background: #fff;
  color: #367af6;
}

.action-button.secondary {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-width: 1px;
  opacity: 0.8;
}

.action-button.secondary:hover {
  opacity: 1;
}

/* --- Spotify Widget --- */
.spotify-widget {
  border: none;
  width: 100%;
  max-width: 350px;
  height: 150px;
  margin-top: 30px;
  border-radius: 12px;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .glass-card {
    padding: 25px;
  }

  .profile-header .name {
    font-size: 1.8rem;
  }

  .profile-header .nickname {
    font-size: 1.2rem;
  }

  .info-section p {
    font-size: 1rem;
  }
}