/* Estilos do Blog */

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

/* Blog Cards */
.blog-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blog-card img {
    transition: transform 0.3s ease;
}

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

/* Botões de Categoria */
.category-button {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-button:hover {
    transform: translateY(-2px);
}

.category-button.active {
    background-color: #3B82F6;
    color: white;
}

/* Barra de Busca */
#searchInput {
    transition: box-shadow 0.3s ease;
}

#searchInput:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

#searchResults {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #4B5563 #1F2937;
}

#searchResults::-webkit-scrollbar {
    width: 8px;
}

#searchResults::-webkit-scrollbar-track {
    background: #1F2937;
}

#searchResults::-webkit-scrollbar-thumb {
    background-color: #4B5563;
    border-radius: 4px;
}

/* Formulário Newsletter */
.newsletter-form input {
    transition: box-shadow 0.3s ease;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.newsletter-form button {
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
}

.newsletter-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Botões de Compartilhamento */
.share-button {
    transition: transform 0.2s ease;
}

.share-button:hover {
    transform: translateY(-2px);
}

/* Sistema de Notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #1F2937;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

.notification.success {
    border-left: 4px solid #10B981;
}

.notification.error {
    border-left: 4px solid #EF4444;
}

/* Lazy Loading de Imagens */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-src].loaded {
    opacity: 1;
}

/* Artigo */
.article-content {
    line-height: 1.8;
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #3B82F6;
    background-color: rgba(59, 130, 246, 0.1);
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .article-content {
        padding: 0 1rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .notification {
        width: 90%;
        left: 5%;
        right: 5%;
    }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .article-content {
        color: #F3F4F6;
    }

    .article-content blockquote {
        background-color: rgba(59, 130, 246, 0.05);
    }
}

/* Preferência de Redução de Movimento */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card img,
    .category-button,
    .share-button,
    .newsletter-form button {
        transition: none;
    }

    .blog-card:hover,
    .blog-card:hover img,
    .category-button:hover,
    .share-button:hover,
    .newsletter-form button:hover {
        transform: none;
    }
}

/* Estilos para Impressão */
@media print {
    .header,
    .footer,
    .share-buttons,
    .newsletter-form,
    .related-articles {
        display: none;
    }

    .article-content {
        font-size: 12pt;
        line-height: 1.6;
        color: #000;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
} 