/* =========================================================
   myg-recipe-custom.css  |  Single recept (/recept/{slug}/)
   TISZTÍTOTT, DUPLIKÁCIÓMENTES VERZIÓ
   ========================================================= */

/* Biztonsági scope: csak a recept oldalon hasson */
.myg-recipe-single {
  --myg-card-radius: 20px;
  --myg-card-radius-sm: 14px;
  --myg-card-shadow: 0 10px 30px rgba(0,0,0,.08);
  --myg-border: 1px solid rgba(0,0,0,.07);
  --myg-soft-bg: rgba(255,255,255,.92);
  --myg-accent: #ff8630;
  --myg-accent-w: 8px;
  --myg-row-radius: 16px;
  --myg-font-head: "Poppins", sans-serif;
}

/* ---------------------------------------------------------
   1. ALAP KONTÉNEREK ÉS HÁTTÉR
   --------------------------------------------------------- */

/* Fő konténer és a külső keretek tisztítása */
.myg-recipe-single .myg-recipe-container,
.myg-recipe-single .entry-content,
.myg-recipe-single .site-content {
  /* Itt növeltem meg 1100-ról 1320px-re a szélességet */
  max-width: 1320px !important; 
  margin: 0 auto;
  padding: 18px;
  
  /* Szlogen javítás miatti nullázás */
  margin-top: 0 !important;
  padding-top: 0 !important;
  
  /* Háttér tisztítás (dupla keret ellen) */
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Fő kártya stílus - CSAK EZEN LEGYEN HÁTTÉR ÉS KERET */
.myg-recipe-single .myg-recipe-article {
  background: var(--myg-soft-bg);
  border: var(--myg-border);
  border-radius: var(--myg-card-radius);
  box-shadow: var(--myg-card-shadow);
  padding: 22px;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

/* Szlogen / Wallpaper javítás */
.myg-slogan-wallpaper-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 0px !important;
  padding-top: 0px !important;
  position: relative;
  z-index: 10;
}

.myg-recipe-slogan-spacer {
  display: block !important;
  height: 40px !important;
  width: 100%;
}

.myg-recipe-article .mygasztro-section-title {
  display: none !important;
}

/* ---------------------------------------------------------
   2. FELSŐ SZEKCIÓ (HEADER) - TISZTA, ABSZOLÚT IGAZÍTÁS
   --------------------------------------------------------- */
.myg-recipe-single .myg-header {
  margin-bottom: 22px;
}

/* --- 2 OSZLOPOS GRID --- */
.myg-recipe-single .myg-header-two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* Ideális arány */
  gap: 30px;
  align-items: stretch !important; /* Egyforma magasság */
  position: relative; /* Referencia pont */
}

/* --- BAL OSZLOP: KÉP --- */
.myg-recipe-single .myg-header-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.myg-recipe-single .myg-featured-image {
  width: 100%;
  aspect-ratio: 1 / 1 !important; /* Négyzet */
  height: auto !important;
  border-radius: var(--myg-card-radius);
  overflow: hidden;
  background: rgba(0,0,0,.04);
  position: relative;
  margin: 0 !important;
}

.myg-recipe-single .myg-featured-image img {
  position: absolute !important;
  top: 0; left: 0;
  width: 100% !important; height: 100% !important;
  object-fit: cover !important; display: block;
}

/* --- JOBB OSZLOP: TARTALOM --- */
.myg-recipe-single .myg-header-right {
  min-width: 0;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  position: relative !important; /* FONTOS: Ez a horgony */
  /* Alul helyet hagyunk a gomboknak/üzenetnek, hogy ne csússzanak össze a szöveggel */
  padding-bottom: 70px !important; 
  gap: 18px !important;
}

/* --- CÍM, META, TÁPÉRTÉK (A tartalmi elemek) --- */
.myg-recipe-single .myg-title-card {
  background: #fff; border: var(--myg-border); border-radius: var(--myg-card-radius);
  padding: 14px 18px; box-shadow: 0 6px 16px rgba(0,0,0,.06);
  display: flex; flex-direction: column; justify-content: center; min-height: 90px;
}

.myg-recipe-single .myg-recipe-title {
  margin: 0 auto; text-align: center; font-size: 24px; line-height: 1.25;
  font-weight: 600; letter-spacing: -0.01em; height: 2.5em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}

.myg-recipe-single .myg-recipe-meta.myg-meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.myg-recipe-single .myg-meta-item {
  background: #fff; border: var(--myg-border); border-radius: 14px;
  padding: 10px; display: grid; gap: 4px; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,.05);
}
.myg-recipe-single .myg-meta-label { font-size: 11px; opacity: .7; }
.myg-recipe-single .myg-meta-value { font-size: 15px; font-weight: 600; }

