/* --- CSS para o Dicionário de Sonhos --- */
.dicionario-sonhos-container {
    font-family: inherit;
    color: #444;
    margin: 2em auto;
    max-width: 900px;
    padding: 0 15px;
}
.sonhos-filtros {
    margin-bottom: 2em;
}
.filtro-superior {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1em;
    align-items: center;
}

#sonhos-busca-input {
    box-sizing: border-box;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
    flex: 1;
    min-width: 200px;
    height: 48px;
    padding: 12px 15px;
    background: #fff;
    color: #333;
}
#sonhos-busca-input:focus {
    outline: none;
    border-color: #EBB434;
    box-shadow: 0 0 0 3px rgba(235, 180, 52, 0.2);
}

#sonhos-filtro-categoria {
    box-sizing: border-box;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 220px;
    height: 48px;
    padding: 10px 15px;
    background: #fff;
    color: #444;
    cursor: pointer;
}
#sonhos-filtro-categoria:focus {
    outline: none;
    border-color: #EBB434;
    box-shadow: 0 0 0 3px rgba(235, 180, 52, 0.2);
}

/* Estilos para Select2 se estiver ativo */
.dicionario-sonhos-container .select2-container {
    min-width: 220px !important;
    width: auto !important;
    flex: 1;
    max-width: 350px;
    box-sizing: border-box;
}
.dicionario-sonhos-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.dicionario-sonhos-container .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 15px !important;
    color: #444 !important;
    font-size: 15px;
}
.dicionario-sonhos-container .select2-selection__arrow {
    height: 46px !important;
}
.dicionario-sonhos-container .select2-container--default .select2-selection--single:focus,
.dicionario-sonhos-container .select2-container--default.select2-container--open .select2-selection--single {
    outline: none !important;
    border-color: #EBB434 !important;
    box-shadow: 0 0 0 3px rgba(235, 180, 52, 0.2) !important;
}

#sonhos-filtro-alfabetico-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}
.letra-filtro {
    text-decoration: none;
    color: #555;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e5e5e5;
}
.letra-filtro:hover {
    background-color: #e8e8e8;
    color: #111;
}
.letra-filtro.active {
    background-color: #EBB434;
    color: #fff;
    border-color: #dAA434;
}
.sonhos-lista-acordeao {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #fff;
}
.sonho-item {
    background-color: #fff;
    border-bottom: 1px solid #eee;
    display: block;
}
.sonho-item:last-child {
    border-bottom: none;
}
.sonho-titulo-clickable {
    padding: 18px 25px;
    cursor: pointer;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    user-select: none;
}
.sonho-titulo-clickable:hover {
    background-color: #fafbfc;
}
.sonho-titulo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.sonho-titulo-clickable h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}
.sonho-categoria-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f0f4f8;
    color: #4a6b82;
    padding: 3px 8px;
    border-radius: 4px;
}
.sonho-titulo-clickable::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: #EBB434;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}
.sonho-item.active .sonho-titulo-clickable::after {
    transform: rotate(45deg);
}
.sonho-conteudo-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    background-color: #fafafa;
}
.sonho-conteudo-inner {
    padding: 22px 25px;
    line-height: 1.8;
    color: #333;
    font-size: 15px;
}
.sonho-conteudo-inner strong {
    color: #111;
}
.sonho-meta-footer {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #777;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.sonho-fonte {
    font-style: italic;
}
.sonho-link-single {
    color: #C28B00;
    text-decoration: none;
    font-weight: 600;
}
.sonho-link-single:hover {
    text-decoration: underline;
}

.sonho-item-nenhum-encontrado,
.sonhos-nenhum-encontrado-inicial {
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    color: #666;
    font-size: 16px;
}
