/* ==========================================================================
   Print Modal — On-screen mode selector
   Matches KetoFocus recipe card design system (navy + terracotta + warm tones).
   ========================================================================== */

/* ---------- Backdrop ---------- */

.kf-print-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000010;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.kf-print-modal-backdrop.kf-print-modal-visible {
  opacity: 1;
}

/* ---------- Modal container ---------- */

.kf-print-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  z-index: 10000011;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.kf-print-modal.kf-print-modal-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ---------- Header — navy gradient + terracotta accent ---------- */

.kf-print-modal-header {
  background: linear-gradient(135deg, #1b2a4a 0%, #2c3e6b 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #c96b3c;
}

.kf-print-modal-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- Close button ---------- */

.kf-print-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.kf-print-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.kf-print-modal-close svg {
  width: 18px;
  height: 18px;
}

/* ---------- Body / card list ---------- */

.kf-print-modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Mode cards ---------- */

.kf-print-modal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e8e2d9;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
}

.kf-print-modal-card:hover {
  transform: translateY(-2px);
  border-color: #c96b3c;
  box-shadow: 0 4px 16px rgba(201, 107, 60, 0.15);
}

.kf-print-modal-card:active {
  transform: translateY(0);
}

/* ---------- Icon circles ---------- */

.kf-print-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f5f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1b2a4a;
  transition: background 0.2s ease, color 0.2s ease;
}

.kf-print-modal-card:hover .kf-print-modal-icon {
  background: linear-gradient(135deg, #1b2a4a 0%, #2c3e6b 100%);
  color: #fff;
}

.kf-print-modal-icon svg {
  width: 24px;
  height: 24px;
}

/* ---------- Card text ---------- */

.kf-print-modal-card-info {
  flex: 1;
  min-width: 0;
}

.kf-print-modal-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1b2a4a;
  margin-bottom: 2px;
}

.kf-print-modal-card-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ---------- Mobile (<576px) ---------- */

@media (max-width: 575.98px) {
  .kf-print-modal {
    width: 94%;
  }

  .kf-print-modal-header {
    padding: 16px 18px;
  }

  .kf-print-modal-body {
    padding: 16px 18px 20px;
    gap: 10px;
  }

  .kf-print-modal-card {
    padding: 14px;
    gap: 12px;
  }

  .kf-print-modal-icon {
    width: 42px;
    height: 42px;
  }

  .kf-print-modal-icon svg {
    width: 20px;
    height: 20px;
  }
}