.myg-recipe-single .myg-nutrition-header-box {
  background: rgba(255, 243, 224, .9); border: 1px solid rgba(255, 134, 48, .35);
  border-radius: var(--myg-card-radius); padding: 12px; min-height: 140px;
}
.myg-recipe-single .myg-nutrition-header-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.myg-recipe-single .myg-nutrition-header-item {
  background: #fff; border: var(--myg-border); border-radius: 12px;
  padding: 8px 4px; box-shadow: 0 3px 10px rgba(0,0,0,.05); text-align: center;
}
.myg-recipe-single .myg-nutrition-header-value { font-weight: 600; font-size: 15px; display: block;}
.myg-recipe-single .myg-nutrition-header-label { font-size: 10px; opacity: .7; display: block; margin-top: 4px; }
/* Patch: Szénhidrát középre */
.myg-recipe-single .myg-nutrition-header-grid .myg-nutrition-header-item:nth-child(3) .myg-nutrition-header-label {
  display: flex !important; justify-content: center !important; width: 100% !important;
}

/* --- AZ IGAZÍTÁS JAVÍTÁSA (ABSZOLÚT POZÍCIÓ) --- */
/* Ez a blokk mostantól "lebeg" a jobb oldali oszlop alján */
.myg-recipe-single .myg-header-actions {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 20;
}

/* HA GOMBOK VANNAK */
.myg-recipe-single .myg-header-actions:has(.myg-action-btn) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}

/* HA VENDÉG ÜZENET VAN */
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)) {
  display: block !important;
}

/* GOMBOK STÍLUSA */
.myg-recipe-single .myg-action-btn,
.myg-recipe-single button.myg-action-btn,
.myg-recipe-single .myg-header-actions .myg-btn {
  width: 100% !important;
  height: 48px !important;
  border-radius: 8px !important;
  background: #ff8630 !important; color: #fff !important;
  font-weight: 600 !important; font-size: 14px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  border: none !important; box-shadow: 0 4px 10px rgba(255, 134, 48, 0.2) !important;
}
.myg-recipe-single .myg-action-btn svg { fill: #fff !important; width: 20px; }

/* VENDÉG ÜZENET STÍLUSA */
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn))::before {
  content: "Silver / Gold / Diamond tagsággal a recept menthető, szerkeszthető, listához adható, étrendbe illeszthető, vagy naplózható! 👉 Tudj meg többet!";
  display: block;
  background: rgba(255, 134, 48, 0.02);
  border: 1px dashed rgba(255, 134, 48, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  color: #666; font-size: 14px; line-height: 1.35; text-align: center; font-style: italic;
  box-sizing: border-box !important;
  /* Mivel abszolút pozícióban vagyunk, biztosítjuk a magasságot */
  min-height: 48px; display: flex; align-items: center; justify-content: center;
}
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)):hover::before {
  background: rgba(255, 134, 48, 0.08); border-color: rgba(255, 134, 48, 0.5);
  color: #ff8630; text-decoration: underline;
}

/* ---------------------------------------------------------
   3. CÍMKÁRTYA ÉS META ADATOK
   --------------------------------------------------------- */
.myg-recipe-single .myg-title-card {
  background: #fff;
  border: var(--myg-border);
  border-radius: var(--myg-card-radius);
  padding: 16px 18px;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100px;
}

