/*
Theme Name: AI é Vida Theme
Theme URI: https://aievida.com.br/
Author: Seu Nome
Author URI: https://seusite.com/
Description: Um tema moderno e focado em conteúdo para o blog AI é Vida.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-header, custom-menu, featured-images, full-width-template
Text Domain: aievidatheme
*/

/* --- Definições de Animação --- */
@keyframes fadeInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@keyframes enterCard {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(15px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Estilos Base --- */
.header-bg {
    background-color: #111827; /* bg-gray-900 */
}
.footer-bg {
    background-color: #111827; /* bg-gray-900 */
}
.welcome-section {
    background: linear-gradient(180deg, #111827 0%, #1a202c 100%);
}

/* --- Estilos da Paginação --- */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #4f46e5; /* Cor indigo-600 */
    color: #c7d2fe; /* Cor indigo-200 */
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}
.pagination .page-numbers:hover {
    background-color: #4f46e5; /* Cor indigo-600 */
    color: #ffffff;
}
.pagination .page-numbers.current {
    background-color: #4f46e5; /* Cor indigo-600 */
    color: #ffffff;
    font-weight: bold;
}
.pagination .dots {
    padding: 0.5rem 1rem;
    color: #c7d2fe;
}


/* --- Estilos do Single Post Moderno V2.0 --- */
.entry-title {
    -webkit-background-clip: text;
    background-clip: text;
}
.animate-fade-in-up {
    animation: fadeInFromBottom 1s ease-out 0.3s forwards;
    opacity: 0;
}
.animate-fade-in {
    animation: fadeIn 1.5s ease-out 0.6s forwards;
    opacity: 0;
}
.animate-card-enter {
    animation: enterCard 0.6s ease-out forwards;
    opacity: 0;
}
/* Adiciona um delay escalonado para os cards */
.animate-card-enter:nth-child(1) { animation-delay: 0.1s; }
.animate-card-enter:nth-child(2) { animation-delay: 0.2s; }
.animate-card-enter:nth-child(3) { animation-delay: 0.3s; }
.animate-card-enter:nth-child(4) { animation-delay: 0.4s; }
.animate-card-enter:nth-child(5) { animation-delay: 0.5s; }
.animate-card-enter:nth-child(6) { animation-delay: 0.6s; }


/* Botões de Compartilhamento */
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    line-height: 1;
}
.share-btn:hover {
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.6);
}

/* Caixa do Autor */
.author-box .avatar {
    border: 2px solid #6366f1;
    transition: transform 0.3s ease-in-out;
}
.author-box .avatar:hover {
    transform: scale(1.05);
}

/* Seção de Posts Relacionados e Cards da Homepage */
.related-posts-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-top: 1px solid #374151;
}
.post-card {
    background-color: #1f2937;
    border: 1px solid #374151;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3), 0 0 15px rgba(139, 92, 246, 0.4);
}
.post-card .post-thumbnail {
    height: 200px;
    overflow: hidden;
}
.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}
.post-card:hover .post-thumbnail img {
    transform: scale(1.1);
}
.post-card .post-title {
    color: #e0e7ff;
    transition: color 0.3s ease-in-out;
}
.post-card:hover .post-title {
    color: #a78bfa;
}


/* --- Estilos da Seção de Comentários --- */
.comments-area {
    background-color: #1f2937; /* bg-gray-800 */
    border: 1px solid #374151; /* border-gray-700 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.5rem; /* p-6 */
    margin-top: 3rem; /* mt-12 */
    color: #d1d5db; /* text-gray-300 */
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #ffffff; /* text-white */
    margin-bottom: 1.5rem; /* mb-6 */
    border-bottom: 2px solid #4f46e5; /* border-indigo-600 */
    padding-bottom: 0.5rem; /* pb-2 */
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list .comment {
    border-bottom: 1px solid #374151; /* border-gray-700 */
    padding-bottom: 1rem; /* pb-4 */
    margin-bottom: 1rem; /* mb-4 */
}
.comment-list .children {
    list-style: none;
    margin-left: 1.5rem; /* ml-6 */
    border-left: 2px solid #4b5563; /* border-gray-600 */
    padding-left: 1rem; /* pl-4 */
    margin-top: 1rem; /* mt-4 */
}
.comment-author .avatar {
    border-radius: 9999px; /* rounded-full */
    margin-right: 0.75rem; /* mr-3 */
}
.comment-author .fn {
    font-weight: 600; /* font-semibold */
    color: #ffffff; /* text-white */
    font-style: normal;
}
.comment-metadata {
    font-size: 0.875rem; /* text-sm */
    color: #9ca3af; /* text-gray-400 */
}
.comment-metadata a {
    color: #9ca3af; /* text-gray-400 */
    transition: color 0.2s;
}
.comment-metadata a:hover {
    color: #a78bfa; /* text-purple-400 */
}
.comment-content p {
    margin-top: 0.75rem; /* mt-3 */
    line-height: 1.6;
}
.reply .comment-reply-link {
    display: inline-block;
    font-size: 0.875rem; /* text-sm */
    color: #a78bfa; /* text-purple-400 */
    font-weight: 600; /* font-semibold */
    transition: color 0.2s;
    margin-top: 0.5rem; /* mt-2 */
}
.reply .comment-reply-link:hover {
    color: #c4b5fd; /* text-purple-300 */
}

/* Formulário de Comentário */
.comment-form {
    margin-top: 2rem; /* mt-8 */
}
.comment-form label {
    display: block;
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.5rem; /* mb-2 */
    color: #e5e7eb; /* text-gray-200 */
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: #374151; /* bg-gray-700 */
    border: 1px solid #4b5563; /* border-gray-600 */
    color: #ffffff; /* text-white */
    border-radius: 0.375rem; /* rounded-md */
    padding: 0.75rem 1rem; /* py-3 px-4 */
    transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #6366f1; /* border-indigo-500 */
    box-shadow: 0 0 0 2px #4f46e5; /* shadow-indigo-500 */
}
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* gap-2 */
}
.comment-form .comment-form-cookies-consent label {
    margin-bottom: 0;
    font-weight: normal; /* font-normal */
    font-size: 0.875rem; /* text-sm */
    color: #d1d5db; /* text-gray-300 */
}
.comment-notes,
.logged-in-as {
    font-size: 0.875rem; /* text-sm */
    color: #9ca3af; /* text-gray-400 */
    margin-bottom: 1rem; /* mb-4 */
}
.logged-in-as a {
    color: #a78bfa; /* text-purple-400 */
}
.logged-in-as a:hover {
    color: #c4b5fd; /* text-purple-300 */
}

/* Botão de Enviar */
.form-submit .submit {
    display: inline-block;
    background-color: #6366f1; /* bg-indigo-600 */
    color: #ffffff; /* text-white */
    font-weight: 600; /* font-semibold */
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    border-radius: 0.375rem; /* rounded-md */
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.form-submit .submit:hover {
    background-color: #4f46e5; /* bg-indigo-700 */
    transform: translateY(-2px);
}

