/* =========================================================
   0. FONT CUSTOM
   ========================================================= */
@font-face {
  font-family: 'Giaothong2';
  src: url(fonts/giaothong2.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'CruyffSansVN';
  src: url(fonts/CruyffSansVN-Bold.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* =========================================================
   1. GLOBAL & RESET
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --card-bg: #1e1e1e;
  --card-border: #2e2e2e;
  --accent-color: #00ff9d; /* Màu #0ff9d chuẩn theo prompt */
  --text-muted: #a0a0a0;
}

body {
  font-family: 'Giaothong2', serif;
  background-color: #121212;
  background-image: radial-gradient(#262626 1px, transparent 1px);
  background-size: 20px 20px;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   2. HEADER
   ========================================================= */
header {
  width: 100%;
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 17px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

.menu-toggle {
  display: none;
  background: transparent !important;
  border: none !important;
  outline: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px 10px;
}

/* =========================================================
   3. HOBBIES CONTAINERS & LAYOUT (Đúng kích thước Ref)
   ========================================================= */
.hobbies-wrapper {
  width: 100%;
  max-width: 1200px;
  /* Padding lề trái/phải 64px chuẩn như trong ảnh vẽ */
  padding: 40px 64px; 
}

/* Khoảng cách giữa các Box lớn là 100px */
.section-gap {
  height: 100px;
}

/* Khung Bento Box lớn bọc ngoài */
.hobbies-box {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  /* Padding bên trong box là 32px trái/phải, 48px trên/dưới theo spec */
  padding: 48px 32px 32px 32px; 
}

.box-title {
  color: var(--accent-color);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Khoảng cách từ Title tới hàng thẻ bên dưới là 24px theo ảnh vẽ */
  margin-bottom: 24px; 
}

.manga-subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
  margin-top: -12px;
}

/* =========================================================
   4. GRID & CARDS
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cột chuẩn ref */
  gap: 20px;                             /* Giãn cách vừa đủ để không bị che khi scale */
}

/* Style từng Tấm thẻ */
.hobby-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Hiệu ứng Phóng to khi Hover */
.hobby-card:hover {
  transform: scale(1.08); /* Phóng to vừa mắt */
  z-index: 10;
}

/* Khung ảnh 16:9 */
.img-wrapper {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
  background-color: #121212;
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Chữ tên dưới mỗi ô */
.card-name {
  font-size: 13px;
  font-weight: bold;
  margin-top: 4px;
  color: #e0e0e0;
}

.hobby-card:hover .card-name {
  color: var(--accent-color);
}

/* Ô không có link (Manga) vẫn hiện bàn tay chỉ trỏ */
.hobby-card.no-link {
  cursor: pointer;
}

/* =========================================================
   5. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hobbies-wrapper {
    padding: 24px 20px;
  }
  .hobbies-box {
    padding: 24px 16px;
  }
  .card-grid {
    grid-template-columns: repeat(2, 1fr); /* Mobile chia 2 cột */
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 120%;
    right: 16px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 20px;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
  }
  .nav-links.active {
    display: flex;
  }
}

html {
  zoom: 110%;
}