/* ===========================
   TOP: memberArea（上方會員列）
=========================== */

#memberArea {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.social-icons {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.social-icons span {
  font-size: 1.35rem;
}

.social-icons a {
  color: currentColor;
}

#memberArea .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #111;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
  text-decoration: none;
}

#memberArea .social-icons a:hover {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.08);
  filter: brightness(1.02);
}

.footer-dark .social-icons {
  gap: 0.55rem;
}

.footer-dark .social-icons a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  text-decoration: none;
}

.footer-dark .social-icons a:hover {
  color: rgba(255, 255, 255, 0.75);
}

#memberArea .btn {
  border-radius: 999px !important;
}

.member-dropdown {
  border: none !important;
  border-radius: 14px !important;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.14) !important;

  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}

.member-dropdown .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.member-dropdown .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: translateX(2px);
}

.border-top.border-bottom.py-2.bg-light {
  position: sticky;
  top: 72px;
  z-index: 1025;
  background: rgba(248, 249, 250, 0.78) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.border-top.border-bottom.py-2.bg-light .nav-link {
  color: rgba(0, 0, 0, 0.65);
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.border-top.border-bottom.py-2.bg-light .nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.88);
  transform: translateY(-1px);
}

.border-top.border-bottom.py-2.bg-light .nav-link.dropdown-toggle::after {
  opacity: 0.5;
}

.border-top.border-bottom.py-2.bg-light .dropdown-menu {
  border: none;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.14);
}

.border-top.border-bottom.py-2.bg-light .dropdown-item {
  border-radius: 10px;
  padding: 10px 12px;
  color: rgba(0, 0, 0, 0.72);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.border-top.border-bottom.py-2.bg-light .dropdown-item:hover {
  background: rgba(0, 0, 0, 0.06);
  transform: translateX(2px);
}

.hover-dropdown:hover > .dropdown-menu {
  display: block;
}

main.container.py-5 {
  padding-top: 2.25rem !important;
}

.footer-dark {
  background: #0f1222;
}

.footer-dark .footer-link {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-dark .footer-link:hover {
  color: rgba(255, 255, 255, 0.92);
  transform: translateX(2px);
}

.footer-dark h6 {
  letter-spacing: 0.6px;
}

.footer-dark hr {
  opacity: 0.18;
}

.footer-dark .btn-outline-light {
  border-radius: 999px;
  padding: 8px 14px;
}

#loader {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.member-layout {
  overflow-x: hidden;
}

.member-layout .member-area-shell {
  gap: 1rem;
}

.member-layout .navbar-brand,
.member-layout .navbar-brand img {
  display: block;
}

.member-layout .member-main-shell {
  min-height: calc(100vh - 280px);
}

.member-layout .footer-dark .row {
  row-gap: 1.5rem;
}

.member-layout .footer-dark ul {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  #memberArea {
    padding: 0.75rem 1rem !important;
  }

  .member-layout .member-area-shell {
    flex-wrap: wrap;
    justify-content: center !important;
  }

  .member-layout .social-icons {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 0.75rem;
  }

  .member-layout .navbar-brand {
    order: 1;
  }

  .member-layout #memberArea > div:last-child {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .member-layout .navbar-brand img {
    height: 72px !important;
  }

  .member-layout .member-main-shell {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
  }
}

@media (max-width: 767.98px) {
  #memberArea {
    padding: 0.75rem !important;
  }

  .member-layout .social-icons span {
    font-size: 1.7rem;
  }

  .member-layout #memberArea .member-login-link,
  .member-layout #memberArea .member-account-toggle {
    width: auto;
    min-width: 0;
    justify-content: center;
    padding: 0.32rem 0.75rem !important;
    font-size: 0.82rem !important;
    line-height: 1.2;
  }

  .member-layout #memberArea .member-account-toggle .fa-user-circle {
    margin-right: 0.35rem !important;
    font-size: 0.95rem;
  }

  .member-layout .navbar-brand {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .member-layout .navbar-brand img {
    height: 60px !important;
  }

  main.container.py-5 {
    padding-top: 1.5rem !important;
  }

  .member-layout .footer-dark {
    text-align: center;
  }

  .member-layout .footer-dark .btn-outline-light {
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  .member-layout #memberArea .member-login-link,
  .member-layout #memberArea .member-account-toggle {
    padding: 0.28rem 0.62rem !important;
    font-size: 0.76rem !important;
  }
}
