/* «Избранное» (30.10.2026). Loaded only on the recipe page and on /myaccount/favorites/.
   Everything else (grid, colours, radii, fonts, buttons) comes from design.css. */

/* bookmark number in the stats row under the recipe photo (information only): the same rules as .likes / .likes:before */
.saves { font-weight: 550; font-size: 14px; color: var(--icon-color); position: relative; padding-left: 1.2rem; }
.saves:before { content: ''; background-image: url('/pics/main/saved.svg'); width: 1rem; height: 1rem; position: absolute; left: 0; background-position: center center; background-size: contain; }
.saves.on:before { background-image: url('/pics/main/saved-on.svg'); }

/* «Проверено нами»: the site's medal in the bottom right corner of the recipe photo
   (a background, so the site's rules for photo images do not stretch it) */
.recipe-photo__link { position: relative; display: block; }
.recipe-medal { position: absolute; right: 10px; bottom: 10px; width: 56px; height: 56px; z-index: 2; pointer-events: none; background: url('/pics/main/check.png') center / contain no-repeat; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }

/* «Сохраняй и поделись с друзьями» under the recipe */
.save-share { margin: 24px 0; padding: 20px; background: var(--card-bg); border: var(--card-border); border-radius: var(--radius-md); box-shadow: var(--card-shadow); text-align: center; }
.save-share h2 { margin: 0 0 16px; }
.save-share__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px 20px; }
.save-share__social { display: flex; gap: 10px; align-items: center; min-height: 52px; }
.save-share__social img { display: block; width: 48px; height: 48px; border-radius: 12px; transition: transform .15s; }
.save-share__social a:hover img, .save-share__social a:focus-visible img { transform: translateY(-2px); }
.save-share__sep { align-self: stretch; width: 1px; background: var(--line-strong); }
.save-share__act { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.save-share__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 2px solid transparent; border-radius: var(--radius-btn); font: inherit; font-size: 1.05rem; font-weight: 700; color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background-color .15s; }
.save-share__btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.save-share__btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn-hover); }
.save-share__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
.save-share__btn--like { background: var(--tomato); }
.save-share__btn--like:hover { background: var(--tomato-dark); }
.save-share__btn--fav { background: var(--green); }
.save-share__btn--fav:hover { background: var(--green-dark); }
/* pressed: white with a coloured border (a like stays — it cannot be taken back) */
.save-share__btn[aria-pressed="true"], .save-share__btn:disabled { background: #fff; cursor: default; transform: none; box-shadow: none; }
.save-share__btn--fav[aria-pressed="true"] { cursor: pointer; }
.save-share__btn--like[aria-pressed="true"], .save-share__btn--like:disabled { color: var(--tomato); border-color: var(--tomato); }
.save-share__btn--fav[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.save-share__btn--like[aria-pressed="true"] svg, .save-share__btn--like:disabled svg { fill: var(--tomato); stroke: var(--tomato); }
.save-share__btn--fav[aria-pressed="true"] svg { fill: var(--green); stroke: var(--green); }
.save-share__cap { font-size: 14px; color: var(--muted); }
.saves-msg { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.saves-msg:empty { display: none; }
.saves-msg a { color: var(--custom-link-color); }
@media (max-width: 760px) { .save-share__sep { display: none; } .save-share__social { width: 100%; justify-content: center; } }
@media (max-width: 420px) { .save-share__act { width: 100%; } .save-share__btn { width: 100%; justify-content: center; } }

/* favorites page: tiles sit in the site's .cats--tiles grid (3 columns, 2 on phones) */
.fav-card { position: relative; }
.fav-card > a { display: block; color: var(--text); text-decoration: none; }
.fav-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--warm); }
.fav-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-card h3 { margin: 8px 0 0; font-size: 1rem; }
.fav-card > a:hover h3 { color: var(--hover-color); }
.fav-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--tomato); color: #fff; font-size: 20px; line-height: 30px; text-align: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.fav-x:hover { background: var(--tomato-dark); }
.fav-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.fav-undo { display: flex; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 3; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; color: var(--muted); }
.fav-undo button { all: unset; cursor: pointer; color: var(--custom-link-color); font-weight: 700; text-decoration: underline; }
.fav-more { text-align: center; margin: 20px 0; }
.fav-more .more1 { display: inline-flex; }
