/* Para Crianças — Biblioteca por idade (complementa livro-criancas.css) */

.bb-plate {
    max-width: 880px;
    margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
    padding: 10px;
    background: var(--lv-paper);
    border: 1px solid rgba(59, 42, 26, 0.35);
}
.bb-plate img {
    width: 100%;
    height: auto;
    aspect-ratio: 1024 / 572;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.bb-plate figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-family: var(--lv-title);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--lv-ink-soft);
}

.bb-ages .lv-hero-actions .lv-btn { min-width: 9.5rem; justify-content: center; }

/* ---------- Estante de cada idade ---------- */
.bb-age {
    padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.25rem, 4.5vw, 3.25rem);
    scroll-margin-top: 90px;
}
.bb-age + .bb-age { margin-top: 2rem; }
.bb-age-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1.4rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(59, 42, 26, 0.25);
}
.bb-age-num {
    display: grid;
    place-items: center;
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 50%;
    border: 1.5px solid var(--lv-ink);
    box-shadow: 0 0 0 4px var(--lv-page), 0 0 0 5.5px var(--lv-gold);
    background: var(--lv-paper);
    font-family: var(--lv-title);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--lv-apple);
}
.bb-age:nth-of-type(2) .bb-age-num { color: var(--lv-leaf); }
.bb-age:nth-of-type(3) .bb-age-num { color: #4f7f88; }
.bb-age-head h2 { margin: 0.2rem 0 0.45rem; font-size: clamp(1.9rem, 3.8vw, 2.6rem); }
.bb-age-head p { max-width: 42rem; }

.bb-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.bb-col h3 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
    font-size: 1.4rem;
}
.bb-col h3 .material-icons-outlined { font-size: 1.25rem; color: var(--lv-leaf); }

.bb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.bb-list a {
    display: block;
    padding: 0.8rem 0.95rem 0.85rem;
    background: var(--lv-paper);
    border: 1px solid rgba(59, 42, 26, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.bb-list a:hover {
    transform: translateY(-2px);
    border-color: var(--lv-ink);
    box-shadow: 0 10px 20px -16px rgba(59, 42, 26, 0.7);
}
.bb-list a:focus-visible { outline: 2px solid var(--lv-apple); outline-offset: 2px; }
.bb-list strong {
    display: block;
    font-family: var(--lv-title);
    font-weight: 400;
    font-size: 1.18rem;
    line-height: 1.2;
    color: var(--lv-ink);
}
.bb-list span {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--lv-ink-soft);
}
.bb-list small {
    display: inline-block;
    margin-top: 0.45rem;
    font-family: var(--lv-title);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--lv-apple);
}
.bb-list a:hover small { color: var(--lv-ink); }

.bb-tip {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.75rem;
    padding: 1rem 1.2rem;
    border-left: 4px solid var(--lv-leaf);
    background: rgba(239, 228, 204, 0.65);
}
.bb-tip .material-icons-outlined { flex: none; color: var(--lv-leaf); font-size: 1.35rem; margin-top: 0.1rem; }
.bb-tip p { font-size: 0.95rem; }
.bb-tip strong { font-family: var(--lv-title); font-weight: 400; font-size: 1.1rem; color: var(--lv-apple); }

.lv .bb-page-ad { margin-top: clamp(3rem, 7vw, 4.5rem); background: transparent; border-top: 1px solid rgba(59, 42, 26, 0.25); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
    .bb-cols { grid-template-columns: 1fr; gap: 1.4rem; }
    .bb-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .bb-age-head { grid-template-columns: 1fr; gap: 0.9rem; }
    .bb-age-num { width: 4.4rem; height: 4.4rem; font-size: 1.35rem; }
    .bb-list { grid-template-columns: 1fr; }
    .bb-ages .lv-hero-actions .lv-btn { min-width: 0; flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .bb-list a { transition: none; }
}
