/*
 Theme Name:   LetsGoGlutenFree Child Theme
 Theme URI:    https://www.letsgoglutenfree.com
 Description:  LetsGoGlutenFree Theme
 Author:       LetsGoGlutenFree
 Author URI:   https://www.letsgoglutenfree.com
 Template:     generatepress
 Text Domain:  lets-go-gluten-free
 Version:      1.0.0
*/

/* ============================================================
   LGGF Recipe Page Styles — v1.0
   All custom styles for recipe pages on LetsGoGlutenFree.com
   Applied via WordPress Additional CSS (Appearance > Customize)
   ============================================================ */

/* ----------------------------------------------------------
   1. FEATURED IMAGE HERO
   Shows the WordPress featured image at the top of recipe pages
   ---------------------------------------------------------- */
.page-template-default .lggf-featured-image-hero {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  border-radius: 12px;
  margin: 0 0 2rem 0;
}
.lggf-featured-image-hero img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
}

/* ----------------------------------------------------------
   2. JUMP TO RECIPE BUTTON
   ---------------------------------------------------------- */
.lggf-jump-btn-wrap {
  margin: 1rem 0 1.5rem;
}
.lggf-jump-btn {
  display: inline-block;
  background: #4a7c59;
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.6rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
}
.lggf-jump-btn:hover {
  background: #3a6347;
  color: #fff !important;
}

/* ----------------------------------------------------------
   3. WHY YOU'LL LOVE THIS BOX
   ---------------------------------------------------------- */