.myg-recipe-single .myg-recipe-title {
  margin: 0 auto;
  text-align: center;
  font-size: 24px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.01em;
  height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* Meta Grid */
.myg-recipe-single .myg-recipe-meta.myg-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.myg-recipe-single .myg-meta-item {
  background: #fff;
  border: var(--myg-border);
  border-radius: var(--myg-card-radius-sm);
  padding: 12px;
  display: grid;
  gap: 6px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.myg-recipe-single .myg-meta-label { font-size: 11px; letter-spacing: .08em; opacity: .7; }
.myg-recipe-single .myg-meta-value { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------------------------------------------------
   4. TÁPÉRTÉK DOBOZ
   --------------------------------------------------------- */
.myg-recipe-single .myg-nutrition-header-box {
  background: rgba(255, 243, 224, .9);
  border: 1px solid rgba(255, 134, 48, .35);
  border-radius: var(--myg-card-radius);
  padding: 14px;
  min-height: 150px;
  padding-bottom: 22px;
}

.myg-recipe-single .myg-nutrition-header-title {
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 10px;
  opacity: .85;
}

.myg-recipe-single .myg-nutrition-header-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.myg-recipe-single .myg-nutrition-header-item {
  background: #fff;
  border: var(--myg-border);
  border-radius: 12px;
  padding: 10px 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.myg-recipe-single .myg-nutrition-header-value {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  width: 100%;
  text-align: center;
}

.myg-recipe-single .myg-nutrition-header-label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: .7;
  width: 100%;
  text-align: center;
  padding: 0 !important;
}

/* Patch: Szénhidrát címke középre */
.myg-recipe-single .myg-nutrition-header-grid .myg-nutrition-header-item:nth-child(3) .myg-nutrition-header-label {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 4px !important;
  padding: 0 !important;
  width: 100% !important;
  text-align: center !important;
}

/* ---------------------------------------------------------
   5. GOMBOK (ACTIONS) - JAVÍTOTT POZÍCIÓ
   --------------------------------------------------------- */
.myg-recipe-single .myg-header-actions {
  /* JAVÍTÁS: Ez tolja le a gombokat az aljára */
  margin-top: auto !important; 
  
  display: grid !important;
  grid-template-columns: 1fr 1fr !important; /* Egymás mellett desktopon */
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
}

/* Gomb stílusok (egységesítve a fájl végéről) */
.myg-recipe-single .myg-action-btn,
.myg-recipe-single button.myg-action-btn,
.myg-recipe-single .myg-header-actions .myg-btn,
.myg-recipe-single .myg-header-actions button,
.myg-recipe-single .myg-header-actions a.myg-action-btn {
  font-family: var(--myg-font-head) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  padding: 0 10px !important;
  min-height: 48px !important;
  border: 0 !important;
  box-shadow: 0 4px 10px rgba(255, 134, 48, 0.2) !important;
  transition: transform .12s ease, filter .12s ease;
  white-space: nowrap;
  
  /* Színek */
  background: #ff8630 !important;
  color: #fff !important;
}

.myg-recipe-single .myg-action-btn:hover,
.myg-recipe-single .myg-header-actions button:hover {
  transform: translateY(-2px) !important;
  background: #e67322 !important;
}

/* Ikonok */
.myg-recipe-single .myg-action-btn *,
.myg-recipe-single .myg-action-btn svg,
.myg-recipe-single .myg-header-actions svg,
.myg-recipe-single .myg-header-actions i {
  fill: #fff !important;
  color: #fff !important;
  filter: brightness(0) invert(1) !important;
  width: 20px !important; height: 20px !important;
}

/* Vendég üzenet */
.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)) {
  display: block !important;
  grid-template-columns: 1fr !important;
  cursor: pointer !important;
  margin-top: -5px !important;
  position: relative;
  z-index: 10;
}

.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn))::before {
  content: "Silver / Gold / Diamond tagsággal a recept menthető, szerkeszthető, listához adható, étrendbe illeszthető, vagy naplózható! 👉 Tudj meg többet!";
  display: block;
  background: rgba(255, 134, 48, 0.02);
  border: 1px dashed rgba(255, 134, 48, 0.25);
  border-radius: 12px;
  padding: 6px 12px;
  color: #666;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  font-style: italic;
  width: 100%;
  transition: all 0.2s ease;
}

.myg-recipe-single .myg-header-actions:not(:has(.myg-action-btn)):hover::before {
  background: rgba(255, 134, 48, 0.08);
  border-color: rgba(255, 134, 48, 0.5);
  color: #ff8630;
  text-decoration: underline;
}

/* ---------------------------------------------------------
   6. TARTALMI SZEKCIÓK (Hozzávalók, Elkészítés, Megjegyzés)
   + RECEPT FOOTER GOMBOK
   Cél:
   - hozzávalók és elkészítés egységes bal oldali narancs díszcsík
   - elkészítésnél is teljes magasságú csík
   - megjegyzés külső és belső blokk narancsos verzió
   - új 3 gombos footer elrendezés
   ITT tudod állítani:
   - csík vastagság: --myg-side-accent-w
   - külső megjegyzés háttér: --myg-note-shell-bg
   - belső megjegyzés háttér: --myg-note-inner-bg
   --------------------------------------------------------- */

.myg-recipe-single {
  --myg-side-accent-w: 6px;
  --myg-note-shell-bg: #fff6ee;
  --myg-note-inner-bg: #fff3eb;
  --myg-note-border: rgba(255, 134, 48, 0.16);
}

/* SZEKCIÓ CÍMEK */
.myg-recipe-single .myg-recipe-article :is(h2,h3):not(.myg-recipe-title) {
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-size: clamp(20px, 1.15vw + 12px, 24px);
  border-bottom: 3px solid #ff8a3d;
  padding-bottom: 0.5rem;
  margin: 2.4rem 0 1.5rem;
  display: flex;
  align-items: center;
  position: relative;
}

.myg-recipe-single .myg-recipe-article :is(h2,h3):not(.myg-recipe-title):first-of-type {
  margin-top: 1.6rem;
}

