/* "I made it" recipe reviews — tokens from home-v2.css / pin-detail.css */

/* ---------- stars (shared: pin page, cards, profile) ---------- */
.rv-stars { display: inline-flex; align-items: center; gap: 1px; color: #f5a623; vertical-align: middle; line-height: 1; }
.rv-star { width: 15px; height: 15px; fill: currentColor; }
.rv-star-empty { fill: #e3e0da; }
.rv-star-half path { stroke: none; }
.rv-star-half { fill: #e3e0da; }
.rv-stars-sm .rv-star { width: 13px; height: 13px; }
.rv-stars-lg .rv-star { width: 20px; height: 20px; }

/* compact summary used at the top of the pin page and on cards */
.rv-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7680; text-decoration: none; }
.rv-inline strong { color: #1f2f3d; font-weight: 800; }
.rv-inline:hover { color: #e74c3c; }
.card-v2-rating { display: flex; align-items: center; gap: 4px; margin: 2px 0 0; font-size: 12px; color: #6b7680; }
.card-v2-rating strong { color: #1f2f3d; font-weight: 800; }
.card-v2-rating .rv-star { width: 12px; height: 12px; }

/* ---------- section ---------- */
.rv-section { margin-top: 18px; color: #1f2f3d; scroll-margin-top: 90px; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rv-head .pin-detail-map-header { margin: 0; }
.rv-head-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; background: #f4f3f1; color: #6b7680; font-size: 12px; font-weight: 700; }

.rv-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-size: 13.5px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; font-family: inherit; }
.rv-btn svg { width: 15px; height: 15px; }
.rv-btn-primary { background: #e74c3c; color: #fff; }
.rv-btn-primary:hover { background: #d84333; color: #fff; }
.rv-btn-primary:disabled { opacity: .65; cursor: default; }
.rv-btn-ghost { background: #fff; color: #1f2f3d; border-color: #eeece8; }
.rv-btn-ghost:hover { border-color: #d9d5ce; background: #faf9f7; }
.rv-delete { color: #c0392b; margin-right: auto; }

.rv-empty { margin: 0; padding: 14px 16px; border-radius: 12px; background: #faf9f7; color: #6b7680; font-size: 13.5px; }

/* summary: score + bars */
.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #faf9f7; }
.rv-summary-score { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rv-summary-score strong { font-size: 34px; line-height: 1; font-weight: 800; }
.rv-summary-label { font-size: 12.5px; color: #6b7680; }
.rv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rv-bars li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 12px; color: #6b7680; }
.rv-bars-track { height: 7px; border-radius: 999px; background: #eeece8; overflow: hidden; }
.rv-bars-track span { display: block; height: 100%; background: #f5a623; border-radius: 999px; }
.rv-bars-num { text-align: right; }

/* community photos */
.rv-photos { margin-top: 16px; }
.rv-photos h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #1f2f3d; }
.rv-photos-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.rv-photos-strip a { flex: 0 0 auto; }
.rv-photos-strip img { display: block; width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }

/* form */
.rv-form { margin-top: 16px; padding: 16px; border: 1px solid #eeece8; border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.rv-form[hidden] { display: none; }
.rv-form-label { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #1f2f3d; }
.rv-optional { font-weight: 500; color: #97a3ad; }
.rv-picker { display: flex; align-items: center; gap: 2px; }
.rv-pick { width: 38px; height: 38px; padding: 4px; border: 0; background: none; cursor: pointer; border-radius: 8px; }
.rv-pick svg { width: 100%; height: 100%; fill: #e3e0da; transition: fill .1s, transform .1s; }
.rv-pick.is-on svg { fill: #f5a623; }
.rv-pick:hover svg { transform: scale(1.08); }
.rv-pick:focus-visible { outline: 2px solid #e74c3c; outline-offset: 1px; }
.rv-picker-text { margin-left: 8px; font-size: 13px; font-weight: 700; color: #6b7680; }
.rv-form textarea { width: 100%; box-sizing: border-box; min-height: 80px; padding: 10px 12px; border: 1px solid #eeece8; border-radius: 10px; font: inherit; font-size: 14px; color: #1f2f3d; resize: vertical; }
.rv-form textarea:focus { outline: none; border-color: #e74c3c; }
.rv-count { align-self: flex-end; font-size: 11.5px; color: #97a3ad; }
.rv-drop { position: relative; display: flex; align-items: center; justify-content: center; width: 160px; height: 120px; border: 1.5px dashed #d9d5ce; border-radius: 12px; background: #faf9f7 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.rv-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rv-drop-text { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #6b7680; pointer-events: none; }
.rv-drop-text svg { width: 22px; height: 22px; }
.rv-drop.has-image { border-style: solid; border-color: #eeece8; }
.rv-drop.has-image .rv-drop-text { opacity: 0; }
.rv-drop.has-image:hover .rv-drop-text { opacity: 1; background: rgba(31,47,61,.55); color: #fff; padding: 6px 10px; border-radius: 8px; }
.rv-remove-photo { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6b7680; cursor: pointer; }
/* main.css hides native checkboxes site-wide */
.rv-form input[type=checkbox]#rv-remove-photo { display: inline-block !important; position: static !important; opacity: 1 !important; width: 15px; height: 15px; margin: 0; -webkit-appearance: checkbox; appearance: checkbox; visibility: visible !important; }
.rv-error { margin: 4px 0 0; padding: 8px 12px; border-radius: 8px; background: #fdecea; color: #c0392b; font-size: 13px; font-weight: 600; }
.rv-error[hidden] { display: none; }
.rv-form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* list */
.rv-toolbar { display: flex; justify-content: flex-start; margin: 18px 0 4px; }
.rv-sort { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: #f4f3f1; }
.rv-sort button { height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: #6b7680; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rv-sort button.is-active { background: #fff; color: #1f2f3d; box-shadow: 0 1px 3px rgba(45,62,79,.08); }
.rv-list { display: flex; flex-direction: column; }
.rv-item { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid #f1efeb; }
.rv-item:first-child { border-top: 0; }
.rv-item-avatar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; background: #f4f3f1; }
.rv-item-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 3px; }
.rv-item-name { font-size: 13.5px; font-weight: 800; color: #1f2f3d; text-decoration: none; }
.rv-item-name:hover { color: #e74c3c; }
.rv-item-date { font-size: 12px; color: #97a3ad; }
.rv-item-you { font-size: 11px; font-weight: 700; color: #e74c3c; background: #fdecea; padding: 1px 8px; border-radius: 999px; }
.rv-made-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: 11.5px; font-weight: 700; color: #27ae60; vertical-align: middle; }
.rv-made-tag svg { width: 12px; height: 12px; }
.rv-item-body { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #34495e; overflow-wrap: anywhere; }
.rv-item-photo { display: inline-block; margin-top: 8px; }
.rv-item-photo img { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; object-fit: cover; }
.rv-more { margin: 10px auto 0; }
.rv-more[hidden] { display: none; }

.rv-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: #1f2f3d; color: #fff; font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 10001; }
.rv-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- profile "Cooked" tab ---------- */
.rv-cooked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin-top: 18px; }
.rv-cooked-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eeece8; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px rgba(45,62,79,.06); color: #1f2f3d; text-decoration: none; }
.rv-cooked-media { aspect-ratio: 4 / 3; background: #f4f3f1 center / cover no-repeat; position: relative; }
.rv-cooked-badge { position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 800; color: #27ae60; }
.rv-cooked-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; }
.rv-cooked-title { font-size: 14px; font-weight: 800; line-height: 1.3; }
.rv-cooked-note { margin: 0; font-size: 13px; color: #6b7680; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rv-cooked-date { font-size: 11.5px; color: #97a3ad; }
.rv-cooked-empty { margin-top: 18px; padding: 40px 20px; text-align: center; background: #fff; border: 1px solid #eeece8; border-radius: 14px; color: #6b7680; }
.rv-cooked-empty strong { display: block; margin-bottom: 6px; font-size: 16px; color: #1f2f3d; }

@media (max-width: 600px) {
	.rv-summary { grid-template-columns: 1fr; gap: 12px; }
	.rv-head .rv-btn { width: 100%; justify-content: center; }
	.rv-item-photo img { max-width: 100%; }
	.rv-form-actions .rv-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
	.rv-toast, .rv-pick svg, .rv-btn { transition: none; }
}

.pin-detail-recipe-top .pin-detail-rating { display: flex; justify-content: center; width: max-content; max-width: 100%; margin: 2px auto 10px; }
