/* Housekeeper Assist portal — Recipes screen (revamp/screenshots 06, 11). Uses the hk- kit in src/index.css. */

/* list */
.rc-loading { padding: 32px; text-align: center; color: var(--hk-muted); }
.rc-page-error { margin-bottom: 16px; }
.rc-card { display: flex; flex-direction: column; }
.rc-cover { display: grid; place-items: center; width: 100%; height: 150px; padding: 0; border: none; border-radius: 9px; background: #eef2e8; color: #859d71; overflow: hidden; margin-bottom: 17px; cursor: pointer; }
.rc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-cover-icon { display: grid; place-items: center; }
.rc-cover-icon--loading { opacity: .45; }
.rc-card-title { display: flex; align-items: center; gap: 10px; }
.rc-card-title h2 { flex: 1; min-width: 0; margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.3px; color: var(--hk-ink); overflow-wrap: anywhere; }
.rc-star { background: none; border: none; padding: 4px; color: #b5bfb7; cursor: pointer; border-radius: 6px; display: inline-flex; flex: none; }
.rc-star:hover { background: #f5f8f5; color: var(--hk-accent); }
.rc-star--on { color: var(--hk-accent); }
.rc-meta { font-size: 12.5px; color: var(--hk-muted); margin: 8px 0 0; }
.rc-notes { font-size: 12px; color: var(--hk-muted); margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-card .hk-card-foot { margin-top: auto; }
.rc-card > p:nth-last-child(2) { margin-bottom: 14px; }
.rc-import-card { min-height: 300px; }

/* modals */
.rc-modal { max-width: 760px; padding: 0; gap: 0; max-height: calc(100dvh - 32px); }
.rc-modal--import { max-width: 680px; }
.rc-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--hk-line); }
.rc-modal-head .hk-iconbtn { background: transparent; }
.rc-modal-head .hk-iconbtn:hover { background: var(--hk-mint); }
.rc-modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.rc-modal-body > .hk-notice:first-child { margin-top: 0; }
.rc-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 24px; border-top: 1px solid var(--hk-line); flex-wrap: wrap; }
.rc-modal-foot .rc-delete { margin-right: auto; }

/* import */
.rc-upload { border: 1px dashed #bed0b5; border-radius: 9px; background: #fafcf8; padding: 26px 20px; text-align: center; color: var(--hk-ink); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rc-upload h4 { margin: 0; font-size: 15px; font-weight: 650; }
.rc-upload p { margin: 0 0 10px; font-size: 12.5px; color: var(--hk-muted); }
.rc-upload-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.rc-upload--busy { padding: 34px 20px; }
.rc-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--hk-mint); border-top-color: var(--hk-teal); animation: rc-spin .8s linear infinite; margin-bottom: 6px; }
@keyframes rc-spin { to { transform: rotate(360deg); } }
.rc-import-error { margin-top: 14px; }

/* editor */
.rc-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.rc-cover--editor { height: 170px; margin-bottom: 10px; cursor: default; }
.rc-photo-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rc-fields { display: flex; flex-direction: column; gap: 12px; }
.rc-fav-check { align-self: end; min-height: 42px; }
.rc-fav-check input { accent-color: var(--hk-teal); width: 16px; height: 16px; }
.rc-section { margin-top: 20px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rc-chip { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid #dfe6d9; background: #fff; color: #63765d; cursor: pointer; }
.rc-chip:hover { border-color: #c4d4ca; }
.rc-chip--on { background: var(--hk-mint); border-color: #b9d6ca; color: var(--hk-teal); font-weight: 600; }
.rc-textarea { resize: vertical; font-family: inherit; min-height: 0; }
.rc-ing-head, .rc-ing { display: grid; grid-template-columns: 80px 80px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.rc-ing-head { font-size: 11px; color: var(--hk-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.rc-ing { margin-bottom: 6px; padding: 3px; border-radius: 9px; }
.rc-ing .form-input, .rc-step .form-input { padding: 8px 10px; font-size: 13.5px; }
.rc-ing--unclear { background: var(--hk-amber); box-shadow: inset 0 0 0 1px #ecd29a; }
.rc-ing--unclear .form-input { border-color: #e2c27e; }
.rc-row-tools { display: flex; align-items: center; gap: 2px; }
.rc-row-tools--col { flex-direction: column; }
.rc-row-tools .hk-pill { margin-right: 4px; }
.rc-tool { width: 28px; height: 28px; border: none; border-radius: 6px; background: transparent; color: #7c8b84; font-size: 15px; line-height: 1; cursor: pointer; }
.rc-tool:hover:not(:disabled) { background: #f0f6f2; color: var(--hk-teal); }
.rc-tool:disabled { opacity: .3; cursor: default; }
.rc-tool--del:hover:not(:disabled) { background: #fdf3f2; color: var(--hk-red); }
.rc-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: start; margin-bottom: 8px; }
.rc-step-no { width: 24px; height: 24px; margin-top: 7px; border-radius: 50%; background: var(--hk-mint); color: var(--hk-teal); font-size: 12px; font-weight: 650; display: grid; place-items: center; }
.rc-add { margin-top: 4px; }
.rc-modal-body .auth-error { margin-top: 16px; }

@media (max-width: 640px) {
  .rc-top { grid-template-columns: 1fr; }
  .rc-modal-head, .rc-modal-body, .rc-modal-foot { padding-left: 16px; padding-right: 16px; }
  .rc-ing-head { display: none; }
  .rc-ing { grid-template-columns: 64px 64px minmax(0, 1fr); padding: 6px; border-bottom: 1px solid var(--hk-line); border-radius: 0; }
  .rc-ing--unclear { border-radius: 8px; }
  .rc-ing .rc-row-tools { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Share with a helper: the send button sits under the star (as in the app) */
.rc-card-title { align-items: flex-start; }
.rc-card-title .hk-pill { margin-top: 4px; }
.rc-card-actions { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.rc-share-btn { color: var(--hk-teal); }
.rc-share-btn:hover { color: var(--hk-teal); background: var(--hk-mint); }
.rc-shared { align-items: center; color: var(--hk-teal); background: var(--hk-mint); }
.rc-shared span { flex: 1; }
.rc-shared-close { background: none; border: none; font-size: 18px; line-height: 1; color: var(--hk-muted); cursor: pointer; padding: 0 4px; }
.rc-share { max-width: 440px; width: calc(100% - 32px); }
.rc-share-recipe { color: var(--hk-muted); font-weight: 600; margin: -4px 0 14px; overflow-wrap: anywhere; }
.rc-share-helpers { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; margin-bottom: 4px; }
.rc-share-helper { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: #fff; border: 1px solid var(--hk-line); border-radius: 12px; cursor: pointer; text-align: left; font-family: inherit; }
.rc-share-helper:hover { border-color: #c4d4ca; }
.rc-share-helper--on { background: var(--hk-mint); border-color: var(--hk-teal); }
.rc-share-helper .avatar.op-photo { overflow: hidden; }
.rc-share-helper-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rc-share-helper-text b { font-weight: 600; color: var(--hk-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-share-helper-text small { font-size: 12px; color: var(--hk-muted); }
.rc-share-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hk-muted); flex: none; }
.rc-share-radio--on { border-color: var(--hk-teal); box-shadow: inset 0 0 0 3px #fff; background: var(--hk-teal); }
.rc-share-when { margin-top: 14px; }
.rc-share-at { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.rc-share-note { font-size: 12.5px; color: var(--hk-muted); margin: 4px 0 8px; }
