/* Keells x MasterChef — frontend styles
   Design tokens: bg #0A0A0A, accent #78BE20 (hover #5A9218), support #F2703D,
   ink #FFFFFF, grey #B9B9B9. Font: Foco (self-hosted). */

@font-face {
  font-family: 'Foco';
  src: url('https://masterchef.ideavault.asia/wp-content/uploads/2026/08/Foco_Lt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Foco';
  src: url('https://masterchef.ideavault.asia/wp-content/uploads/2026/08/Foco_Rg.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Foco';
  src: url('https://masterchef.ideavault.asia/wp-content/uploads/2026/08/Foco_Bd.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.kxmc-app {
  --kxmc-green: #78BE20;
  --kxmc-green-dark: #5A9218;
  --kxmc-orange: #F2703D;
  --kxmc-black: #0A0A0A;
  --kxmc-surface: #141414;
  --kxmc-white: #FFFFFF;
  --kxmc-grey: #B9B9B9;
  --kxmc-font: 'Foco', 'Segoe UI', sans-serif;

  font-family: var(--kxmc-font);
  color: var(--kxmc-white) !important;
  background: var(--kxmc-black);
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}
.kxmc-app * { box-sizing: border-box; }
.kxmc-app img { max-width: 100%; display: block; }
.kxmc-app a { color: inherit; text-decoration: none; }
/* Guard against theme/Elementor global heading color rules bleeding in */
.kxmc-app h1, .kxmc-app h2, .kxmc-app h3, .kxmc-app h4, .kxmc-app h5, .kxmc-app p, .kxmc-app span, .kxmc-app div, .kxmc-app li {
  color: var(--kxmc-white);
}
/* Kadence theme injects 'h1,h2,h3,h4,h5,h6{font-family:var(--global-heading-font-family)}' site-wide,
   which otherwise wins over our inherited Foco font-family on every heading. Force it back explicitly. */
.kxmc-app h1, .kxmc-app h2, .kxmc-app h3, .kxmc-app h4, .kxmc-app h5, .kxmc-app h6 {
  font-family: var(--kxmc-font) !important;
}

/* ---------- Recipe grid (hub) ---------- */
.kxmc-hub { display: flex; justify-content: center; }
.kxmc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 22px;
  padding: 10px 0 40px;
  width: 100%;
}

.kxmc-card {
  background: var(--kxmc-green);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: #06210A;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.kxmc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6);
}
.kxmc-card-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.kxmc-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kxmc-card-body { padding: 16px 18px 20px; }
.kxmc-card-tag {
  color: #06210A !important; opacity: 0.75; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; display: block;
}
.kxmc-card h3 { font-size: 19px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; color: #06210A !important; }
.kxmc-card-chef { font-size: 13px; color: #06210A !important; opacity: 0.75; margin: 0; }

/* ---------- Recipe detail ---------- */
.kxmc-detail { display: none; padding-bottom: 60px; }
.kxmc-detail.kxmc-active { display: block; }
.kxmc-hub.kxmc-hidden { display: none; }

.kxmc-back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--kxmc-grey) !important; font-size: 14px; font-weight: 600; margin: 0 0 22px;
}
.kxmc-back:hover { color: var(--kxmc-green) !important; }

.kxmc-journey {
  display: grid;
  grid-template-columns: minmax(260px, 460px) 1fr;
  gap: 56px;
  align-items: start;
}
.kxmc-photo-sticky {
  position: sticky; top: 32px; border-radius: 16px; overflow: hidden;
  background: #000; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.65);
}
.kxmc-photo-sticky img { width: 100%; max-height: 78vh; object-fit: cover; }
.kxmc-content-col { max-width: 640px; padding-top: 6px; }

.kxmc-block {
  padding: 8px 0 44px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.kxmc-block.kxmc-revealed { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .kxmc-block { transition: none; opacity: 1; transform: none; } }

.kxmc-overview h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; line-height: 1.1; margin: 0 0 16px; color: var(--kxmc-white) !important; }

.kxmc-chef-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.kxmc-chef-name { font-weight: 700; font-size: 15px; color: var(--kxmc-white) !important; }
.kxmc-chef-show { color: var(--kxmc-grey) !important; font-size: 13px; }

.kxmc-description { font-size: 17px; line-height: 1.6; color: #E6E6E6 !important; margin-bottom: 26px; }

.kxmc-shop-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--kxmc-green); color: #06210A !important; font-weight: 700; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; transition: background 0.15s ease;
}
.kxmc-shop-btn:hover { background: var(--kxmc-green-dark); }

.kxmc-section-label {
  display: flex; align-items: center; gap: 10px;
  color: var(--kxmc-green) !important; font-weight: 700; font-size: 20px; margin: 0 0 20px;
}
.kxmc-section-label .kxmc-line {
  flex: 1; height: 1px;
  background: repeating-linear-gradient(to right, #3A3A3A 0, #3A3A3A 4px, transparent 4px, transparent 8px);
}

/* Ingredients: plain grouped text list, no icons — spaced for readability */
.kxmc-ingredient-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
}
.kxmc-ingredient-list li {
  font-size: 15px; color: #E6E6E6 !important; padding: 12px 0 12px 30px;
  line-height: 1.4;
  position: relative;
}
.kxmc-ingredient-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--kxmc-green) !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.kxmc-step-row { display: flex; gap: 18px; padding-bottom: 0; }
.kxmc-step-num {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--kxmc-green); color: var(--kxmc-green) !important; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.kxmc-step-text { color: #E6E6E6 !important; font-size: 16px; line-height: 1.65; padding-top: 4px; }
.kxmc-step-text strong { color: var(--kxmc-white) !important; }

/* Floating shop bar */
.kxmc-shop-bar-floating {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 130%);
  display: flex; align-items: center; gap: 16px;
  background: rgba(18, 18, 18, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid #2C2C2C; padding: 10px 10px 10px 22px; border-radius: 999px;
  z-index: 50; transition: transform 0.35s ease; max-width: calc(100vw - 32px);
}
.kxmc-shop-bar-floating.kxmc-visible { transform: translate(-50%, 0); }
.kxmc-shop-bar-dish {
  font-size: 13px; font-weight: 600; color: var(--kxmc-grey) !important; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.kxmc-shop-btn--floating { padding: 10px 20px; font-size: 14px; white-space: nowrap; }

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .kxmc-app { padding: 16px; }
  .kxmc-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding-bottom: 30px; }
  .kxmc-card-body { padding: 12px 14px 16px; }
  .kxmc-card h3 { font-size: 16px; }
  .kxmc-card-chef { font-size: 12px; }

  .kxmc-back { margin: 0 0 16px; }

  .kxmc-journey { grid-template-columns: 1fr; gap: 0; }
  .kxmc-photo-sticky { position: static; border-radius: 14px; margin-bottom: 22px; }
  .kxmc-photo-sticky img { max-height: 280px; }
  .kxmc-content-col { max-width: none; padding-top: 0; }

  .kxmc-block { padding: 4px 0 32px; opacity: 1; transform: none; }
  .kxmc-overview h2 { font-size: 26px; }
  .kxmc-chef-row { flex-wrap: wrap; }
  .kxmc-description { font-size: 15px; margin-bottom: 20px; }

  .kxmc-shop-btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 14px; }

  .kxmc-section-label { font-size: 17px; margin: 0 0 14px; }

  .kxmc-ingredient-list { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .kxmc-ingredient-list li { font-size: 13px; padding: 10px 0 10px 24px; }
  .kxmc-ingredient-list li::before { top: 10px; font-size: 13px; }

  .kxmc-step-row { gap: 12px; }
  .kxmc-step-text { font-size: 14px; }

  .kxmc-shop-bar-floating { left: 16px; right: 16px; bottom: 16px; transform: translateY(130%); padding: 8px 8px 8px 16px; }
  .kxmc-shop-bar-floating.kxmc-visible { transform: translateY(0); }
  .kxmc-shop-bar-dish { display: block; font-size: 12px; max-width: 38%; }
  .kxmc-shop-btn--floating { flex: 1; justify-content: center; padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
  .kxmc-grid { grid-template-columns: 1fr 1fr; }
}
