/* ===================================================== */
/* BUTTONS.CSS                                           */
/* CSS dùng chung cho các loại nút trong website.        */
/* Gồm: nút chính, nút icon, nút thêm món, chip category. */
/* ===================================================== */


/* ===================================================== */
/* BASE BUTTON                                           */
/* Class .btn là nền tảng cho các nút dạng pill.         */
/* Các biến thể như .btn--primary, .btn--ghost kế thừa từ đây. */
/* ===================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 240ms ease,
    background 240ms ease,
    color 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

/* Vòng ripple bên trong nút.
   JavaScript sẽ thêm class .is-rippling để chạy animation. */
.btn::after {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.28);
  opacity: 0;
  transform: scale(0);
  content: "";
  pointer-events: none;
}

/* Trạng thái nút đang chạy hiệu ứng ripple */
.btn.is-rippling::after {
  animation: ripple 520ms ease;
}

/* Hover nâng nút lên nhẹ để có cảm giác bấm được */
.btn:hover {
  transform: translateY(-2px);
}


/* ===================================================== */
/* BUTTON VARIANTS                                       */
/* Các kiểu màu khác nhau của .btn.                      */
/* ===================================================== */

/* Nút chính, dùng cho CTA quan trọng như Reservierung, Explore Menu */
.btn--primary {
  color: var(--color-white);
  background:
    linear-gradient(
      180deg,
      var(--color-terracotta),
      var(--color-terracotta-dark)
    );
  box-shadow: 0 12px 22px rgba(170, 63, 34, 0.24);
}

/* Nút màu nâu đậm, dùng khi cần cảm giác trầm hơn primary */
.btn--brown {
  color: var(--color-white);
  background:
    linear-gradient(
      180deg,
      var(--color-brown),
      var(--color-brown-deep)
    );
}

/* Nút nền kem, dùng trên nền tối hoặc ảnh */
.btn--cream {
  color: var(--color-terracotta-dark);
  background: rgba(255, 250, 242, 0.92);
}

/* Nút viền nhẹ, dùng cho hành động phụ */
.btn--ghost {
  color: var(--color-brown);
  border-color: rgba(91, 61, 44, 0.28);
  background: rgba(255, 250, 242, 0.32);
}


/* ===================================================== */
/* ROUND ICON BUTTONS                                    */
/* Các nút tròn nhỏ: icon, thêm món, tăng giảm số lượng. */
/* ===================================================== */

.icon-btn,
.add-btn,
.qty-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(91, 61, 44, 0.18);
  border-radius: 50%;
  background: rgba(255, 250, 242, 0.72);
  color: var(--color-brown);
  touch-action: manipulation;
  transition:
    transform 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

/* Hover chung cho các nút tròn */
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover,
  .add-btn:hover,
  .qty-btn:hover {
    background: var(--color-white);
    box-shadow: 0 10px 20px rgba(54, 31, 19, 0.1);
    transform: translateY(-2px);
  }
}

/* Nút icon lớn, ví dụ cart hoặc menu action */
.icon-btn {
  width: 48px;
  height: 48px;
  font-size: 20px;
}

/* Nút thêm món vào giỏ */
.add-btn {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

/* Nút tăng/giảm số lượng trong giỏ hàng */
.qty-btn {
  width: 30px;
  height: 30px;
  font-size: 16px;
}


/* ===================================================== */
/* CATEGORY CHIP                                         */
/* Nút lọc danh mục, ví dụ menu category hoặc gallery tab. */
/* ===================================================== */

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 154px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-brown);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color 240ms ease,
    background 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

/* Trạng thái đang chọn hoặc hover của chip */
.category-chip.is-active,
.category-chip:hover {
  color: var(--color-white);
  background: var(--color-terracotta);
  box-shadow: 0 13px 24px rgba(170, 63, 34, 0.26);
  transform: translateY(-2px);
}


/* ===================================================== */
/* PREMIUM SECONDARY BUTTON                              */
/* Nút phụ kiểu pill kem giống mẫu reference.            */
/* Dùng cho View Full Menu, Mehr über uns, CTA phụ.      */
/* ===================================================== */

.btn--ghost,
.btn--cream {
  color: var(--color-brown);
  border-color: rgba(91, 61, 44, 0.12);
  background: rgba(255, 250, 242, 0.92);
  box-shadow:
    0 12px 22px rgba(54, 31, 19, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

/* Mũi tên nằm cách chữ một chút để giống nút trong ảnh mẫu. */
.btn--ghost span,
.btn--cream span {
  margin-left: 6px;
  font-size: 15px;
  line-height: 1;
  transform: translateY(-1px);
}

.btn--ghost:hover,
.btn--cream:hover {
  background: rgba(255, 250, 242, 0.99);
  box-shadow:
    0 16px 28px rgba(54, 31, 19, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}
