/**
 * Blog Listing CSS - Inteligência Brasil
 * Estilos para a página de listagem de posts do blog
 * v1.0.0
 */

/* ========================================
   NAVY BLUE THEME BASE
   ======================================== */
body {
    background: #0a1628;
}

.navbar-custom {
    background: rgba(13, 30, 56, 0.95) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.1);
    backdrop-filter: blur(20px);
}

.navbar-custom.top-nav-collapse {
    background: rgba(10, 22, 40, 0.98) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-custom .nav-link {
    color: #F1F5F9 !important;
}

.navbar-custom .nav-link:hover {
    color: #60A5FA !important;
}

/* ========================================
   BLOG HEADER
   ======================================== */
.blog-header {
    background: linear-gradient(135deg, #0D1E38 0%, #1a3a5c 50%, #0D1E38 100%);
    padding: 140px 0 80px;
    position: relative;
}

.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2360A5FA' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.blog-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #F1F5F9;
    margin-bottom: 15px;
}

.blog-header p {
    font-size: 1.2rem;
    color: #94A3B8;
    max-width: 600px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #60A5FA;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-tag i {
    font-size: 6px;
}

/* ========================================
   BLOG CONTENT
   ======================================== */
.blog-content {
    padding: 80px 0;
    background: #0a1628;
}

/* ========================================
   FILTER TAGS
   ======================================== */
.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-tag {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #94A3B8;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tag:hover,
.filter-tag.active {
    background: #60A5FA;
    border-color: #60A5FA;
    color: #0D1E38;
}

/* ========================================
   BLOG GRID
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

/* ========================================
   BLOG CARD
   ======================================== */
.blog-card {
    background: linear-gradient(145deg, #0f2035 0%, #0D1E38 100%);
    border: 1px solid rgba(96, 165, 250, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a3a5c 0%, #0D1E38 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image i {
    font-size: 4rem;
    color: rgba(96, 165, 250, 0.3);
}

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

.blog-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60A5FA;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.blog-card-body {
    padding: 25px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #64748B;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #60A5FA;
}

.blog-card-excerpt {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #60A5FA;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 12px;
    color: #93C5FD;
}

/* ========================================
   FEATURED POST
   ======================================== */
.blog-card.featured {
    grid-column: span 2;
}

.blog-card.featured .blog-card-image {
    height: 300px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer-section {
    background: #0D1E38;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(96, 165, 250, 0.1);
}

.footer-about p,
.footer-contact p,
.footer-links a {
    color: #94A3B8;
}

.footer-links h4,
.footer-contact h4 {
    color: #F1F5F9;
}

.footer-bottom {
    border-top: 1px solid rgba(96, 165, 250, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: #64748B;
}

.footer-bottom a {
    color: #94A3B8;
}

.footer-social a {
    color: #60A5FA;
}

/* ========================================
   NO POSTS MESSAGE
   ======================================== */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
}

.no-posts i {
    font-size: 4rem;
    color: rgba(96, 165, 250, 0.3);
    margin-bottom: 20px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb-nav {
    padding: 15px 0;
    background: rgba(13, 30, 56, 0.5);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #60A5FA;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #94A3B8;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #64748B;
}

/* ========================================
   SEARCH BAR
   ======================================== */
.blog-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
}

.search-input-group:focus-within {
    border-color: #60A5FA;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #F1F5F9;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: #64748B;
}

.search-btn {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.search-results-info {
    text-align: center;
    color: #94A3B8;
    margin-bottom: 20px;
    display: none;
}

.search-results-info .highlight {
    color: #60A5FA;
    font-weight: 600;
}

.blog-card.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #94A3B8;
    display: none;
}

.no-results i {
    font-size: 4rem;
    color: rgba(96, 165, 250, 0.3);
    margin-bottom: 20px;
    display: block;
}

.clear-search {
    background: transparent;
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 50px;
    padding: 8px 16px;
    color: #60A5FA;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.clear-search:hover {
    background: rgba(96, 165, 250, 0.1);
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter-section {
    background: linear-gradient(135deg, #0D1E38 0%, #1a3a5c 50%, #0D1E38 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2360A5FA' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.newsletter-wrapper {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.newsletter-content {
    margin-bottom: 30px;
}

.newsletter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.newsletter-icon img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 5px 20px rgba(96, 165, 250, 0.4));
}

.newsletter-icon i {
    font-size: 28px;
    color: #fff;
}

.newsletter-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #F1F5F9;
    margin-bottom: 15px;
}

.newsletter-content p {
    color: #94A3B8;
    font-size: 1rem;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 50px;
    padding: 6px;
    transition: all 0.3s ease;
}

.newsletter-input-group:focus-within {
    border-color: #60A5FA;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 20px;
    color: #F1F5F9;
    font-size: 1rem;
    outline: none;
}

.newsletter-input::placeholder {
    color: #64748B;
}

.newsletter-btn {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
    border: none;
    border-radius: 50px;
    padding: 12px 28px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-btn i {
    font-size: 0.9rem;
}

.newsletter-message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
}

.newsletter-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

.newsletter-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.newsletter-disclaimer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #64748B;
}

.newsletter-disclaimer i {
    margin-right: 5px;
    color: #60A5FA;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .blog-card.featured {
        grid-column: span 1;
    }

    .blog-card.featured .blog-card-image {
        height: 200px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .newsletter-section {
        padding: 50px 20px;
    }

    .newsletter-content h3 {
        font-size: 1.4rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        border-radius: 12px;
        padding: 10px;
    }

    .newsletter-input {
        text-align: center;
        padding: 12px 15px;
    }

    .newsletter-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .newsletter-btn .btn-text {
        display: inline;
    }
}
