/* Dán ở dòng 1 của file css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #0d1117; /* Nền tối dịu mắt */
  color: #f0f6fc; /* Chữ trắng sáng tăng độ tương phản dễ đọc */
  line-height: 1.6;
}

/* Viền sáng rõ khi người dùng điều hướng bằng phím Tab (tăng khả năng tiếp cận) */
:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

/* THANH ĐIỀU HƯỚNG HIỆN ĐẠI (SEGMENTED PILL NAVBAR) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  background-color: rgba(17, 22, 29, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #222b36;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px; /* Tăng khoảng cách một chút để logo nổi bật */
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: scale(1.03); /* Nghiêng nhẹ khi rê chuột cực kỳ chuyên nghiệp */
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  /* Tạo màu chữ gradient chuyển tiếp từ xanh ngọc sang xanh lục bảo rực rỡ /
  background: linear-gradient(135deg, #a7f3d0 0%, #34d399 45%, #10b981 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.15); / Chữ phát sáng nhẹ */
}

/* KHAY CHỨA MENU ĐIỀU HƯỚNG */
.navbar nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  background-color: #0b0e14;
  border: 1px solid #222b36;
  padding: 4px;
  border-radius: 10px;
}

.nav-link {
  color: #8b949e;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 7px;
  white-space: nowrap;
  text-align: center;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #f0f6fc;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  background-color: #10b981;
  color: #06130d;
}

/* Nút mở rộng Rubik 3D tách biệt nhưng vẫn gọn trên điện thoại */
.nav-link-3d {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px dashed rgba(52, 211, 153, 0.6);
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
}

.nav-link-3d:hover {
  background: rgba(16, 185, 129, 0.22);
  border-style: solid;
  border-color: #34d399;
  color: #a7f3d0;
}

.nav-3d-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.24);
  color: #a7f3d0;
  line-height: 1.3;
}

.container {
  max-width: 1140px;
  margin: 28px auto;
  padding: 0 20px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  mix-blend-mode: lighten; /* Tự động làm trong suốt phần nền đen khi chồng lên thanh menu */
}

/* Định dạng nút bấm dùng chung cho toàn bộ website */
.btn {
  background-color: #21262d;
  color: #f0f6fc;
  border: 1px solid #30363d;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  border-color: #10b981;
  color: #10b981;
}

:root {
  color-scheme: dark;
}

/* Chống trình duyệt điện thoại tự zoom khi bấm nhanh vào nút hoặc link */
button, a {
  touch-action: manipulation;
}

.nav-link-3d {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px dashed rgba(52, 211, 153, 0.55);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.nav-link-3d:hover {
  background: rgba(16, 185, 129, 0.2);
  border-style: solid;
  border-color: #34d399;
}

.nav-3d-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.22);
  color: #a7f3d0;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .navbar {
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  }

  .brand {
    justify-content: center;
  }

  .navbar nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 5px;
  padding: 5px;
  border-radius: 12px;
  }

  .nav-link {
  font-size: 0.78rem;
  padding: 7px 6px;
  border-radius: 8px;
  }

  .nav-link-3d {
  grid-column: 1 / -1;
  justify-content: center;
  padding: 7px 10px;
  margin-top: 2px;
  }

  .container {
    margin: 18px auto;
    padding: 0 14px;
  }
}

/* CHÂN TRANG (FOOTER) */
.site-footer {
  text-align: center;
  padding: 20px 16px;
  border-top: 1px solid #21262d;
  background-color: #0d1117;
  color: #6e7681;
  font-size: 0.85rem;
}

.site-footer strong {
  color: #10b981;
}