/* Header styles */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
}

/* Scrolling announcement */
.announcement {
  background-color: #333;
  color: #ffd700; /* Màu vàng */
  padding: 4px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.875rem;
}

.announcement-content {
  display: inline-block;
  animation: scroll-left 30s linear infinite;
}

.announcement-text {
  display: inline-block;
  padding-right: 2rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Main header */
.main-header {
  background-color: #ffd700; /* Màu vàng chính */
  padding: 0.5rem 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Thêm dải màu đen dưới header */
.header-bottom-strip {
  background-color: #000;
  height: 10px;
  width: 100%;
}

@media (min-width: 768px) {
  .main-header {
    padding: 0.75rem 1.5rem;
  }
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  color: #000;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.875rem;
  }
}

.logo-highlight {
  color: #ff6600; /* Màu cam */
}

/* Desktop navigation */
.desktop-nav {
  display: none;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.nav-link {
  font-weight: 500;
  color: #333;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-link:hover {
  color: #ff6600; /* Màu cam */
}

.nav-link-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  vertical-align: middle;
}

.login-button,
.user-button {
  background-color: #333;
  color: #ffd700; /* Màu vàng */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.login-button:hover,
.user-button:hover {
  background-color: #000;
  transform: translateY(-2px);
  text-decoration: none;
}

/* User info in header */
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.balance-display {
  background-color: #fff;
  color: #333;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  border: 1px solid #f2c200; /* Màu vàng đậm */
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.balance-icon {
  width: 16px;
  height: 16px;
}

.user-dropdown {
  position: relative;
}

.user-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.user-icon {
  width: 20px;
  height: 20px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  width: 220px;
  background-color: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(242, 194, 0, 0.15);
  padding: 0.5rem 0;
  z-index: 100;
  display: none;
  border: 1px solid #f2c200; /* Màu vàng đậm */
}

.user-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: #000;
  font-weight: 500;
  transition: background-color 0.2s;
  text-decoration: none;
}

.dropdown-item:hover {
  background-color: #fffdf5; /* Màu nền nhẹ vàng */
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.5rem 0;
}

/* Mobile navigation */
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-button {
  background: transparent;
  border: none;
  color: #000;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-button:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
}

.mobile-icon {
  width: 20px;
  height: 20px;
}

/* Mobile menu (hidden by default) */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background-color: #ffd700; /* Màu vàng chính */
  border-left: 1px solid #f2c200; /* Màu vàng đậm */
  z-index: 100;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-header {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-link {
  font-weight: 500;
  color: #000;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  text-decoration: none;
}

.mobile-menu-link:hover {
  color: #ff6600; /* Màu cam */
}

.mobile-menu-footer {
  margin-top: 2rem;
}

.mobile-login-button {
  background-color: #333;
  color: #ffd700; /* Màu vàng */
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  text-align: center;
  transition: background-color 0.2s;
  text-decoration: none;
}

.mobile-login-button:hover {
  background-color: #000;
}

/* Overlay for mobile menu */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 90;
}

.overlay.active {
  display: block;
}
