/**
 * Nexus News - Custom Styles
 * Complementos para o Tailwind CSS
 */

/* Animações e transições */
.tab-content {
    transition: opacity 0.3s ease;
}

.tab-active {
    color: #c4170c;
    border-bottom-color: #c4170c;
}

/* Slider */
.slide {
    transition: opacity 0.7s ease-in-out;
}

.bg-geral{
    background: #c4170c !important;
}

nav ul li a{
    color: white !important;
}

/* Mais rápido (0.2s) */
.fa-solid {
    color: white !important;
    transition: color 0.2s ease !important;
}

/* Mais lento e suave (0.5s) */
.fa-solid {
    color: white !important;
    transition: color 0.5s ease !important;
}

/* Com efeito de easing personalizado */
.fa-solid {
    color: white !important;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Line clamp para parágrafos */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estilos para o conteúdo do post (single.php) */
.prose {
    max-width: 65ch;
    color: #374151;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.8;
}

.prose h2 {
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.3333333;
}

.prose h3 {
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-weight: 600;
    line-height: 1.6;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 0.5rem;
}

.prose a {
    color: #c4170c;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose blockquote {
    font-style: italic;
    border-left-width: 4px;
    border-left-color: #e5e7eb;
    padding-left: 1em;
    color: #6b7280;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

/* Widget Areas */
.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

/* Widget de Posts Populares */
.widget_popular_posts ul,
.widget_recent_entries ul {
    list-style: none;
    padding: 0;
}

.widget_popular_posts li,
.widget_recent_entries li {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.widget_popular_posts li:last-child,
.widget_recent_entries li:last-child {
    border-bottom: none;
}

.widget_popular_posts .post-thumbnail,
.widget_recent_entries .post-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.widget_popular_posts .post-title,
.widget_recent_entries .post-title {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
}

.widget_popular_posts .post-title a,
.widget_recent_entries .post-title a {
    color: #1f2937;
}

.widget_popular_posts .post-title a:hover,
.widget_recent_entries .post-title a:hover {
    color: #c4170c;
}

.widget_popular_posts .post-meta,
.widget_recent_entries .post-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Widget de Categorias */
.widget_categories ul {
    list-style: none;
    padding: 0;
}

.widget_categories li {
    margin-bottom: 0.5rem;
}

.widget_categories a {
    color: #4b5563;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.widget_categories a:hover {
    background-color: #f3f4f6;
    color: #c4170c;
}

.widget_categories .cat-count {
    background-color: #e5e7eb;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

/* Widget de Tags */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tagcloud a {
    background-color: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem !important;
    transition: all 0.2s;
}

.tagcloud a:hover {
    background-color: #c4170c;
    color: white;
}

/* Áreas de Anúncio */
.ad-container {
    text-align: center;
    overflow: hidden;
}

.ad-container iframe,
.ad-container img {
    max-width: 100%;
    height: auto;
}

/* Botão de busca */
.search-form {
    position: relative;
    max-width: 300px;
}

.search-form input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    outline: none;
}

.search-form input:focus {
    border-color: #c4170c;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-form button {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
}

.search-form button:hover {
    color: #c4170c;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    background-color: white;
    color: #4b5563;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.pagination .page-numbers:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.pagination .page-numbers.current {
    background-color: #c4170c;
    border-color: #c4170c;
    color: white;
}

/* Comentários */
.comment-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.comment {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: #1f2937;
}

.comment-metadata {
    font-size: 0.875rem;
    color: #6b7280;
}

.comment-content {
    color: #4b5563;
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
    text-align: right;
}

.reply a {
    color: #c4170c;
    font-size: 0.875rem;
    font-weight: 500;
}

.reply a:hover {
    text-decoration: underline;
}

/* Formulário de comentários */
.comment-respond {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.comment-form {
    display: grid;
    gap: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #c4170c;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit {
    background-color: #c4170c;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form .submit:hover {
    background-color: #1d4ed8;
}

/* Cores dinâmicas para categorias */
.bg-blue-600 { background-color: #c4170c; }
.bg-red-600 { background-color: #dc2626; }
.bg-green-600 { background-color: #16a34a; }
.bg-yellow-600 { background-color: #ca8a04; }
.bg-purple-600 { background-color: #9333ea; }
.bg-pink-600 { background-color: #db2777; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-orange-600 { background-color: #ea580c; }
.bg-teal-600 { background-color: #0d9488; }
.bg-cyan-600 { background-color: #0891b2; }

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
    
    .grid {
        gap: 1rem;
    }
    
    .prose {
        font-size: 1rem;
    }
    
    .prose p {
        line-height: 1.6;
    }
}

/* Utilitários extras */
.hover-lift {
    transition: transform 0.2s;
}

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

.gradient-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.bg-blue-600 {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255) !important;
    color: #c4170c !important;
}

.text-blue-600 {
    --tw-text-opacity: 1;
    color: #c4170c !important;
}



a:hover {
    animation: 1s linear infinite;
    color: #c4170c  !important;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mensagens de erro/sucesso */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.img-footer img{
    width: 40%;
}

#mobileMenu {
    background: #c4170c !important;
}

.ico{
    
    background-color: rgb(153 27 27) !important;
}

.icos{
color: #4b0c0c !important; 
}