/* "זיהוי צמח מתמונה" (includes/identify.php): photo column + results column (stacked on phones) */

.sc-identify [hidden] { display: none !important; }
.sc-identify { --sc-id-line: color-mix(in srgb, currentColor 12%, transparent); }
.sc-id-intro { font-size: 1.12rem; margin: 0 0 1.8rem; max-width: 60ch; }

.sc-id-layout { display: grid; grid-template-columns: minmax(320px, 380px) minmax(0, 1fr); gap: 32px 56px; align-items: start; }
@media (max-width: 860px) { .sc-id-layout { grid-template-columns: minmax(0, 1fr); } }
.sc-id-side { position: sticky; top: 110px; }
@media (max-width: 860px) { .sc-id-side { position: static; } }

/* photo column */
.sc-id-form { display: flex; flex-direction: column; gap: 12px; }
.sc-id-drop {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; aspect-ratio: 4 / 3; padding: 24px;
	border: 2px dashed color-mix(in srgb, var(--sc-c-btn, #3d7a66) 40%, transparent); border-radius: var(--sc-r-photo, 16px);
	background: var(--sc-c-panel, #f3f6f1); color: var(--sc-c-ink, #2c3b33); cursor: pointer; text-align: center;
	transition: border-color .2s ease, background-color .2s ease;
}
.sc-id-drop:hover, .sc-id-drop.is-over { border-color: var(--sc-c-btn, #3d7a66); }
.sc-id-drop svg { width: 40px; height: 40px; color: var(--sc-c-btn, #3d7a66); }
.sc-id-drop-title { font-weight: 700; font-size: 1.15rem; }
.sc-id-drop-sub { opacity: .7; font-size: .95rem; }
/* after a photo is chosen: the area becomes a small "add another" link-button under the photos */
.sc-id-form.has-photos .sc-id-drop { aspect-ratio: auto; flex-direction: row; gap: 8px; padding: 10px 14px; border-width: 1px; background: transparent; }
.sc-id-form.has-photos .sc-id-drop svg { width: 20px; height: 20px; }
.sc-id-form.has-photos .sc-id-drop-title { font-size: .98rem; font-weight: 600; }
.sc-id-form.has-photos .sc-id-drop-sub { display: none; }

.sc-id-thumbs { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 8px; }
.sc-id-thumb { position: relative; }
.sc-id-thumb img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--sc-r-photo, 16px); }
.sc-id-thumb:only-child img { aspect-ratio: 4 / 3; }
.sc-id-thumb button {
	position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: #2c3b33; font-size: 20px; line-height: 30px; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.sc-id-go { width: 100%; } /* look: assets/buttons.css (.sc-btn) */

.sc-id-status { margin: 12px 0 0; font-weight: 600; }
.sc-id-status:empty { display: none; }
.sc-id-status.is-busy::after { content: ''; display: inline-block; width: 1em; height: 1em; margin-inline-start: .6em; vertical-align: -.15em; border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: sc-id-spin .8s linear infinite; }
@keyframes sc-id-spin { to { transform: rotate(360deg); } }
.sc-id-status.is-error { color: #a4452c; }
.sc-id-credit { margin: 18px 0 0; font-size: .82rem; opacity: .6; position: relative; padding-inline-start: .7em; }
.sc-id-star { position: absolute; inset-inline-start: 0; } /* the asterisk sits at the edge, both lines start after it */
.sc-id-credit a { color: inherit; }

/* before the first result: how it works */
.sc-id-steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--sc-id-line); } /* rows with a thin line between, no boxes (approved 2026-09-29) */
.sc-id-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; margin: 0; padding: 20px 0; border-bottom: 1px solid var(--sc-id-line); }
.sc-id-step-n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sc-c-soft); color: var(--sc-c-ink); font-weight: 700; font-size: 1.2rem; }
.sc-id-steps strong { font-size: 1.08rem; }
.sc-id-steps span:last-child { opacity: .75; }

/* the most likely plant */
.sc-id-label { margin: 0; font-size: .95rem; opacity: .7; }
.sc-id-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 0; }
.sc-id-name { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.sc-id-name .sc-id-latin { font-style: italic; }
.sc-id-sub { margin: 4px 0 0; font-size: 1.05rem; } /* the identified name under our Hebrew name */
.sc-id-sub .sc-id-latin { font-style: italic; }
.sc-id-common { opacity: .65; }
.sc-id-gap { height: 16px; }
.sc-id-badge { padding: 4px 12px; border-radius: 999px; background: var(--sc-c-btn, #3d7a66); color: var(--sc-c-btntext, #fff); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.sc-id-badge.is-low { background: var(--sc-c-panel, #f3f6f1); color: inherit; }
.sc-id-unsure { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--sc-c-panel, #f3f6f1); }
.sc-id-where { margin: 22px 0 10px; font-weight: 700; }
.sc-id-where.is-none { font-weight: 400; opacity: .8; }
.sc-id-none { padding: 16px 20px; border-radius: 12px; background: var(--sc-c-panel, #f3f6f1); }

/* catalog plants: compact row cards */
.sc-id-plants { display: grid; gap: 12px; }
.sc-id-plant {
	display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; padding: 10px; padding-inline-end: 18px;
	border: 1px solid var(--sc-id-line); border-radius: var(--sc-r-photo, 16px); color: inherit; text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sc-id-plant:hover { border-color: color-mix(in srgb, var(--sc-c-btn, #3d7a66) 50%, transparent); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); transform: translateY(-1px); }
.sc-id-plant-img { display: grid; place-items: center; width: 112px; height: 112px; overflow: hidden; border-radius: 12px; background: var(--sc-c-panel, #f3f6f1); color: var(--sc-c-btn, #3d7a66); }
.sc-id-plant-img img { width: 100%; height: 100%; object-fit: cover; }
.sc-id-plant-img .sc-ico { width: 34px; height: 34px; }
.sc-id-plant-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sc-id-plant-text strong { font-size: 1.12rem; }
.sc-id-plant-text span { opacity: .75; font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
	.sc-id-plant { grid-template-columns: 84px 1fr; gap: 14px; }
	.sc-id-plant-img { width: 84px; height: 84px; }
}

/* other possibilities */
.sc-id-more { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid var(--sc-id-line); }
.sc-id-more h3 { margin: 0 0 12px; font-size: 1.1rem; }
.sc-id-more ul { list-style: none; margin: 0; padding: 0; }
.sc-id-more li { padding: 18px 0 22px; border-bottom: 1px solid var(--sc-id-line); }
.sc-id-more li:last-child { border-bottom: 0; }
.sc-id-alt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.sc-id-he { font-size: 1.25rem; }
.sc-id-more .sc-id-latin { font-style: italic; font-weight: 700; font-size: 1.25rem; }
.sc-id-he + .sc-id-latin { font-weight: 400; font-size: 1.05rem; }
.sc-id-pct { padding: 3px 10px; border-radius: 999px; background: var(--sc-c-panel, #f3f6f1); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.sc-id-more .sc-id-where { margin: 12px 0 8px; font-size: .95rem; }

/* a name that is not in the catalog: sample photos from the identification service + "שלחו לנו" */
.sc-id-ext { margin: 16px 0 0; }
.sc-id-ext-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.sc-id-ext-photos figure { margin: 0; }
.sc-id-ext-photos figcaption { display: none; } /* shown only in the viewer; the line under the photos credits all three */
.sc-id-ext-photos a { display: block; overflow: hidden; border-radius: 12px; background: var(--sc-c-panel, #f3f6f1); cursor: zoom-in; }
.sc-id-ext-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.sc-id-ext-photos a:hover img { transform: scale(1.04); }
.sc-id-ext-credit { margin: 6px 0 0; font-size: .78rem; opacity: .6; }
.sc-id-suggest-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 0; padding: 14px 18px; border-radius: var(--sc-r-photo, 16px); background: var(--sc-c-panel, #f3f6f1); }
.sc-id-suggest-row span { font-weight: 600; }
.sc-id-suggest { margin-inline-start: auto; } /* look: assets/buttons.css (.sc-btn) */
.sc-id-suggest.is-sent:not(#sc-btn) { background: transparent; color: var(--sc-c-btn, #3d7a66); padding-inline: 0; cursor: default; }
.sc-id-suggest.is-sent:not(#sc-btn)::before { display: none; }
@media (max-width: 600px) { .sc-id-suggest:not(#sc-btn) { margin-inline-start: 0; width: 100%; } }

/* guests: the photo area invites them to log in */
.sc-id-guest { cursor: default; gap: 10px; }
.sc-id-guest .sc-id-go:not(#sc-btn) { margin-top: 20px; width: auto; } /* :not(#sc-btn): beats the margin: 0 of assets/buttons.css */

/* daily quota (SUCCALENT_ID_USER_LIMIT): under the photo; at 0 the page stays, the photo area and button are disabled, the line turns red */
.sc-id-quota { margin: 14px 0 0; font-size: .92rem; color: var(--sc-c-btn, #3d7a66); font-weight: 600; }
.sc-id-quota.is-out { color: #a4452c; font-size: 1.02rem; white-space: nowrap; }
.sc-identify.is-out .sc-id-drop { opacity: .5; cursor: not-allowed; pointer-events: none; }
