/* START HEADER */
header {
  font-family: "Nunito", sans-serif;
}

.custom-header {
  background: #fff;
  border-radius: 40px;
  margin: 30px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 999;
}

/* Link chung */
.nav-link {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-weight: 500;
  color: #333;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.custom-header nav a {
  padding-bottom: 0;
}
/* nav {
  margin-right: 52px;
} */

.gap-3 {
  gap: 2.5rem !important;
}

/* Hiệu ứng khi hover */
.nav-link {
  color: #000;
  text-decoration: none;
  transition: color 0.8s ease-in-out;
}

.nav-link:hover {
  background: linear-gradient(90deg, #9dd2fa, #d57bfb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Riêng "Khu Vực Vip" có gradient chữ */
.text-vip {
  font-weight: bold;
  background: linear-gradient(90deg, #9dd2fa, #d57bfb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

/* Hover cho Khu vực Vip  */
.text-vip:hover {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #ffe800;
  color: #ffe800; /* fallback cho trình duyệt không hỗ trợ */
}

/* Icon tìm kiếm */
.search-icon {
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

/* Nút đăng nhập */
.btn-login {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 500;
  background: linear-gradient(90deg, #6dd5fa, #c579fb);
  color: #fff !important;
  padding: 0.5rem 1.75rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-login:hover {
  cursor: pointer;
  background: linear-gradient(135deg, #9dd2fa 0%, #d57bfb 70%, #d57bfb 100%);
  background-position: right;
  backdrop-filter: blur(30px);
  box-shadow: 0px 10px 30px 0px rgba(213, 123, 251, 0.4);
}

.gap-4 {
  gap: 32px !important;
}

.px-4 {
  padding-right: 0.5rem !important;
}

.logo-title {
  color: #000;
}

.header-username {
  overflow: hidden;
  max-width: 170px;
}

.header-username span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

/* END HEADER */

/* Laptop nhỏ (max-width: 1200px) */
@media (max-width: 1200px) {
  .header-logo span {
    font-size: 1.1rem;
  }

  .nav-link {
    font-size: 1rem;
  }

  .fs-4 {
    font-size: 1.5rem !important;
  }
}

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .header-nav {
    /* flex-direction: column; */
    gap: 1rem;
    align-items: flex-start;
  }

  .header-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-links nav {
    flex-wrap: wrap;
    gap: 1rem;
    margin-right: 0;
  }

  .btn-login {
    align-self: flex-start;
  }

  .header-links nav {
    display: none !important;
  }

  .fs-4 {
    font-size: 1.1rem !important;
  }

  .display-4 {
    font-size: calc(0.475rem + 2.7vw);
  }
}

/* Mobile lớn (max-width: 768px) */
@media (max-width: 768px) {
  .btn-login {
    font-size: 0.95rem;
    padding: 0.4rem 1.2rem;
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .search-icon {
    font-size: 16px;
  }

  .display-4 {
    font-size: calc(0.475rem + 2.7vw);
  }

  .fs-4 {
    font-size: 1rem !important;
  }
}

/* Mobile nhỏ (max-width: 576px) */
@media (max-width: 576px) {
  .custom-header {
    margin-top: 1rem;
    max-width: calc(100vw - 24px) !important;
  }

  .header-logo span {
    font-size: 0.9rem;
  }

  .btn-login {
    font-size: 0.9rem;
    padding: 0.35rem 1rem;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .search-icon {
    font-size: 15px;
  }

  .fs-4 {
    font-size: 1.5rem !important;
  }

  .vip-and-noti {
    right: -80vw;
  }
}
