/* ============================================
   FINANCAS-HUB.CSS - hub /financas/
   Consciência Monetária

   Componentes visuais da página do Blog reaproveitados no hub de
   Finanças (busca, filtro por módulo, sidebar "Explore também",
   curadoria, banner APOIE O PROJETO, cartões de conteúdo, lista,
   paginação). No blog, esse CSS vive num <style> inline de
   src/blog.njk; aqui foi extraído de lá (somente as regras dos
   componentes usados) para que o hub tenha EXATAMENTE o mesmo
   visual. Se o visual do blog mudar, este arquivo precisa ser
   atualizado junto. Recomendação futura: mover o <style> do blog
   para um CSS compartilhado e apagar esta cópia.
   Carregado só em /financas/ (pageCss do index.njk).
   ============================================ */

.blog-section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0c1814;
    line-height: 1.2;
}

.blog-sidebar-sticky-container {
    position: sticky;
    top: 120px;
}

.blog-categories-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.blog-categories-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-categories-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.blog-categories-list::-webkit-scrollbar {
    width: 4px;
}

.blog-categories-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.blog-categories-list::-webkit-scrollbar-thumb {
    background: rgba(16, 185, 129, 0.3);
    border-radius: 4px;
}

.blog-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.blog-category-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

.blog-category-checkbox:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.blog-category-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.blog-category-count {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.blog-explore-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.blog-explore-section:hover {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.blog-explore-title {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(16, 185, 129, 0.7);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-explore-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.2), transparent);
    margin-bottom: 1.25rem;
}

.blog-explore-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-explore-link {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.blog-explore-link:hover {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    transform: translateX(4px);
}

.blog-explore-link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
    color: #10b981;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.blog-explore-link:hover .blog-explore-link-icon {
    background: #10b981;
    color: #0c1814;
}

.blog-explore-link-content {
    flex: 1;
}

.blog-explore-link-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.15rem;
    transition: color 0.25s ease;
}

.blog-explore-link:hover .blog-explore-link-title {
    color: #10b981;
}

.blog-explore-link-desc {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.3px;
}

.blog-explore-link-arrow {
    color: rgba(16, 185, 129, 0.4);
    font-size: 0.75rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.blog-explore-link:hover .blog-explore-link-arrow {
    transform: translateX(4px);
    color: #10b981;
}

.blog-apoie-banner {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.02) 100%);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.blog-apoie-banner:hover {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.blog-apoie-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.blog-apoie-banner:hover .blog-apoie-title {
    opacity: 1;
}

.blog-apoie-description {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.blog-apoie-qrcode {
    background: white;
    padding: 0.50rem;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-apoie-qrcode img {
    width: 120px;
    height: 120px;
    display: block;
}

.blog-apoie-chave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    padding: 0.4rem 1rem;
    width: fit-content;
    margin: 0 auto 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-apoie-chave i {
    color: rgba(16, 185, 129, 0.5);
    font-size: 0.7rem;
}

.blog-apoie-chave code {
    color: rgba(255, 255, 255, 1.0);
    font-size: 0.7rem;
    font-family: monospace;
}

.blog-apoie-copy-btn {
    background: transparent;
    border: none;
    color: #10b981;
    font-size: 0.7rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.blog-apoie-copy-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    color: #0d9668;
}

.blog-apoie-disclaimer {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.6rem;
    letter-spacing: 0.3px;
}

.blog-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 4px;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(16, 185, 129, 0.05);
}

.blog-image-container {
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #0c1814;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta .sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.5rem;
}

.blog-meta time {
    font-size: 0.7rem;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
    margin-top: auto;
}

.blog-link:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

.blog-link:hover {
    gap: 12px;
    color: #0d9668;
}

.blog-list-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.blog-list-item:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 4px;
}

.blog-list-item:hover {
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.blog-list-image-container {
    width: 180px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #0c1814;
}

.blog-list-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list-content {
    flex: 1;
}

.blog-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.blog-list-meta .sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.6rem;
}

.blog-list-meta time {
    font-size: 0.7rem;
}

.blog-list-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-list-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.blog-list-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-list-link:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

.blog-list-link:hover {
    gap: 12px;
    color: #0d9668;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.blog-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: rgba(16, 185, 129, 0.3);
}

.blog-image-placeholder span {
    font-size: 0.8rem;
    text-align: center;
    padding: 0 1rem;
    color: rgba(255, 255, 255, 0.4);
}

.blog-image-placeholder-list {
    width: 180px;
    height: 120px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
}

.blog-image-placeholder-list i {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    color: rgba(16, 185, 129, 0.3);
}

.blog-image-placeholder-list span {
    font-size: 0.7rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.blog-search-container {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.blog-search-input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.blog-search-input:focus {
    outline: none;
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.08);
}

.blog-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.blog-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
}

.blog-search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: none;
}

.blog-search-clear.visible {
    display: block;
}

.blog-per-page-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-per-page-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.blog-view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-view-btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-view-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.blog-view-btn.active {
    background: #10b981;
    color: white;
}

.blog-results-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: right;
}

.blog-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 40px 0;
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.blog-pagination-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.blog-pagination-btn:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

.blog-pagination-btn.active {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.blog-pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.blog-articles-section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-articles-section-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.title-divider {
    width: 60px;
    height: 3px;
    background: #10b981;
    margin: 0 auto;
}

.blog-related-posts-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-related-posts-card:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 4px;
}

.blog-related-posts-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.blog-related-posts-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), transparent);
}

.blog-related-posts-icon i {
    font-size: 3rem;
    color: rgba(16, 185, 129, 0.6);
    transition: all 0.3s ease;
}

.blog-related-posts-card:hover .blog-related-posts-icon i {
    color: #10b981;
    transform: scale(1.1);
}

.blog-related-posts-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-related-posts-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(16, 185, 129, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-related-posts-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin: 0.5rem 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.blog-related-posts-card:hover .blog-related-posts-title {
    color: #10b981;
}

.blog-related-posts-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-related-posts-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.blog-related-posts-link:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
    border-radius: 4px;
}

.blog-related-posts-link:hover {
    gap: 0.75rem;
    color: #0d9668;
}

@media (max-width: 768px) {
  .blog-section-title {
        font-size: 2rem;
    }
  .blog-list-item {
        flex-direction: column;
        text-align: center;
    }
  .blog-list-image-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
  .blog-sidebar-sticky-container {
        top: 80px;
    }
  .blog-articles-section-title h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 640px) {
  .blog-categories-sidebar {
        padding: 1rem;
    }
  .blog-explore-section {
        padding: 1rem;
    }
}
