/* ═══════════════════════════════════════════════════════════════════════════
   GFRG FRONTEND STYLES — Recipe Card + Jump Button + Print
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Jump to Recipe Button ───────────────────────────────────────────────── */
.gfrg-jump-wrap {
  margin: 18px 0 24px;
}
.gfrg-jump-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #16a34a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(22, 163, 74, .35);
  transition: background .2s, transform .15s, box-shadow .2s;
  letter-spacing: .01em;
}
.gfrg-jump-btn:hover {
  background: #15803d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 163, 74, .4);
}
.gfrg-jump-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Recipe Card Container ───────────────────────────────────────────────── */
.gfrg-recipe-card {
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin: 40px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* ── Card Header ─────────────────────────────────────────────────────────── */
.gfrg-rc-header {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  padding: 24px 28px 20px;
  color: #fff;
}
.gfrg-rc-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.gfrg-rc-title {
  margin: 0 !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  border: none !important;
  padding: 0 !important;
}
.gfrg-rc-stars {
  color: #fcd34d;
  font-size: 20px;
  letter-spacing: 2px;
  margin-top: 8px;
}

/* ── Print Button ────────────────────────────────────────────────────────── */
.gfrg-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.18);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
  flex-shrink: 0;
}
.gfrg-print-btn:hover { background: rgba(255,255,255,.28); }
.gfrg-print-btn svg { width: 15px; height: 15px; }

/* ── Timing Bar ──────────────────────────────────────────────────────────── */
.gfrg-rc-timing {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0;
  flex-wrap: wrap;
}
.gfrg-rc-time-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px;
  flex: 1;
  min-width: 80px;
}
.gfrg-rc-time-sep {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
  flex-shrink: 0;
}
.gfrg-rc-time-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #6b7280;
  margin-bottom: 4px;
}
.gfrg-rc-time-val {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

/* ── Card Body (2-col layout) ────────────────────────────────────────────── */
.gfrg-rc-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
}
@media (max-width: 680px) { .gfrg-rc-body { grid-template-columns: 1fr; } }

.gfrg-rc-col { padding: 24px 28px; }
.gfrg-rc-ingredients { border-right: 1px solid #e2e8f0; background: #fafff7; }
@media (max-width: 680px) { .gfrg-rc-ingredients { border-right: none; border-bottom: 1px solid #e2e8f0; } }

.gfrg-rc-col h3 {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #15803d !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 14px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid #dcfce7;
}

/* Ingredient groups */
.gfrg-rc-group-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #374151 !important;
  margin: 16px 0 8px !important;
  padding: 0 !important;
  border: none !important;
}
.gfrg-rc-ing-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
}
.gfrg-rc-ing-list li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px dashed #e9fae9;
  line-height: 1.5;
}
.gfrg-rc-ing-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* Instructions */
.gfrg-rc-steps {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  counter-reset: steps;
}
.gfrg-rc-steps li {
  counter-increment: steps;
  padding: 12px 0 12px 46px;
  position: relative;
  font-size: 14px;
  color: #374151;
  line-height: 1.65;
  border-bottom: 1px solid #f1f5f9;
}
.gfrg-rc-steps li:last-child { border-bottom: none; }
.gfrg-rc-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  background: #15803d;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.gfrg-rc-steps li strong { color: #15803d; }

