/* ============================================
   ESTILOS DO BLOG
   ============================================ */

/* Hero do Blog */

.blog-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0ff 100%);
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.blog-hero h1 {
    position: relative;
    z-index: 1;
}

/* Cards de Artigos */

.article-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-electric-blue);
}

.article-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.article-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.article-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--neutral-gray);
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neutral-gray-dark);
    line-height: 1.4;
}

.article-excerpt {
    color: var(--neutral-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.article-author {
    font-size: 0.9rem;
    color: var(--neutral-gray);
    display: flex;
    align-items: center;
}

.read-more {
    color: var(--primary-electric-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.read-more:hover {
    color: var(--primary-electric-blue-dark);
    transform: translateX(5px);
}

/* Modal do Artigo */

.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.article-modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    margin-top: 2rem;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--neutral-gray-dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: white;
    transform: rotate(90deg);
}

.article-modal-header {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-modal-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-modal-header-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.article-modal-body {
    padding: 3rem;
}

.article-modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--neutral-gray-dark);
    line-height: 1.3;
}

.article-modal-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
    color: var(--neutral-gray);
    flex-wrap: wrap;
}

.article-modal-meta span {
    display: flex;
    align-items: center;
}

.article-modal-content-text {
    color: var(--neutral-gray-dark);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.article-modal-content-text h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--neutral-gray-dark);
}

.article-modal-content-text p {
    margin-bottom: 1rem;
}

.article-modal-content-text ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-modal-content-text li {
    margin-bottom: 0.5rem;
}

.article-modal-footer {
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.facebook:hover {
    background: #165ec7;
    transform: translateY(-2px);
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.linkedin:hover {
    background: #084ba0;
    transform: translateY(-2px);
}

/* Artigos Relacionados */

.related-articles {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.related-article-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article-card:hover img {
    transform: scale(1.1);
}

.related-article-card h5 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    padding: 1rem;
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Pagina de Artigo Individual */

.article-page {
    min-height: 100vh;
}

.article-page-header {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.article-page-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-page-header-overlay {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.article-page-header-content {
    margin-top: -3rem;
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.article-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neutral-gray-dark);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-page-meta {
    display: flex;
    gap: 2rem;
    color: var(--neutral-gray);
    flex-wrap: wrap;
}

.article-page-meta span {
    display: flex;
    align-items: center;
}

.article-page-excerpt {
    font-size: 1.2rem;
    color: var(--neutral-gray);
    font-style: italic;
}

.article-page-body {
    color: var(--neutral-gray-dark);
    line-height: 1.8;
    font-size: 1.05rem;
}

.article-page-body h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--neutral-gray-dark);
}

.article-page-body p {
    margin-bottom: 1rem;
}

.article-page-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.article-page-body li {
    margin-bottom: 0.5rem;
}

.article-page-share {
    background: var(--neutral-gray-light);
    padding: 2rem;
    border-radius: 1rem;
}

.article-page-share .share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.related-articles-section {
    margin-top: 3rem;
}

.related-articles-section h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--neutral-gray-dark);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
}

.breadcrumb-section {
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-electric-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--neutral-gray);
}

/* Filtros e Busca */

#searchInput,
#categoryFilter {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#searchInput:focus,
#categoryFilter:focus {
    border-color: var(--primary-electric-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

/* Responsividade */

@media (max-width: 768px) {
    .article-modal-body {
        padding: 1.5rem;
    }

    .article-modal-title {
        font-size: 1.75rem;
    }

    .article-modal-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .article-modal-header {
        height: 250px;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .article-card {
        margin-bottom: 1rem;
    }

    .article-title {
        font-size: 1.1rem;
    }

    .article-modal {
        padding: 1rem;
    }

    .article-modal-content {
        margin-top: 1rem;
    }

    .article-modal-body {
        padding: 1rem;
    }

    .article-modal-title {
        font-size: 1.5rem;
    }

    .article-modal-content-text h3 {
        font-size: 1.25rem;
    }

    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
        top: 1rem;
        right: 1rem;
    }

    .article-image {
        height: 200px;
    }

    .related-article-card img {
        height: 150px;
    }
}

/* Animações */

.article-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados */

#noResults {
    animation: fadeIn 0.3s ease;
}

