/* Style sheet customizado para o blog da GRU Soluções e Serviços */

/* Transição suave para alternar cores (Dark Mode) */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Evitar sobreposição do cabeçalho fixo */
.blog-main-content {
    margin-top: var(--header-height, 120px) !important;
}

/* Override de Dark Mode */
body.dark {
    background-color: #0b0f19 !important;
    color: #e2e8f0 !important;
}

body.dark .bg-white {
    background-color: #111827 !important; /* gray-900 */
    color: #e2e8f0 !important;
}

body.dark .bg-gray-50 {
    background-color: #0b0f19 !important;
}

body.dark .bg-gray-100 {
    background-color: #1f2937 !important; /* gray-800 */
}

body.dark .text-gray-900,
body.dark .text-gray-800,
body.dark .text-gray-700 {
    color: #f8fafc !important;
}

body.dark .text-gray-600,
body.dark .text-gray-500,
body.dark .text-gray-400 {
    color: #94a3b8 !important; /* slate-400 */
}

body.dark .border-gray-100,
body.dark .border-gray-200,
body.dark .border-gray-200\/50,
body.dark .border-gray-300 {
    border-color: #374151 !important; /* gray-700 */
}

body.dark .shadow-sm,
body.dark .shadow-md,
body.dark .shadow-lg {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important;
}

/* Cartões do Blog e Regiões no Dark Mode */
body.dark .blog-card,
body.dark .region-card,
body.dark .service-card,
body.dark .contact-card {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

body.dark .blog-card:hover,
body.dark .region-card:hover {
    border-color: #ea580c !important;
    background-color: #1f2937 !important;
}

/* Header & Footer no Dark Mode */
body.dark #main-header {
    background-color: #111827 !important;
    border-bottom: 1px solid #1f2937;
}

body.dark #main-header nav a:not(.bg-orange-600),
body.dark #main-header button {
    color: #f1f5f9 !important;
}

body.dark #main-header nav a:not(.bg-orange-600):hover {
    color: #ea580c !important;
}

body.dark #mobile-menu {
    background-color: #111827 !important;
    border-top: 1px solid #1f2937;
}

body.dark #mobile-menu a {
    color: #f1f5f9 !important;
}

body.dark #mobile-menu a:hover {
    background-color: #1f2937 !important;
}

/* Inputs de busca no Dark Mode */
body.dark input,
body.dark select {
    background-color: #1f2937 !important;
    color: #f8fafc !important;
    border-color: #374151 !important;
}

body.dark input:focus {
    border-color: #ea580c !important;
}

/* Botões do Filtro de Categoria no Dark Mode */
body.dark .tab-btn {
    background-color: #111827;
    border-color: #374151;
    color: #94a3b8;
}

body.dark .tab-btn:hover {
    background-color: #1f2937;
    color: #f8fafc;
}

body.dark .tab-btn.active {
    background-color: #ea580c !important;
    color: #ffffff !important;
    border-color: #ea580c !important;
}

/* Paginação no Dark Mode */
body.dark .page-btn {
    background-color: #111827;
    border-color: #374151;
    color: #94a3b8;
}

body.dark .page-btn:hover:not(:disabled) {
    background-color: #1f2937;
    color: #f8fafc;
}

body.dark .page-btn.active {
    background-color: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
}

/* Breadcrumb */
.breadcrumb-container {
    background-color: transparent;
}
body.dark .breadcrumb-container a {
    color: #94a3b8;
}
body.dark .breadcrumb-container a:hover {
    color: #ea580c;
}

/* Animações e Efeitos */
.blog-card {
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Botão Voltar ao Topo */
#back-to-top {
    position: fixed;
    bottom: 96px; /* Acima do botão do WhatsApp */
    right: 32px;
    z-index: 49;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Botão do WhatsApp flutuante com pulso sutil */
@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}
.whatsapp-pulse {
    animation: pulse-whatsapp 2s infinite;
}

/* Conteúdo do artigo */
.article-content h1 {
    margin-top: 1rem;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}
body.dark .article-content h2 {
    color: #f8fafc;
}
.article-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}
body.dark .article-content h3 {
    color: #f1f5f9;
}
.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}
.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
body.dark .article-content li {
    color: #cbd5e1;
}

/* Dark Mode Switcher button style */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}
body.dark .theme-toggle-btn {
    background-color: #1f2937;
    color: #f3f4f6;
}
.theme-toggle-btn:hover {
    background-color: #e5e7eb;
}
body.dark .theme-toggle-btn:hover {
    background-color: #374151;
}
