/* The recipe showcase, on top of blinqdroid.com's styles.css and zine.css (copied by build_chrome.py).
   Everything here is prefixed rc- so it cannot change the site's own components. */

.rc { padding-top: 28px; padding-bottom: 72px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rc-head { margin: 18px 0 26px; max-width: 46rem; }
.rc-head h1 { margin: 0 0 12px; }
.rc-lede { font-size: 19px; color: var(--muted); margin: 0 0 18px; }
.rc-lede a, .rc-how a, .rc-base a, .rc-back a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Sort and filter */
.rc-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 24px; }
.rc-sorts { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-sorts a { padding: 8px 15px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.rc-sorts a:hover { background: var(--bg-2); }
.rc-sorts a[aria-current] { background: var(--ink); color: var(--paper); }
.rc-filter { margin-left: auto; }
.rc-filter select { font: inherit; font-size: 15px; padding: 9px 12px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--text); min-height: 44px; }
.js .rc-go { display: none; }

/* The grid */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 20px; }
.rc-tile { display: block; background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; overflow: hidden; color: var(--text); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.rc-tile:hover, .rc-tile:focus-visible { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--ink); }
.rc-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-2); }
.rc-meta { display: block; padding: 12px 14px 14px; }
.rc-name { display: block; font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-by { display: block; color: var(--dim); font-size: 14px; margin: 2px 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-stats { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }
.rc-star { color: var(--ink); }
.rc-pro { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; border: 1.5px solid var(--red); color: var(--red); border-radius: 4px; padding: 1px 6px; vertical-align: 3px; }
h1 .rc-pro { margin-left: 8px; font-size: 13px; }
.rc-more { text-align: center; margin: 32px 0 0; }
.rc-note { color: var(--muted); text-align: center; margin: 56px 0; font-size: 18px; }
.rc-how { margin: 64px 0 0; max-width: 46rem; border-top: 1.5px solid var(--line); padding-top: 28px; }
.rc-how p { color: var(--muted); }

/* One recipe */
.rc-recipe { display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: 44px; align-items: start; margin-top: 18px; }
.rc-card { width: 100%; height: auto; aspect-ratio: 4 / 5; border: 1.5px solid var(--ink); border-radius: 18px; background: var(--bg-2); box-shadow: 6px 6px 0 var(--ink); }
.rc-side h1 { margin: 0 0 6px; overflow-wrap: anywhere; }
.rc-side h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 30px 0 8px; font-weight: 400; }
.rc-base { color: var(--muted); margin: 0 0 14px; }
.rc-pronote { color: var(--dim); font-size: 15px; margin: -6px 0 14px; }
.rc-stats-lg { font-size: 13px; margin: 0 0 18px; gap: 22px; }
.rc-stats-lg strong { color: var(--ink); }

.rc-rate { background: var(--card); border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; }
.rc-rate p { margin: 0 0 4px; color: var(--dim); font-size: 14px; }
.rc-stars { display: flex; gap: 2px; }
.rc-stars button { font-size: 30px; line-height: 1; background: none; border: 0; padding: 4px 5px; color: var(--line); cursor: pointer; min-width: 44px; min-height: 44px; }
.rc-stars button.on, .rc-stars:hover button { color: var(--accent); }
.rc-stars button:hover ~ button { color: var(--line); }
.rc-stars button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.rc-actions { display: flex; flex-direction: column; gap: 10px; margin: 0 0 8px; max-width: 26rem; }
.rc-actions .btn { text-align: center; justify-content: center; }
.rc-scan { color: var(--dim); font-size: 14px; margin: 0; }
.js-android .rc-scan { display: none; }

.rc-values { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.rc-values div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rc-values dt { color: var(--muted); }
.rc-values dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-values .rc-zero { color: var(--dim); font-weight: 400; }
.rc-mix dd { white-space: pre; font-weight: 600; }
.rc-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 8px; border: 1px solid rgba(0,0,0,.25); }
.rc-dot-0 { background: #E5484D; } .rc-dot-1 { background: #F2994A; } .rc-dot-2 { background: #F2D24B; } .rc-dot-3 { background: #4CC38A; }
.rc-dot-4 { background: #3CC8D9; } .rc-dot-5 { background: #4A8CF0; } .rc-dot-6 { background: #8E6BE8; } .rc-dot-7 { background: #D957C2; }

.rc-report { margin-top: 36px; color: var(--dim); font-size: 15px; }
.rc-report summary { cursor: pointer; }
.rc-report label { display: block; margin: 12px 0 4px; }
.rc-report textarea { width: 100%; min-height: 5rem; padding: 10px; border: 1.5px solid var(--ink); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; }
.rc-report .btn { margin-top: 10px; }
.rc-back { margin: 48px 0 0; color: var(--dim); }

.rc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); font-weight: 600; padding: 12px 20px; border-radius: 999px; z-index: 50; }

@media (max-width: 760px) {
  .rc-recipe { grid-template-columns: 1fr; gap: 28px; }
  .rc-card { max-width: 27rem; }
  .rc-values { grid-template-columns: 1fr; }
  .rc-filter { margin-left: 0; width: 100%; }
  .rc-filter select { width: 100%; }
}
@media (max-width: 480px) {
  .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rc-meta { padding: 10px 10px 12px; }
  .rc-name { font-size: 15px; }
  .rc-stats { gap: 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .rc-tile { transition: none; } .rc-tile:hover { transform: none; } }