.lggf-why-love {
  background: #f0f7f2;
  border-left: 4px solid #4a7c59;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.lggf-why-love h3 {
  font-size: 1.1rem;
  color: #2e5e3e;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}
.lggf-why-love ul {
  margin: 0;
  padding-left: 1.25rem;
}
.lggf-why-love ul li {
  margin-bottom: 0.4rem;
  color: #333;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   4. PRO TIPS BOX
   ---------------------------------------------------------- */
.lggf-pro-tips {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.lggf-pro-tips h4 {
  font-size: 1.05rem;
  color: #7a5800;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}
.lggf-pro-tips ol {
  margin: 0;
  padding-left: 1.5rem;
}
.lggf-pro-tips ol li {
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   5. STORAGE GUIDE BOX
   ---------------------------------------------------------- */
.lggf-storage {
  background: #e8f4fd;
  border-left: 4px solid #1976d2;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.lggf-storage h4 {
  font-size: 1.05rem;
  color: #0d47a1;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}
.lggf-storage ul {
  margin: 0;
  padding-left: 1.25rem;
}
.lggf-storage ul li {
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   6. SUBSTITUTIONS BOX
   ---------------------------------------------------------- */
.lggf-substitutions {
  background: #fce4ec;
  border-left: 4px solid #c2185b;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.lggf-substitutions h4 {
  font-size: 1.05rem;
  color: #880e4f;
  margin: 0 0 0.75rem 0;
  font-weight: 700;
}
.lggf-substitutions ul {
  margin: 0;
  padding-left: 1.25rem;
}
.lggf-substitutions ul li {
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   7. INTERNAL LINK BOX
   ---------------------------------------------------------- */
.lggf-link-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.lggf-link-box .lb-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.lggf-link-box .lb-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}
.lggf-link-box a {
  color: #4a7c59;
  font-weight: 600;
  text-decoration: underline;
}

/* ----------------------------------------------------------
   8. RECIPE CARD
   ---------------------------------------------------------- */
.lggf-recipe-card {
  background: #fff;
  border: 2px solid #4a7c59;
  border-radius: 16px;
  overflow: hidden;
  margin: 2.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-family: inherit;
}

/* Card Header */
.lggf-rc-header {
  background: #4a7c59;
  color: #fff;
  padding: 1.25rem 1.5rem;
}
.lggf-rc-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.lggf-rc-author {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* Card Actions */
.lggf-rc-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8f5e9;
  flex-wrap: wrap;
}
.lggf-rc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: all 0.2s;
  line-height: 1;
}
.lggf-rc-btn.print {
  background: #f5f5f5;
  color: #333 !important;
  border-color: #ddd;
}
.lggf-rc-btn.print:hover {
  background: #e0e0e0;
}
.lggf-rc-btn.pin {
  background: #e60023;
  color: #fff !important;
  border-color: #e60023;
}
.lggf-rc-btn.pin:hover {
  background: #c0001d;
}

/* Meta Stats Row */
.lggf-rc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1.5rem;
  border-bottom: 1px solid #e8f5e9;
  background: #f9fdf9;
}
.lggf-rc-meta-item {
  flex: 1;
  min-width: 80px;
  padding: 0.875rem 0.5rem;
  text-align: center;
  border-right: 1px solid #e8f5e9;
}
.lggf-rc-meta-item:last-child {
  border-right: none;
}
.lggf-rc-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.lggf-rc-meta-value {
  font-size: 1rem;
  font-weight: 700;
  color: #2e5e3e;
}

/* Ingredients Section */
.lggf-rc-ingredients {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8f5e9;
}
.lggf-rc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e5e3e;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Servings Multiplier */
.lggf-rc-multiplier {
  display: flex;
  gap: 0.35rem;
}
.lggf-rc-mult-btn {
  padding: 0.25rem 0.65rem;
  border: 2px solid #4a7c59;
  background: #fff;
  color: #4a7c59;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lggf-rc-mult-btn.active,
.lggf-rc-mult-btn:hover {
  background: #4a7c59;
  color: #fff;
}

/* Ingredient List */
.lggf-rc-ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lggf-rc-ingredient-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
  cursor: pointer;
}
.lggf-rc-ingredient-list li:last-child {
  border-bottom: none;
}
.lggf-rc-ingredient-list li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: #4a7c59;
  cursor: pointer;
}
.lggf-rc-ingredient-list li.checked span {
  text-decoration: line-through;
  color: #aaa;
}
.lggf-rc-ingredient-list .qty {
  font-weight: 700;
  color: #2e5e3e;
}
.lggf-rc-ingredient-list li.checked .qty {
  color: #aaa;
}

/* Instructions Section */
.lggf-rc-instructions {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e8f5e9;
}
.lggf-rc-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step-counter;
}
.lggf-rc-step-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.lggf-rc-step-num {
  background: #4a7c59;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.lggf-rc-step-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.6;
  flex: 1;
}
.lggf-rc-step-text strong {
  color: #2e5e3e;
  display: block;
  margin-bottom: 0.2rem;
}

/* Nutrition Section */
.lggf-rc-nutrition {
  padding: 1.25rem 1.5rem;
}
.lggf-rc-nutrition-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e5e3e;
  margin-bottom: 0.25rem;
}
.lggf-rc-nutrition-subtitle {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
}
.lggf-rc-nutrition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.lggf-rc-nutrition-item {
  background: #f9fdf9;
  border: 1px solid #e8f5e9;
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  text-align: center;
}
.lggf-rc-nutrition-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e5e3e;
  display: block;
}
.lggf-rc-nutrition-lbl {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.lggf-rc-nutrition-disclaimer {
  font-size: 0.75rem;
  color: #aaa;
  font-style: italic;
}

/* ----------------------------------------------------------
   9. FAQ SECTION (Rank Math)
   ---------------------------------------------------------- */
.wp-block-rank-math-faq-block {
  margin: 1.5rem 0;
}
.wp-block-rank-math-faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.rank-math-question {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #2e5e3e !important;
  padding: 1rem 1.25rem !important;
  margin: 0 !important;
  background: #f9fdf9;
  border-bottom: 1px solid #e8f5e9;
  line-height: 1.4 !important;
}
.rank-math-answer {
  padding: 0.875rem 1.25rem;
  background: #fff;
}
.rank-math-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   10. PRINT STYLES
   ---------------------------------------------------------- */
@media print {
  .lggf-jump-btn-wrap,
  .lggf-rc-actions,
  .lggf-rc-multiplier,
  .lggf-rc-ingredient-list input[type="checkbox"],
  .lggf-link-box,
  nav, header, footer,
  .wp-block-rank-math-faq-block {
    display: none !important;
  }
  .lggf-recipe-card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .lggf-rc-header {
    background: #4a7c59 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .lggf-rc-ingredient-list li {
    padding: 0.3rem 0;
  }
}

/* ----------------------------------------------------------
   11. MOBILE RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 600px) {
  .lggf-featured-image-hero img {
    height: 240px;
  }
  .lggf-rc-meta-item {
    min-width: 60px;
    padding: 0.6rem 0.25rem;
  }
  .lggf-rc-meta-label {
    font-size: 0.65rem;
  }
  .lggf-rc-meta-value {
    font-size: 0.9rem;
  }
  .lggf-rc-title {
    font-size: 1.15rem;
  }
  .lggf-rc-nutrition-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lggf-rc-section-title {
    flex-direction: column;
    align-items: flex-start;
  }
  .lggf-rc-actions {
    gap: 0.5rem;
  }
  .lggf-rc-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}


/* ============================================================
   LGGF FAQ Accordion Styles
   Native details/summary accordion for recipe FAQ sections
   ============================================================ */

.lggf-faq-accordion {
  margin: 1.5rem 0 2rem;
  border-radius: 8px;
  overflow: hidden;
}

.lggf-faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.lggf-faq-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lggf-faq-item[open] {
  border-color: #2d6a4f;
  box-shadow: 0 2px 8px rgba(45,106,79,0.12);
}

.lggf-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #f8f9fa;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s ease;
}

.lggf-faq-question::-webkit-details-marker {
  display: none;
}

.lggf-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: #2d6a4f;
  flex-shrink: 0;
  margin-left: 12px;
}

.lggf-faq-item[open] .lggf-faq-question {
  background: #f0f7f4;
  color: #2d6a4f;
}

.lggf-faq-item[open] .lggf-faq-question::after {
  content: '\2212';
}

.lggf-faq-answer {
  padding: 14px 18px 16px;
  background: #ffffff;
  border-top: 1px solid #e8f0ec;
}

.lggf-faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #333;
}

@media (max-width: 600px) {
  .lggf-faq-question {
    font-size: 0.93rem;
    padding: 12px 14px;
  }
  .lggf-faq-answer {
    padding: 12px 14px 14px;
  }
}