/* =========================
   HOZZÁVALÓK
   Cél:
   - a narancs jelölés ne külön ráerőszakolt pseudo-csík legyen
   - hanem a kártya saját bal oldali kerete
   - így szépen követi a lekerekítést
   ========================= */

.myg-recipe-single .myg-ingredients-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 14px !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-item {
  position: relative !important;
  background: #fff !important;
  background-image: none !important;

  border: var(--myg-border) !important;
  border-left: 6px solid #ff8630 !important;
  border-radius: var(--myg-row-radius) !important;

  box-shadow: 0 4px 14px rgba(0,0,0,.06) !important;
  padding: 14px 16px 14px 18px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 14px !important;
  row-gap: 8px !important;

  overflow: hidden !important;
  box-sizing: border-box !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-item::before,
.myg-recipe-single .myg-ingredients-list .ingredient-item::after {
  content: none !important;
  display: none !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-main {
  display: block !important;
  min-width: 0 !important;
  line-height: 1.45 !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-quantity,
.myg-recipe-single .myg-ingredients-list .ingredient-unit,
.myg-recipe-single .myg-ingredients-list .ingredient-name {
  display: inline !important;
  white-space: normal !important;
  word-break: normal !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-quantity {
  margin-right: 2px !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-unit {
  margin-right: 8px !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-quantity,
.myg-recipe-single .myg-ingredients-list .ingredient-unit {
  color: #ff8630 !important;
  font-weight: 600 !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-name {
  font-weight: 400 !important;
  color: #222 !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-kcal {
  margin-left: 0 !important;
  justify-self: end !important;
  align-self: center !important;
  background: rgba(0,0,0,.06) !important;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  opacity: .85 !important;
  white-space: nowrap !important;
}

/* HOZZÁVALÓK – MOBIL FINOMÍTÁS */
@media (max-width: 500px) {
  .myg-recipe-single .myg-ingredients-list .ingredient-item {
    padding: 12px 12px 12px 14px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 10px !important;
    align-items: start !important;
    border-left-width: 5px !important;
  }

  .myg-recipe-single .myg-ingredients-list .ingredient-main {
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
  }

  .myg-recipe-single .myg-ingredients-list .ingredient-quantity,
  .myg-recipe-single .myg-ingredients-list .ingredient-unit,
  .myg-recipe-single .myg-ingredients-list .ingredient-name {
    font-size: 14px !important;
  }

  .myg-recipe-single .myg-ingredients-list .ingredient-unit {
    margin-right: 4px !important;
  }

  .myg-recipe-single .myg-ingredients-list .ingredient-kcal {
    justify-self: end !important;
    align-self: start !important;
    font-size: 13px !important;
    padding: 7px 11px !important;
  }
}

/* =========================
   ELKÉSZÍTÉS
   ========================= */
.myg-recipe-single .myg-steps-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 14px !important;
  counter-reset: mygstep !important;
}

.myg-recipe-single .myg-steps-list li,
.myg-recipe-single .myg-steps-list .step-item {
  list-style: none !important;
}

.myg-recipe-single .myg-steps-list .step-item::marker {
  content: none !important;
}

.myg-recipe-single .myg-steps-list .step-item {
  counter-increment: mygstep !important;
  position: relative !important;
  background: #fff !important;
  border: var(--myg-border) !important;
  border-radius: var(--myg-row-radius) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.06) !important;
  overflow: hidden !important;
  padding: 16px 18px 16px 46px !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
}

.myg-recipe-single .myg-steps-list .step-item::before {
  content: none !important;
}

.myg-recipe-single .myg-steps-list .step-item::after {
  content: counter(mygstep) "." !important;
  position: absolute !important;
  left: 18px !important;
  top: 16px !important;                 /* ITT tudod állítani */
  transform: none !important;
  font-weight: 600 !important;
  color: #ff8630 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;         /* igazodik a szöveg sorához */
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.myg-recipe-single .myg-steps-list .step-description {
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: #222 !important;
  margin: 0 !important;
}

@media (max-width: 700px) {
  .myg-recipe-single .myg-steps-list .step-item {
    padding: 14px 14px 14px 40px !important;
  }

  .myg-recipe-single .myg-steps-list .step-item::after {
    left: 14px !important;
    top: 15px !important;                 /* ITT tudod állítani mobilon */
    font-size: 15px !important;
    line-height: 1.55 !important;
  }
}

/* =========================
   MEGJEGYZÉS – KÜLSŐ BLOKK
   ========================= */
.myg-recipe-single .recipe-section.recipe-notes.myg-notes {
  position: relative !important;
  background: var(--myg-note-shell-bg) !important;
  border: 1px solid var(--myg-note-border) !important;
  border-left: var(--myg-side-accent-w) solid #ff8630 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  padding: 20px 24px !important;
  overflow: hidden !important;
}

.myg-recipe-single .recipe-section.recipe-notes.myg-notes .section-title {
  color: #ff8630 !important;
  border-bottom-color: #ff8630 !important;
}

/* =========================
   MEGJEGYZÉS – BELSŐ SZÖVEGDOBOZ
   ========================= */
.myg-recipe-single .recipe-section.recipe-notes.myg-notes .notes-content.myg-notes-content,
.myg-recipe-single .myg-notes-content {
  position: relative !important;
  background: #ffffff !important;
  color: #222 !important;
  border: 1px solid rgba(255, 134, 48, 0.12) !important;
  border-radius: var(--myg-row-radius) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.04) !important;
  padding: 14px 16px 14px 30px !important;
  line-height: 1.55 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.myg-recipe-single .recipe-section.recipe-notes.myg-notes .notes-content.myg-notes-content::before,
.myg-recipe-single .myg-notes-content::before {
  content: none !important;
  display: none !important;
}

/* =========================
   RECEPT FOOTER – 4 GOMBOS ELRENDEZÉS
   Cél:
   - felső sor: Szerkesztés / Másolat / Törlés
   - alsó sor: Vissza a Saját Recepttárba
   - színek szerep szerint:
     szerkesztés = fő narancs
     másolat = narancs keretes
     törlés = piros keretes
     vissza = semleges szürke
   ========================= */

.myg-recipe-single .myg-recipe-footer__actions {
  margin-top: 18px !important;
  padding-top: 26px !important;
  border-top: 1px solid rgba(0,0,0,.08) !important;

  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 280px)) !important;
  justify-content: center !important;
  column-gap: 28px !important;
  row-gap: 18px !important;

  position: relative !important;
}

/* 1. sor: receptműveletek */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

/* 2. sor: vissza gomb */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn {
  grid-column: 1 / -1 !important;
  grid-row: 2 !important;
  justify-self: center !important;
  width: 280px !important;
  max-width: 280px !important;
  margin-top: 18px !important;
  position: relative !important;
}

/* elválasztó a receptműveletek és a visszagomb között */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn::before {
  content: "" !important;
  position: absolute !important;
  top: -18px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 760px !important;
  max-width: 80vw !important;
  height: 1px !important;
  background: rgba(0,0,0,.10) !important;
  border-radius: 999px !important;
}

/* közös gombalap */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn {
  min-height: 46px !important;
  width: 100% !important;
  max-width: 280px !important;

  border-radius: 14px !important;
  padding: 0 16px !important;
  text-decoration: none !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;

  font-family: var(--myg-font-head) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
  text-align: center !important;

  cursor: pointer !important;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease !important;
  box-sizing: border-box !important;
}

/* szerkesztés – fő gomb */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn {
  background: #ff8630 !important;
  color: #ffffff !important;
  border: 1px solid #ff8630 !important;
  box-shadow: 0 6px 16px rgba(255,134,48,.18) !important;
}

/* másolat – narancs keretes */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn {
  background: #ffffff !important;
  color: #ff8630 !important;
  border: 1px solid rgba(255,134,48,.42) !important;
  box-shadow: 0 5px 14px rgba(255,134,48,.08) !important;
}

/* törlés – piros keretes */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn {
  background: #ffffff !important;
  color: #e45858 !important;
  border: 1px solid rgba(228,88,88,.38) !important;
  box-shadow: 0 5px 14px rgba(228,88,88,.07) !important;
}

/* vissza – semleges */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn {
  background: #f6f6f6 !important;
  color: #555 !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  box-shadow: 0 5px 14px rgba(0,0,0,.05) !important;
}

/* ikonok – stabil CSS alapú megjelenítés */
.myg-recipe-single .myg-recipe-footer__actions .dashicons {
  display: none !important;
}

/* közös ikonhely */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn::before,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn::before,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn::before {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 2px !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
}

/* szerkesztés ikon */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn::before {
  content: "✎" !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* másolat ikon */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn::before {
  content: "📑" !important;
  color: #ff8630 !important;
}

/* törlés ikon */
.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn::before {
  content: "🗑️" !important;
  color: #e45858 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}

/* Vissza gomb szöveg – href alapján, nyíl nélkül */

.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn {
  font-size: 0 !important;
  color: transparent !important;
}

.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn::after {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;

  color: #555 !important;
  position: static !important;
}

/* Saját recepttárból nyitott saját recept */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn[href*="sajat-receptek"]::after {
  content: "🏠 Vissza a Saját Recepttárba" !important;
}

/* GasztroTárból / megosztott receptből nyitott recept */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn[href*="gasztrotar"]::after {
  content: "🏠 Vissza a GasztroTárba" !important;
}


/* hover */
.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn:hover,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn:hover,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn:hover,
.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn:hover {
  transform: translateY(-2px) !important;
}

.myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn:hover {
  background: #f57922 !important;
  border-color: #f57922 !important;
}

.myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn:hover {
  background: #fff7f1 !important;
  border-color: rgba(255,134,48,.60) !important;
}

.myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn:hover {
  background: #fff4f4 !important;
  border-color: rgba(228,88,88,.55) !important;
}

.myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn:hover {
  background: #eeeeee !important;
  color: #333 !important;
}

/* mobil */
@media (max-width: 760px) {
  .myg-recipe-single .myg-recipe-footer__actions {
    grid-template-columns: 1fr !important;
    row-gap: 10px !important;
    padding-top: 22px !important;
  }

  .myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  .myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn {
    grid-column: 1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 18px !important;
  }

  .myg-recipe-single .myg-recipe-footer__actions > a.button.myg-btn::before {
    width: 180px !important;
    top: -15px !important;
  }

  .myg-recipe-single .myg-recipe-footer__actions > .recipe-edit-btn,
  .myg-recipe-single .myg-recipe-footer__actions > .recipe-duplicate-btn,
  .myg-recipe-single .myg-recipe-footer__actions > .recipe-delete-btn {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* =========================
   RECEPT FOOTER – FELSŐ CSÍK + LEVEGŐ FINOMÍTÁS
   Cél:
   - dupla felső csíkból csak egy maradjon
   - a gombblokk ne csússzon túl mélyre
   ========================= */

.myg-recipe-single .myg-recipe-footer__actions {
  border-top: none !important;
  padding-top: 12px !important;
  margin-top: 8px !important;
}

/* Mobilon is húzzuk feljebb */
@media (max-width: 760px) {
  .myg-recipe-single .myg-recipe-footer__actions {
    padding-top: 10px !important;
    margin-top: 6px !important;
  }
}

/* ---------------------------------------------------------
   7. LISTA VÁLASZTÓ MODAL (TISZTÍTOTT, FIXÁLT)
   --------------------------------------------------------- */
.myg-list-select-modal {
  position: fixed !important; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6) !important; backdrop-filter: blur(3px); z-index: 999999 !important;
}

.myg-list-select-modal__content {
  position: fixed !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important;
  width: 90% !important; max-width: 480px !important; max-height: 90vh !important;
  background: #ffffff !important; padding: 24px !important; border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25) !important; border: 1px solid rgba(0,0,0,0.05) !important;
  z-index: 100000 !important; display: flex !important; flex-direction: column !important; box-sizing: border-box !important;
}

.myg-list-select-modal__title {
  margin: 0 0 15px 0 !important; padding-right: 30px !important; font-size: 20px !important;
  font-weight: 600 !important; color: #333 !important; text-align: center !important; line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
}

.myg-list-select-modal__close {
  position: absolute !important; top: 15px !important; right: 15px !important;
  background: #f1f1f1 !important; color: #666 !important; border: none !important; border-radius: 50% !important;
  width: 32px !important; height: 32px !important; display: flex !important; align-items: center !important;
  justify-content: center !important; font-size: 20px !important; cursor: pointer !important; transition: background 0.2s !important;
}
.myg-list-select-modal__close:hover { background: #e5e5e5 !important; color: #333 !important; }

.myg-list-select-modal__body { display: flex !important; flex-direction: column !important; min-height: 0 !important; flex: 1 !important; }
.myg-list-options { flex: 1 !important; overflow-y: auto !important; max-height: 300px !important; padding-right: 5px !important; display: flex !important; flex-direction: column !important; gap: 8px !important; }

.myg-list-option {
  padding: 12px 16px !important; border: 1px solid #eee !important; border-radius: 10px !important;
  background: #fff !important; display: flex !important; justify-content: space-between !important;
  align-items: center !important; cursor: pointer !important; transition: all 0.2s !important;
}
.myg-list-option:hover { border-color: #ff8630 !important; background: #fff8f3 !important; }
.myg-list-option__name { font-weight: 600 !important; color: #333 !important; }
.myg-list-option__count { font-size: 12px !important; background: #f1f1f1 !important; padding: 4px 8px !important; border-radius: 12px !important; color: #666 !important; }

.myg-list-select-modal__divider {
  text-align: center !important; margin: 15px 0 !important; font-size: 12px !important; color: #999 !important;
  font-weight: 600 !important; text-transform: none !important;
}

.myg-list-select-modal__new { display: flex !important; gap: 10px !important; padding-top: 5px !important; align-items: stretch !important; }

#myg-new-list-input {
  flex: 1 !important; height: 44px !important; min-height: 44px !important;
  border: 1px solid #ddd !important; border-radius: 8px !important; padding: 0 12px !important;
  font-size: 14px !important; outline: none !important; box-shadow: none !important; box-sizing: border-box !important;
}
#myg-new-list-input:focus { border-color: #ff8630 !important; }

#myg-create-new-list-btn {
  letter-spacing: 0.01em !important;
  height: 44px !important; min-height: 44px !important; padding: 0 20px !important;
  background: #ff8630 !important; color: #fff !important; border: none !important; border-radius: 8px !important;
  font-size: 14px !important; font-weight: 600 !important; cursor: pointer !important; white-space: nowrap !important;
}

/* ---------------------------------------------------------
   8. MEDIA QUERIES (TABLET ÉS MOBIL FIX - VÉGLEGES)
   --------------------------------------------------------- */

/* TABLET ÉS MOBIL NÉZET (900px alatt) */
@media (max-width: 900px) {

  /* 1. SZÉLESSÉG JAVÍTÁSA (Hogy ne legyen nagy margó két oldalt) */
  .myg-recipe-single .myg-recipe-container {
    padding-left: 10px !important; /* Kisebb külső margó */
    padding-right: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .myg-recipe-single .myg-recipe-article {
    padding: 20px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  /* 2. ELRENDEZÉS: EGYMÁS ALÁ */
  .myg-recipe-single .myg-header-two-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  /* 3. KÉP JAVÍTÁSA TABLETEN ÉS MOBILON (Teljes szélesség) */
  .myg-recipe-single .myg-header-left {
    width: 100% !important; /* Konténer teljes szélesség */
    display: block !important;
    margin-bottom: 10px !important;
  }

  .myg-recipe-single .myg-featured-image {
    width: 100% !important; /* Kép teljes szélesség */
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important; /* Négyzetes marad */
    display: block !important;
    margin: 0 auto !important; /* Középre igazítás biztosíték */
  }

  /* 4. JOBB OLDAL (SZÖVEG) */
  .myg-recipe-single .myg-header-right {
    width: 100% !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    min-height: auto !important; /* Reset fix magasság */
  }

  /* Tartalmi elemek (Cím, Tápérték) rugalmassága */
  .myg-recipe-single .myg-title-card,
  .myg-recipe-single .myg-nutrition-header-box {
    min-height: auto !important;
    height: auto !important;
  }
  
  /* Cím méretének növelése, hogy ne törjön furcsán */
  .myg-recipe-single .myg-recipe-title {
    font-size: 24px !important;
    height: auto !important;
    -webkit-line-clamp: unset !important;
  }

  /* Tápérték rács: 3 oszlop tableten */
  .myg-recipe-single .myg-nutrition-header-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  /* Gombok és Vendég üzenet visszaállítása a folyamba */
  .myg-recipe-single .myg-header-actions {
    position: relative !important;
    bottom: auto !important; left: auto !important;
    width: 100% !important;
    margin-top: 15px !important;
    z-index: 1 !important;
  }
}

/* KIFEJEZETTEN MOBIL (500px alatt) - MÉG SZÉLESEBB MEGJELENÉS */
@media (max-width: 500px) {
  
  /* 1. KÜLSŐ MARGÓK MINIMALIZÁLÁSA (Hogy szélesebb legyen, mint a címsor) */
  .myg-recipe-single .myg-recipe-container {
    padding-left: 5px !important; /* Szinte teljesen kimegy a széléig */
    padding-right: 5px !important;
  }

  .myg-recipe-single .myg-recipe-article {
    padding: 15px !important; /* Belső margó is kisebb */
    border-radius: 12px !important; /* Kisebb kerekítés, hogy ne nézzen ki bután a szélen */
  }

  /* 2. TÁPÉRTÉK JAVÍTÁS (Hogy ne csússzon össze: 2 oszlop) */
  .myg-recipe-single .myg-nutrition-header-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: 10px !important;
    row-gap: 10px !important;
  }
  
  /* 3. GOMBOK EGYMÁS ALÁ */
  .myg-recipe-single .myg-header-actions:has(.myg-action-btn) {
    grid-template-columns: 1fr !important;
  }
  
  /* 4. HOZZÁVALÓK LISTA MOBILON */
.myg-recipe-single .myg-ingredients-list .ingredient-item {
  padding: 12px 12px 12px 16px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  row-gap: 10px !important;
  align-items: start !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-main {
  width: 100% !important;
  font-size: 14px !important;            /* kicsit kisebb betű mobilon */
  line-height: 1.42 !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-quantity,
.myg-recipe-single .myg-ingredients-list .ingredient-unit,
.myg-recipe-single .myg-ingredients-list .ingredient-name {
  font-size: 14px !important;
}

.myg-recipe-single .myg-ingredients-list .ingredient-kcal {
  justify-self: end !important;
  align-self: start !important;
  font-size: 13px !important;
  padding: 7px 11px !important;
}
  
  /* 5. MODAL JAVÍTÁS */
  .myg-list-select-modal__content { width: 96% !important; padding: 15px !important; }
  #myg-new-list-input, #myg-create-new-list-btn { width: 100% !important; margin-bottom: 8px; }
}

/* =========================================================
   RECEPT OLDAL – MEGOSZTÁSI PANEL
   Shopping listás logikára igazítva
   Tedd a fájl LEGALJÁRA
   ========================================================= */

.myg-recipe-single .myg-share-panel {
  background: #f8f9fa !important;              /* ITT tudod állítani a panel hátterét */
  border: 1px solid #eeeeee !important;
  border-radius: 12px !important;
  padding: 15px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  margin-top: 0 !important;
  box-shadow: none !important;
}

/* A kis címkék ne jelenjenek meg külön sorban */
.myg-recipe-single .myg-share-panel .myg-share-label {
  display: none !important;
}

/* Felső sor: input + másolás */
.myg-recipe-single .myg-share-panel .myg-share-link-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  margin-bottom: 10px !important;
}

/* Link input */
.myg-recipe-single .myg-share-panel .myg-share-url-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 40px !important;
  background: #ffffff !important;
  border: 1px solid #dddddd !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  color: #555555 !important;
  box-shadow: none !important;
}

/* Másolás gomb – ugyanaz a logika, mint shoppingnál */
.myg-recipe-single .myg-share-panel .myg-share-copy-btn,
.myg-recipe-single .myg-share-panel .myg-btn--small.myg-share-copy-btn {
  width: calc(25% - 7.5px) !important;        /* ITT van a trükk: ugyanakkora, mint 1 alsó gomb */
  min-width: 160px !important;                /* ITT tudod finomítani */
  flex: none !important;
  flex-shrink: 0 !important;
  height: 40px !important;
  background: #333333 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0 15px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  box-shadow: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.myg-recipe-single .myg-share-panel .myg-share-copy-btn:hover,
.myg-recipe-single .myg-share-panel .myg-btn--small.myg-share-copy-btn:hover {
  background: #000000 !important;
  color: #ffffff !important;
  transform: none !important;
}

/* Másolás ikon */
.myg-recipe-single .myg-share-panel .myg-share-copy-btn .myg-icon,
.myg-recipe-single .myg-share-panel .myg-share-copy-btn svg,
.myg-recipe-single .myg-share-panel .myg-share-copy-btn img,
.myg-recipe-single .myg-share-panel .myg-share-copy-btn i {
  margin-right: 6px !important;
  vertical-align: middle !important;
}

/* Alsó gombsor */
.myg-recipe-single .myg-share-panel .myg-share-buttons {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding-top: 10px !important;
  border-top: 1px solid #e6edf2 !important;   /* nagyon halvány elválasztó */
}

/* Megosztó gombok */
.myg-recipe-single .myg-share-panel .myg-share-btn {
  height: 40px !important;
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #333333 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.myg-recipe-single .myg-share-panel .myg-share-btn:hover {
  background: #f0f0f0 !important;
  border-color: #cccccc !important;
  transform: none !important;
}

/* Ikon spacing a megosztó gombokban */
.myg-recipe-single .myg-share-panel .myg-share-btn svg,
.myg-recipe-single .myg-share-panel .myg-share-btn img,
.myg-recipe-single .myg-share-panel .myg-share-btn i,
.myg-recipe-single .myg-share-panel .myg-share-btn .emoji {
  margin-right: 6px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

/* =========================
   MOBIL
   ========================= */
@media (max-width: 760px) {
  .myg-recipe-single .myg-share-panel {
    padding: 14px 14px !important;
  }

  .myg-recipe-single .myg-share-panel .myg-share-link-row {
    flex-wrap: wrap !important;
  }

  .myg-recipe-single .myg-share-panel .myg-share-url-input {
    width: 100% !important;
    flex: 1 1 100% !important;
  }

  .myg-recipe-single .myg-share-panel .myg-share-copy-btn,
  .myg-recipe-single .myg-share-panel .myg-btn--small.myg-share-copy-btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .myg-recipe-single .myg-share-panel .myg-share-buttons {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* =========================
   RECEPT OLDAL – fölös vízszintes csíkok eltüntetése
   ========================= */

.myg-recipe-single hr,
.myg-recipe-single .myg-recipe-article hr {
  display: none !important;
  border: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}