/* Notebook — SEO components (breadcrumbs, cat-cloud, collections, faq, related, push, pagination). */

.breadcrumbs {
    padding: 0.75rem 0 1rem;
    font-family: 'PT Serif', serif;
    font-size: 0.92rem;
    color: var(--ink-dim);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.breadcrumbs a {
    color: var(--ink-blue);
    text-decoration: none;
    border-bottom: 1px dashed rgba(30,58,107,0.35);
    padding-bottom: 1px;
    font-style: italic;
}
.breadcrumbs a:hover { color: var(--ink-red); border-bottom-color: var(--ink-red); }
.breadcrumbs .bc-sep { color: var(--ink-dim); font-family: 'Caveat', cursive; font-size: 1.15rem; }
.breadcrumbs .bc-current { color: var(--ink); font-weight: 500; font-style: italic; }

.fact-category[href] { text-decoration: none; transition: opacity 0.15s; }
.fact-category[href]:hover { opacity: 0.75; }

/* ── CATEGORIES CLOUD ── */
.cat-cloud {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px dashed var(--rule);
}
.cat-cloud .section-title { color: var(--ink); }
.cat-cloud-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.cat-cloud-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: var(--polaroid);
    border: 1px solid var(--paper-shadow);
    color: var(--ink);
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    transition: box-shadow .15s, transform .15s;
    box-shadow: 2px 2px 0 var(--paper-shadow);
}
.cat-cloud-item:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--paper-shadow);
}
.cat-cloud-emoji { font-size: 1.25rem; flex-shrink: 0; filter: sepia(0.18); }
.cat-cloud-name { flex-grow: 1; font-weight: 500; font-size: 1rem; }
.cat-cloud-count {
    font-family: 'PT Serif', serif;
    font-style: italic;
    color: var(--ink-dim);
    font-size: 0.9rem;
    font-feature-settings: 'tnum';
}

/* ── RELATED FACTS (fact page) — uses .facts-grid.grid-mode from style.css ── */
.related-facts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--rule);
}

/* ── ABOUT PAGE ── */
.about-page { max-width: 780px; margin: 0 auto; padding: 1rem 0 2rem; }
.about-header { text-align: center; margin: 1rem 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px dashed var(--rule); }
.about-header h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-top: 0.5rem;
}
.about-section { margin: 2.5rem 0; }
.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: 1rem;
    letter-spacing: -0.005em;
}
.about-section p {
    font-family: 'PT Serif', serif;
    font-size: 1.06rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 1rem;
}
.about-section p:last-child { margin-bottom: 0; }
.about-section p strong { font-family: 'Playfair Display', serif; font-weight: 600; }
.about-section a {
    color: var(--ink-blue);
    text-decoration: none;
    border-bottom: 1px dashed rgba(30,58,107,0.4);
    padding-bottom: 1px;
}
.about-section a:hover { color: var(--ink-red); border-bottom-color: var(--ink-red); }
.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--rule);
    flex-wrap: wrap;
}
.about-cta .btn-primary.btn-alt {
    background: var(--paper);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--paper-shadow);
}
.about-cta .btn-primary.btn-alt:hover { box-shadow: 4px 4px 0 var(--paper-shadow); background: var(--paper); }

/* ── FOOTER links ── */
.footer-links {
    margin-top: 0.4rem !important;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-size: 0.95rem !important;
    color: var(--ink-dim);
}
.footer-links a {
    color: var(--ink-dim);
    text-decoration: none;
    border-bottom: 1px dashed var(--rule);
    padding-bottom: 1px;
    margin: 0 0.35rem;
}
.footer-links a:hover { color: var(--ink-red); border-bottom-color: var(--ink-red); }

/* ── PAGINATION ── */
.pagination {
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    font-family: 'PT Serif', serif;
}
.pagination .page-info {
    color: var(--ink-dim);
    font-size: 0.95rem;
    font-style: italic;
}

/* ── PUSH CTA ── */
#push-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #fff090 0%, #ffd946 100%);
    color: var(--ink);
    padding: 0.75rem 1.1rem;
    border-radius: 4px;
    border: 1px solid rgba(180,140,20,0.28);
    box-shadow:
        0 4px 10px rgba(60,50,30,0.18),
        0 12px 22px rgba(60,50,30,0.20),
        3px 4px 0 rgba(60,50,30,0.10);
    display: none;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    z-index: 100;
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    max-width: calc(100vw - 32px);
    transition: transform .15s, box-shadow .15s;
    transform: rotate(-2deg);
}
#push-cta:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow:
        0 5px 12px rgba(60,50,30,0.22),
        0 16px 28px rgba(60,50,30,0.26),
        4px 5px 0 rgba(60,50,30,0.12);
}
#push-cta .push-cta-icon { font-size: 1.2rem; }
#push-cta .push-cta-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#push-cta-close {
    background: rgba(0,0,0,0.15);
    border: none;
    color: var(--ink);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 0;
    font-size: 0.72rem;
    cursor: pointer;
    line-height: 1;
    margin-left: 0.2rem;
    flex-shrink: 0;
    font-family: 'PT Serif', serif;
    font-weight: bold;
}
#push-cta-close:hover { background: rgba(0,0,0,0.25); }

