/* Estilos para o Blog FinanSimples */

/* Geral */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.7;
}

.section-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #0d6efd;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: #0d6efd;
}

/* Blog Header */
.blog-header {
    background-color: #0d6efd;
    background-image: linear-gradient(135deg, #0d6efd 0%, #0c4da1 100%);
    padding: 3rem 0;
    border-radius: 0 0 0.5rem 0.5rem;
}

.blog-header h1 {
    margin-bottom: 1.5rem;
}

.blog-header .search-form {
    max-width: 500px;
}

.blog-header img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Featured Posts */
.featured-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.featured-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.featured-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Recent Posts */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-title {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.card-text {
    color: #6c757d;
}

.card-footer {
    background-color: transparent;
    padding-top: 0;
}

/* Categories */
.category-card {
    text-align: center;
    padding: 1.5rem 1rem;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.125);
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-icon-wrapper {
    font-size: 2.5rem;
    color: #0d6efd;
    padding: 1.5rem 0;
    text-align: center;
    background-color: rgba(13, 110, 253, 0.05);
}

/* Newsletter Section */
.newsletter-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form input {
    border: none;
    padding: 15px 20px;
}

.newsletter-form button {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 0 50px 50px 0 !important;
}

/* Search Form */
.search-form .form-control {
    border-radius: 50px;
    padding: 10px 20px;
    border: none;
}

.search-form .btn {
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Search Results */
.search-highlight {
    background-color: rgba(255, 230, 0, 0.4);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: bold;
}

.search-result-count {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-result-item {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.search-result-item .title {
    color: #0d6efd;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.search-result-item .meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.search-result-item .excerpt {
    margin-bottom: 1rem;
}

.no-results-message {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.no-results-message .icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.no-results-message h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-results-message p {
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto;
}

/* Alert Messages */
.alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: none;
}

/* Footer */
footer {
    margin-top: 0;
}

footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: white !important;
}

/* Media Queries */
@media (max-width: 768px) {
    .blog-header {
        padding: 2rem 0;
        text-align: center;
    }
    
    .blog-header .search-form {
        margin: 0 auto;
    }
    
    .featured-card .card-img-top {
        height: 180px;
    }
    
    .card-img-top {
        height: 160px;
    }
    
    .section-title {
        text-align: center;
    }
    
    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 160px;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 50px;
        margin-bottom: 1rem;
    }
    
    .newsletter-form button {
        border-radius: 50px !important;
        width: 100%;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main section {
    animation: fadeIn 0.5s ease-out;
}

/* Lazy Loading */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Botão de voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    cursor: pointer;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
} 