@charset "utf-8";

.book-search { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
.book-search__header { padding: 30px 0 24px; }
.book-search__heading { min-width: 0; }
.book-search__eyebrow { margin: 0 0 4px; color: #4d725a; font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.book-search__heading h1 { margin: 0; color: #202e24; font-size: clamp(25px, 6vw, 30px); font-weight: 900; letter-spacing: -.04em; line-height: 1.25; }
.book-search__heading > p:last-child { margin: 7px 0 0; color: #748078; font-size: 13px; line-height: 1.55; }

.book-search__form { padding: 24px 0 4px; }
.book-search__field { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 62px; padding: 6px 6px 6px 18px; border: 1px solid #d9e1d8; border-radius: 19px; background: #fff; box-shadow: 0 8px 28px rgba(32, 53, 38, .055); transition: border-color 180ms ease, box-shadow 180ms ease; }
.book-search__field:focus-within { border-color: #6c9477; box-shadow: 0 0 0 4px rgba(71, 118, 84, .1), 0 12px 30px rgba(32, 53, 38, .07); }
.book-search__field > i { color: #64806d; font-size: 18px; }
.book-search__field input { width: 100%; min-width: 0; height: 46px; padding: 0; border: 0; outline: 0; background: transparent; color: #223027; font: inherit; font-size: 15px; }
.book-search__field input::placeholder { color: #9aa39c; }
.book-search__field button, .book-search__state button, .book-results__more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: #315f42; color: #fff; cursor: pointer; font: inherit; font-size: 13px; font-weight: 900; transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease; }
.book-search__field button:hover, .book-search__state button:hover, .book-results__more:hover { transform: translateY(-1px); background: #244f34; box-shadow: 0 8px 18px rgba(36, 79, 52, .18); }
.book-search__field button:disabled, .book-results__more:disabled { cursor: wait; opacity: .62; transform: none; }
.book-search__hint { display: flex; align-items: center; gap: 6px; margin: 10px 3px 0; color: #8b958e; font-size: 11px; }

.book-search__state { display: grid; justify-items: center; padding: 70px 20px 54px; color: #737e76; text-align: center; }
.book-search__state--idle { padding: 30px 0 54px; }
.book-search__idle-image { display: block; width: min(100%, 520px); height: auto; margin: 0 auto 14px; object-fit: contain; }
.book-search__state-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px; border-radius: 20px; background: #edf2eb; color: #587263; font-size: 23px; }
.book-search__state strong { color: #344039; font-size: 16px; }
.book-search__state p { margin: 9px 0 0; font-size: 13px; line-height: 1.7; }
.book-search__state a, .book-search__state button { margin-top: 19px; }
.book-search__state a { display: inline-flex; align-items: center; gap: 6px; color: #315f42; font-size: 13px; font-weight: 900; text-decoration: none; transition: color 180ms ease, transform 180ms ease; }
.book-search__state a:hover { color: #1f4d30; transform: translateX(2px); }
.book-search__state--error .book-search__state-icon { background: #f8ece9; color: #a74d43; }

.book-search__loading { padding: 28px 0 0; }
.book-search__skeleton-list { display: grid; width: 100%; }
.book-search__skeleton { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(49, 70, 54, .09); }
.book-search__skeleton > span { width: 82px; height: 116px; border-radius: 8px 13px 13px 8px; }
.book-search__skeleton > div { display: grid; align-content: center; gap: 11px; }
.book-search__skeleton i { display: block; height: 12px; border-radius: 7px; }
.book-search__skeleton i:first-child { width: 78%; height: 17px; }
.book-search__skeleton i:nth-child(2) { width: 52%; }
.book-search__skeleton i:nth-child(3) { width: 66%; }
.book-search__skeleton > span, .book-search__skeleton i { background: linear-gradient(100deg, #edf0ec 20%, #f7f8f6 42%, #edf0ec 64%); background-size: 300% 100%; animation: book-search-shimmer 1.35s ease infinite; }

.book-results { padding-top: 30px; }
.book-results > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 4px; }
.book-results > header p { margin: 0 0 3px; color: #758078; font-size: 11px; }
.book-results h2 { margin: 0; color: #26332a; font-size: 21px; font-weight: 900; letter-spacing: -.025em; }
.book-results header > span { flex: none; color: #55705e; font-size: 12px; font-weight: 800; }
.book-results__list { display: grid; }
.book-result { display: grid; grid-template-columns: 82px minmax(0, 1fr) 24px; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(49, 70, 54, .09); color: inherit; text-decoration: none; animation: book-result-in 360ms ease both; }
.book-result__cover { display: grid; place-items: center; overflow: hidden; width: 82px; height: 116px; border-radius: 8px 13px 13px 8px; background: linear-gradient(145deg, #dfe9dc, #cbdcc9); color: #4d725a; font-size: 22px; box-shadow: 6px 9px 18px rgba(36, 49, 38, .13); }
.book-result__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-result__body { align-self: center; min-width: 0; }
.book-result__body h3 { display: -webkit-box; overflow: hidden; margin: 0; color: #26332a; font-size: 16px; font-weight: 900; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.book-result__subtitle { display: -webkit-box; overflow: hidden; margin: 4px 0 0; color: #79837c; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.book-result__author { margin: 7px 0 0; color: #657169; font-size: 12px; line-height: 1.5; }
.book-result__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.book-result__meta span { padding: 4px 7px; border-radius: 7px; background: #f0f3ef; color: #778179; font-size: 10px; line-height: 1; }
.book-result__action { display: grid; place-items: center; width: 24px; height: 36px; color: #9aa49c; transition: color 180ms ease, transform 180ms ease; }
.book-result:hover .book-result__cover { transform: translateY(-2px); box-shadow: 7px 12px 22px rgba(36, 49, 38, .17); }
.book-result:hover .book-result__body h3 { color: #285d3b; }
.book-result:hover .book-result__action { color: #315f42; transform: translateX(3px); }
.book-result:focus-visible { outline: 0; box-shadow: inset var(--home-focus); }
.book-result__cover, .book-result__body h3 { transition: color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.book-results__more { width: 100%; margin-top: 22px; background: #e7eee4; color: #315f42; }
.book-results__more:hover { background: #dce8da; color: #244f34; box-shadow: none; }

.book-search__field button:focus-visible, .book-search__state a:focus-visible, .book-search__state button:focus-visible, .book-results__more:focus-visible { outline: 0; box-shadow: var(--home-focus); }
@keyframes book-search-shimmer { to { background-position-x: -300%; } }
@keyframes book-result-in { from { opacity: 0; transform: translateY(7px); } }

@media (max-width: 480px) {
	.book-search__header { padding-top: 22px; }
	.book-search__heading > p:last-child { max-width: 260px; }
	.book-search__field button { width: 48px; padding: 0; }
	.book-search__field button span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
	.book-result { grid-template-columns: 76px minmax(0, 1fr) 18px; gap: 13px; }
	.book-result__cover { width: 76px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) { .book-search__skeleton > span, .book-search__skeleton i, .book-result { animation: none; } }