/* ── COLLECTIONS GRID (index page /collections) ── */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}
.collection-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    background: var(--polaroid);
    border: 1px solid var(--paper-shadow);
    box-shadow: 3px 3px 0 var(--paper-shadow);
    color: inherit;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.collection-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--paper-shadow);
}
.collection-card:nth-child(odd) { transform: rotate(-0.5deg); }
.collection-card:nth-child(even) { transform: rotate(0.5deg); }
.collection-card:nth-child(odd):hover { transform: rotate(-0.5deg) translate(-2px, -2px); }
.collection-card:nth-child(even):hover { transform: rotate(0.5deg) translate(-2px, -2px); }
.collection-card .col-emoji {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 0.25rem;
    filter: sepia(0.18);
}
.collection-card .col-body { flex-grow: 1; min-width: 0; }
.collection-card .col-name {
    margin: 0 0 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.3;
}
.collection-card .col-meta {
    margin: 0 0 0.9rem;
    font-family: 'PT Serif', serif;
    font-size: 0.94rem;
    color: var(--ink-dim);
    line-height: 1.5;
}
.collection-card .col-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.collection-card .col-count {
    font-family: 'PT Serif', serif;
    font-style: italic;
    padding: 0.15rem 0.65rem;
    background: var(--paper-2);
    border-radius: 0;
    font-size: 0.85rem;
    color: var(--ink-dim);
}
.collection-card .col-arrow {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--ink-red);
    font-weight: 700;
    transform: rotate(-1.5deg);
}

/* ── FAQ (fact page) ── */
.faq-block {
    margin: 2rem 0 1.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--polaroid);
    border: 1px solid var(--paper-shadow);
    box-shadow: 3px 3px 0 var(--paper-shadow);
}
.faq-block .faq-title {
    margin: 0 0 1.1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--ink);
    font-weight: 600;
}
.faq-item { margin: 0 0 1.1rem; }
.faq-item:last-child { margin-bottom: 0; }
.faq-item .faq-q {
    margin: 0 0 0.4rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--ink);
    font-weight: 500;
    line-height: 1.35;
}
.faq-item .faq-a {
    margin: 0;
    font-family: 'PT Serif', serif;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.55;
}
.faq-item .faq-a a {
    color: var(--ink-blue);
    text-decoration: none;
    border-bottom: 1px dashed rgba(30,58,107,0.4);
    font-style: italic;
}
.faq-item .faq-a a:hover { color: var(--ink-red); border-bottom-color: var(--ink-red); }

/* ── RELATED SEARCHES (fact page + collection page) ── */
.related-searches {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.8rem;
    border-top: 1px dashed var(--rule);
}
.related-searches .section-title {
    margin: 0 0 1rem;
    font-family: 'Caveat', cursive;
    color: var(--ink-red);
    font-size: 1.5rem;
    font-weight: 700;
}
.related-searches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.7rem;
}
.rs-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.75rem 1rem;
    background: var(--polaroid);
    border: 1px solid var(--paper-shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 2px 2px 0 var(--paper-shadow);
}
.rs-item:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--paper-shadow);
    color: var(--ink);
}
.rs-item .rs-emoji { font-size: 1.15rem; flex-shrink: 0; filter: sepia(0.18); }
.rs-item .rs-text { font-family: 'Playfair Display', serif; font-weight: 500; font-size: 0.98rem; }

/* ── CATEGORY / COLLECTION INTRO ── */
.category-intro {
    margin: 1.5rem 0 2.5rem;
    padding: 1.8rem 2rem;
    background: var(--polaroid);
    border: 1px solid var(--paper-shadow);
    box-shadow: 3px 3px 0 var(--paper-shadow);
    line-height: 1.65;
    font-family: 'PT Serif', serif;
    color: var(--ink);
}
.category-intro h2 {
    margin: 0 0 1rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--ink);
    font-weight: 600;
}
.category-intro p {
    margin: 0 0 1rem;
    color: var(--ink);
    font-size: 1rem;
}
.category-intro p:last-child { margin-bottom: 0; }
.category-intro a {
    color: var(--ink-blue);
    text-decoration: none;
    border-bottom: 1px dashed rgba(30,58,107,0.4);
    padding-bottom: 1px;
    font-style: italic;
}
.category-intro a:hover { color: var(--ink-red); border-bottom-color: var(--ink-red); }

@media (max-width: 640px) {
    .cat-cloud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
    .cat-cloud-item { min-width: 0; padding: 0.75rem 0.85rem; gap: 0.45rem; }
    .cat-cloud-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.94rem; }
    .cat-cloud-emoji { font-size: 1.1rem; }
    .cat-cloud-count { font-size: 0.82rem; flex-shrink: 0; }
    .breadcrumbs { font-size: 0.85rem; }
    .category-intro { padding: 1.35rem 1.25rem; margin: 1rem 0 2rem; }
    .category-intro h2 { font-size: 1.2rem; }
    .faq-block { padding: 1.3rem 1.2rem; }
    .related-searches-grid { grid-template-columns: 1fr; }
    #push-cta { bottom: 16px; right: 16px; left: 16px; justify-content: center; padding: 0.7rem 1rem; }
    .collections-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .cat-cloud-grid { grid-template-columns: 1fr; }
    .cat-cloud-name { white-space: normal; }
}
