/* FridgeJam PDF cookbook template styling. */

.pdf-print-template {
  display: flex;
  width: 10.4in; /* exact dimensions for landscape letter with 0.3in margins */
  height: 7.9in;
  padding: 0.3in;
  box-sizing: border-box;
  background-color: #FAF7F0;
  font-family: 'Outfit', sans-serif;
  color: #25283D;
  border: 4.5px solid #25283D;
  border-radius: 24px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.pdf-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pdf-title {
  font-family: 'Lora', serif;
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0;
  color: #25283D;
}

.pdf-chef-byline {
  font-size: 0.8rem;
  font-weight: 600;
  background-color: #E2DFEB;
  border: 2.2px solid #25283D;
  padding: 4px 10px;
  border-radius: 12px;
}

.pdf-card-divider {
  border-top: 3px solid #25283D;
  margin: 6px 0 10px 0;
  width: 100%;
}

.pdf-card-body {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 16px;
  flex-grow: 1;
  overflow: hidden;
  width: 100%;
  text-align: left;
}

.pdf-left-column,
.pdf-right-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pdf-photo-wrapper {
  width: 100%;
  height: 2.3in;
  border: 2.5px solid #25283D;
  border-radius: 16px;
  overflow: hidden;
  background-color: #ffffff;
  padding: 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  display: block;
}

.pdf-narrative-box {
  background-color: #FAF1D6;
  border: 2px solid #25283D;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.7rem;
  font-style: italic;
  line-height: 1.35;
  color: #4A4E69;
}

.pdf-narrative-box p {
  margin: 0;
}

.pdf-tip-box {
  background-color: #FEFCEB;
  border: 2px dashed #B48A3D;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.7rem;
  color: #25283D;
}

.pdf-tip-box strong {
  color: #8C5E1A;
}

.pdf-tip-box p {
  margin: 2px 0 0 0;
  font-style: italic;
  line-height: 1.35;
}

.pdf-stats-row {
  display: flex;
  gap: 8px;
}

.pdf-stat-pill {
  font-size: 0.7rem;
  font-weight: 600;
  border: 2px solid #25283D;
  padding: 2px 8px;
  border-radius: 8px;
  background-color: #E3F2FD;
}

.pdf-section {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pdf-section-title {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  border-bottom: 2.2px solid #25283D;
  padding-bottom: 1px;
  text-transform: uppercase;
  color: #25283D;
}

.pdf-ingredients-list,
.pdf-steps-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.35;
  color: #25283D;
  list-style-position: outside;
}

.pdf-ingredients-list li,
.pdf-steps-list li {
  margin-bottom: 2px;
  padding-left: 2px;
}

.pdf-steps-list {
  padding-left: 20px;
}

.pdf-nutrition-row {
  border: 2px solid #25283D;
  border-radius: 12px;
  background-color: #F8F5F2;
  padding: 4px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdf-nutrition-row strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pdf-nutrition-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pdf-nutrition-pill {
  font-size: 0.68rem;
  font-weight: 600;
  border: 1.5px solid #25283D;
  padding: 2px 6px;
  border-radius: 8px;
}

.pdf-nutrition-pill.calories-pill { background-color: #FFF3E0; }
.pdf-nutrition-pill.protein-pill { background-color: #E8F5E9; }
.pdf-nutrition-pill.carbs-pill { background-color: #E3F2FD; }
.pdf-nutrition-pill.fat-pill { background-color: #FCE4EC; }

.pdf-card-footer {
  text-align: center;
  font-size: 0.68rem;
  color: #6E6D7A;
  border-top: 2px dashed #25283D;
  padding-top: 5px;
  margin-top: 5px;
  width: 100%;
}