/* ── Notes ───────────────────────────────────────────────────────────────── */
.gfrg-rc-notes {
  background: #fffbeb;
  border-top: 1px solid #e2e8f0;
  border-left: 4px solid #fbbf24;
  padding: 18px 28px;
}
.gfrg-rc-notes h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #92400e !important;
  margin: 0 0 10px !important;
}
.gfrg-rc-notes ul { padding-left: 18px; margin: 0; }
.gfrg-rc-notes ul li { font-size: 13px; color: #78350f; margin-bottom: 5px; }

/* ── Storage ─────────────────────────────────────────────────────────────── */
.gfrg-rc-storage {
  background: #eff6ff;
  border-top: 1px solid #e2e8f0;
  border-left: 4px solid #3b82f6;
  padding: 18px 28px;
}
.gfrg-rc-storage h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1e40af !important;
  margin: 0 0 10px !important;
}
.gfrg-rc-storage ul { padding-left: 18px; margin: 0; }
.gfrg-rc-storage ul li { font-size: 13px; color: #1e3a8a; margin-bottom: 5px; }

/* ── Nutrition ───────────────────────────────────────────────────────────── */
.gfrg-rc-nutrition {
  background: #f8fafc;
  border-top: 2px solid #e2e8f0;
  padding: 20px 28px;
}
.gfrg-rc-nutrition h4 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin: 0 0 14px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.gfrg-rc-nutrition h4 span {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.gfrg-rc-nut-grid {
  display: flex;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gfrg-rc-nut-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}
.gfrg-rc-nut-item:last-child { border-right: none; }
.gfrg-rc-nut-val { font-size: 18px; font-weight: 800; color: #15803d; line-height: 1; }
.gfrg-rc-nut-label { font-size: 10px; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.gfrg-rc-nut-disclaimer { font-size: 11px; color: #9ca3af; margin: 0; font-style: italic; }

/* ══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════════════════════════════════ */

#gfrg-print-area { display: none; }

@media print {
  /* Hide everything except print area */
  body > *:not(#gfrg-print-wrapper) { display: none !important; }
  body.gfrg-printing * { visibility: hidden; }
  body.gfrg-printing #gfrg-print-area,
  body.gfrg-printing #gfrg-print-area * { visibility: visible; }
  body.gfrg-printing #gfrg-print-area {
    display: block !important;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 99999;
  }

  .gfrg-print-card {
    font-family: Georgia, serif;
    max-width: 720px;
    margin: 0 auto;
    padding: 20px;
    color: #111;
  }
  .gfrg-print-header {
    border-bottom: 3px solid #15803d;
    padding-bottom: 12px;
    margin-bottom: 18px;
  }
  .gfrg-print-header h1 {
    font-size: 26px;
    margin: 0 0 6px;
    color: #15803d;
  }
  .gfrg-print-meta {
    font-size: 12px;
    color: #555;
  }
  .gfrg-print-cols {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
    margin-bottom: 16px;
  }
  .gfrg-print-cols h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #15803d;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 10px;
  }
  .gfrg-rc-ing-list { list-style: disc !important; padding-left: 16px !important; }
  .gfrg-rc-ing-list li::before { display: none; }
  .gfrg-rc-ing-list li { border: none; padding: 2px 0; font-size: 12px; }
  .gfrg-rc-group-title { font-size: 11px !important; margin: 10px 0 4px !important; }
  .gfrg-rc-steps { list-style: decimal !important; padding-left: 18px !important; }
  .gfrg-rc-steps li::before { display: none; }
  .gfrg-rc-steps li { padding: 2px 0; font-size: 12px; border: none; }
  .gfrg-rc-notes, .gfrg-rc-storage { border: 1px solid #ccc; margin-bottom: 12px; padding: 10px; border-radius: 4px; }
  .gfrg-rc-notes h4, .gfrg-rc-storage h4 { font-size: 12px !important; margin: 0 0 6px !important; color: #333 !important; }
  .gfrg-rc-notes ul li, .gfrg-rc-storage ul li { font-size: 11px; color: #333; }
  .gfrg-rc-nut-grid { border: 1px solid #ccc; display: flex; }
  .gfrg-rc-nut-item { padding: 8px 6px; border-right: 1px solid #ccc; }
  .gfrg-rc-nut-val { font-size: 14px; }
  .gfrg-rc-nut-label { font-size: 9px; }
  .gfrg-rc-nutrition h4 { font-size: 12px !important; margin: 0 0 8px !important; color: #333 !important; }
  .gfrg-rc-nut-disclaimer { font-size: 10px; }
  .gfrg-print-footer { font-size: 10px; color: #999; border-top: 1px solid #eee; padding-top: 10px; margin-top: 16px; text-align: center; }
  .gfrg-jump-btn, .gfrg-print-btn { display: none !important; }
}
