/**
 * Theme Name: Bibliográfico Blocksy
 * Description: Tema filho do Blocksy adaptado para acervos bibliográficos
 * Author: Adaptado do tema MuseusBR
 * Template: blocksy
 * Text Domain: bibliografico
 * Version: 1.0.0
 */

/* ==================== BARRA DE BUSCA DOS BANNERS ==================== */
.hero-section .banner-searchbar .wp-block-search__inside-wrapper {
    --theme-form-field-height: 48px;
}
.hero-section .banner-searchbar .wp-block-search__inside-wrapper .wp-block-search__button {
    margin-left: 5px;
}
.hero-section[data-type="type-2"] > [class*="ct-container"] .banner-searchbar {
    float: right;
    margin-top: 20px;
    margin-bottom: 20px;
}

@media screen and (max-width: 999px) {
    .hero-section[data-type="type-2"] > [class*="ct-container"] .banner-searchbar {
        justify-content: flex-start;
        max-width: 100%;
    }
    .hero-section[data-type="type-2"] > [class*="ct-container"] .banner-searchbar form {
        max-width: 100%;
    }
    .hero-section[data-type="type-2"] > [class*="ct-container"] .banner-searchbar input {
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hero-section .banner-searchbar .wp-block-image {
        display: none;
    }
    .hero-section .banner-searchbar .wp-block-search__inside-wrapper {
        width: 100%;
    }
}
@media screen and (min-width: 1000px) {
    .hero-section[data-type="type-2"] > [class*="ct-container"] {
        display: block !important;
    }
    .hero-section[data-type="type-2"] > [class*="ct-container"] .banner-searchbar {
        justify-content: flex-end;
        float: right;
        margin-right: 42px;
    }
}

/* ==================== BOTÃO DE LOGIN ==================== */
.ct-header-account {
    --theme-button-min-height: 34px;
    --theme-button-padding: 3px 15px;
    --theme-button-font-size: 13px;
}

/* ==================== CUSTOMIZAÇÕES DE BOTÕES ==================== */
.wp-block-button__link.is-style-museusbr-clickable-card,
.wp-block-button__link.is-style-clickable-card {
    padding: 0;
    min-height: unset;
    display: block;
}

/* ==================== CARTÕES CLICÁVEIS ==================== */
.is-style-museusbr-clickable-card,
.is-style-clickable-card {
    position: relative;
}
.is-style-museusbr-clickable-card a[data-type="core/post-title"],
.is-style-clickable-card a[data-type="core/post-title"] {
    text-decoration: none;
}
.is-style-museusbr-clickable-card a[data-type="core/post-title"]::after,
.is-style-clickable-card a[data-type="core/post-title"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

/* ==================== ESTILOS PARA LISTA DE ITENS ==================== */
.ct-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ct-item-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ct-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==================== BREADCRUMBS ==================== */
.ct-breadcrumbs {
    font-size: 0.875rem;
    padding: 0.5rem 0;
}
.ct-breadcrumbs a {
    color: var(--theme-link-initial-color);
    text-decoration: none;
}
.ct-breadcrumbs a:hover {
    text-decoration: underline;
}
.ct-breadcrumbs .ct-separator {
    margin: 0 0.5rem;
    color: var(--theme-text-color);
}