/* ===== Start Header ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: #007bff;
  border-bottom: 1px solid #dbb747;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* === LEFT SECTION === */
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-left img {
  height: 52px;
  width: auto;
}

/* === MENU BUTTON (☰) === */
.menu-button {
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  color: #dbb747;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
}

/* === RIGHT SECTION === */
.header-right {
  display: flex;
  align-items: center;
}

/* === LANGUAGE SELECT === */
.language-select {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.flag-icon {
  width: 20px;
  height: auto;
}
/* ===== End Header ===== */

/* ===== Start Marqueee ===== */
.search-bar {
  background-color: none;
  padding: 10px 16px;
  border-top: 1px solid #dbb747;
  border-bottom: 1px solid #dbb747;
}

.marquee-text {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
}
/* ===== End Marqueee ===== */

/* ===== Start Navbar ===== */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

/* Sidebar Content */
.sidebar-content {
  background-color: #0d1321;
  width: 16rem; /* 64 = 16*4 px */
  height: 100vh;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  animation: slideIn 0.3s ease-out forwards;
}

/* Header */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.highlight {
  color: #f97316; /* Tailwind orange-500 */
}

.close-button {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

.close-button:hover {
  color: #fb923c; /* Tailwind orange-400 */
}

/* Menu Items */
.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  transition: color 0.3s;
}

.sidebar-menu a:hover {
  color: #fb923c;
}

.sidebar-menu hr {
  border-color: #4b5563; /* Tailwind gray-600 */
}

/* Animation */
@keyframes slideIn {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
/* ===== End Navbar ===== */

/* ===== Start Box Kupon ===== */
.link {
  cursor: pointer;
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

#voucherPopup {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #ccc;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: top 0.4s ease, opacity 0.4s ease;
  z-index: 999;
  pointer-events: none;
}

#voucherPopup.active {
  top: 16px;
  opacity: 1;
  pointer-events: auto;
}
/* ===== End Box Kupon ===== */

/* ===== Start Game Info ===== */
.card-section {
  padding: 1rem;
}

.card-container {
  background-color: #1e1e1e;
  border: 1px solid #dbb747;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.card-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.game-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 0.375rem;
}

.card-content {
  flex: 1;
}

.badges {
  display: flex;
  gap: 0.25rem;
  font-size: 10px;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.badge {
  padding: 2px 6px;
  border-radius: 9999px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-secondary {
  background-color: #2c3548;
  color: #fb923c;
}

.badge-primary {
  background-color: #fb923c;
  color: #fff;
}

.title {
  font-size: 14px;
  font-weight: bold;
  margin: 0;
}

.publisher {
  color: #9ca3af;
  font-size: 11px;
  margin: 0.125rem 0 0.25rem;
}

.desc {
  font-size: 12px;
  color: #d1d5db;
}

.link {
  color: #fb923c;
  text-decoration: underline;
}

.detail {
  margin-top: 0.75rem;
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.5;
}

.hidden {
  display: none;
}

.btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.toggle-btn {
  background-color: #1b2335;
  border: 1px solid #2c3548;
  border-radius: 0.375rem;
  padding: 0.25rem;
  transition: border 0.3s ease;
}

.toggle-btn:hover {
  border-color: #fb923c;
}

.icon {
  width: 16px;
  height: 16px;
  color: #fb923c;
}
/* ===== End Game Info ===== */

/* ===== Start Set Provider ===== */
.provider-section {
  padding: 1rem;
}

.provider-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.provider-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.provider-item {
  display: flex;
  align-items: center;
  background-color: #2B2B2B;
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #fff;
  transition: background-color 0.2s ease;
  border: 1px solid #dbb747;
}

.provider-item:hover {
  background-color: #97a0b4;
}

.provider-item img {
  width: 2rem;
  margin-right: 0.75rem;
}
/* ===== End Set Provider ===== */
