/*
Theme Name: Contabilidade Financeira Pro
Theme URI: https://contabilidadefinanceira.com.br
Author: Fábio
Description: Tema ultra-leve focado em SEO e educação contábil.
Version: 1.2
Text Domain: contabilidade-financeira
*/

/* ==========================================================================
   1. Variáveis e Reset
   ========================================================================== */
:root {
    --color-primary: #1e3c72;
    --color-secondary: #2a5298;
    --color-accent: #e3f2fd;
    --color-text: #333333;
    --color-text-light: #555555;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

.site-main, .site-content {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--color-secondary); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   2. Header & Navegação
   ========================================================================== */
.site-header {
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--color-white);
    position: relative;
    z-index: 1000;
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.site-title a {
    color: var(--color-white);
}

.primary-menu-list {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.primary-menu-list a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-menu-list a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.menu-toggle[aria-expanded="true"] {
    background: var(--color-accent);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* Menu Hambúrguer — ícone via CSS */
.menu-toggle .hamburger {
    font-size: 0;
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
}

.menu-toggle .hamburger::before {
    content: "☰";
    font-size: 1.5rem;
    line-height: 1;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    content: "✕";
    transform: rotate(90deg);
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .primary-menu-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-primary);
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        flex-direction: column;
        text-align: center;
        z-index: 999;
    }

    .primary-menu-list.toggled {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .primary-menu-list a {
        display: block;
        padding: 12px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .primary-menu-list li:last-child a {
        border-bottom: none;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3. Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    margin: 20px auto;
    font-size: 0.85rem;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--color-primary);
    font-weight: 500;
}

.breadcrumbs .sep { color: #ccc; }

.breadcrumbs .current {
    color: #000000;
    font-weight: 700;
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 80px 20px 60px;
    text-align: center;
}

.hero-title       { font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; }
.hero-description { font-size: 1.2rem; opacity: 0.9; margin-bottom: 30px; }

.search-box-container {
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   5. Estrutura de Grid (Duas Colunas)
   ========================================================================== */
.single-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

@media (min-width: 900px) {
    .single-layout-grid {
        grid-template-columns: 70% 28%;
        justify-content: space-between;
        align-items: start;
    }
    #secondary { position: sticky; top: 30px; }
}

/* Evita blowout no CSS Grid */
.single-layout-grid > * {
    min-width: 0;
}

.site-main {
    min-width: 0;
    max-width: 100vw;
}

/* ==========================================================================
   6. Widgets & Sidebar
   ========================================================================== */
.widget-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget {
    background: var(--color-white);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 1px solid #f0f4f8;
    box-shadow: 0 10px 30px -5px rgba(30, 60, 114, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 15px 40px -10px rgba(30, 60, 114, 0.08);
    transform: translateY(-2px);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-accent);
    display: inline-block;
    position: relative;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    transition: padding-left 0.2s ease;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text);
    font-weight: 500;
    display: block;
}

.widget ul li a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.widget .search-form {
    margin-top: 10px;
}

.widget .search-field {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    height: 48px;
}

.widget .search-submit {
    height: 38px;
    font-size: 0.8rem;
    padding: 0 15px;
}

/* ==========================================================================
   7. Páginas de Arquivo (archive.php)
   ========================================================================== */
.archive-header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 30px;
    background: var(--color-white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.archive-header .page-title {
    color: var(--color-primary);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.archive-description {
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Grid unificado — archive e home usam o mesmo tamanho */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* ==========================================================================
   8. Paginação
   ========================================================================== */
.pagination-wrapper {
    margin-top: 50px;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    padding: 10px 18px;
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    font-weight: 600;
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--color-accent);
}

/* ==========================================================================
   9. Rodapé (footer.php)
   ========================================================================== */
.site-footer {
    background: #1a1a1a;
    color: var(--color-white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget-title {
    color: var(--color-white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-column p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 15px;
}

.footer-link {
    color: var(--color-white);
    text-decoration: underline;
    font-size: 0.9rem;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 10px;
}

.footer-menu-list li a {
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-menu-list li a:hover {
    opacity: 1;
}

.site-info {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 25px;
    text-align: center;
    opacity: 0.6;
    font-size: 0.85rem;
}

.site-info a {
    color: var(--color-white);
}

/* ==========================================================================
   10. Formulários Globais & Inputs
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    background-color: var(--color-white);
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-accent);
    transform: translateY(-1px);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

/* ==========================================================================
   11. Home Page & Cards de Categoria
   ========================================================================== */
.categories-section {
    margin-bottom: 60px;
    padding: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header .section-title {
    color: var(--color-primary);
    font-size: 2.2rem;
    font-weight: 800;
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--color-white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.1);
    border-color: var(--color-primary);
}

.category-card .category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    color: var(--color-primary);
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-title-border {
    margin-bottom: 35px;
    color: var(--color-primary);
    border-left: 6px solid var(--color-primary);
    padding-left: 20px;
    font-size: 1.8rem;
    font-weight: 700;
}

/* ==========================================================================
   12. Páginas Estáticas (page.php)
   ========================================================================== */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    color: var(--color-primary);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.entry-content {
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.8;
}

.entry-content p { margin-bottom: 25px; }

.entry-content ul,
.entry-content ol {
    margin-bottom: 25px;
    padding-left: 20px;
}

.entry-content li { margin-bottom: 10px; }

/* Links distinguíveis (WCAG 2.1) */
.entry-content p a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.entry-content p a:hover {
    text-decoration-thickness: 2px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--color-primary);
    margin: 45px 0 20px;
    font-weight: 700;
}

.page-featured-image-container {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.page-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

@media (max-width: 768px) {
    .entry-title { font-size: 2rem; }
}

/* ==========================================================================
   13. Navegação de Posts (single.php)
   ========================================================================== */
.post-navigation {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    clear: both;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-previous, .nav-next {
    font-size: 1.1rem;
    font-weight: 700;
}

.nav-next { text-align: right; }

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 400;
}

.post-navigation a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-navigation a:hover { color: var(--color-secondary); }

@media (max-width: 600px) {
    .post-navigation .nav-links { grid-template-columns: 1fr; }
    .nav-next { text-align: left; margin-top: 20px; }
}

/* ==========================================================================
   14. Design de Cards de Artigo (content-archive.php)
   ========================================================================== */
.article-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.1);
}

.article-image-wrapper {
    height: 200px;
    background: #f0f4f8;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .card-image { transform: scale(1.05); }

.card-image-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.article-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.meta-category-badge {
    background: var(--color-accent);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 20px;
}

.meta-date { color: var(--color-text-light); }

.article-body .entry-title {
    font-size: 1.35rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-body .entry-title a {
    color: var(--color-primary);
    font-weight: 700;
}

.article-body .entry-summary {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article-footer { margin-top: auto; }

.read-more-link {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link:hover { color: var(--color-secondary); }

/* ==========================================================================
   15. Post Individual (content-single.php)
   ========================================================================== */
.single-post-article .entry-header { margin-bottom: 40px; }

.single-post-article .entry-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    line-height: 1.1;
    margin: 15px 0 25px;
    font-weight: 800;
}

.entry-meta-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.meta-separator { color: #ccc; }

.entry-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Author Box */
.author-biography {
    background: #fdfdfd;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid #eee;
    margin-top: 60px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar { flex-shrink: 0; }

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--color-accent);
    width: 140px;
    height: 140px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.author-title {
    color: var(--color-primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.author-description p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Tags */
.entry-footer-tags .tags-container a {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--color-text);
    margin-right: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.entry-footer-tags .tags-container a:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .single-post-article .entry-title { font-size: 2rem; }
    .author-biography { flex-direction: column; text-align: center; }
    .author-avatar img { width: 110px; height: 110px; }
}

/* ==========================================================================
   16. Formulário de Contato (Contact Form 7)
   ========================================================================== */
.premium-contact-form {
    background: var(--color-white);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(30, 60, 114, 0.1);
    border: 1px solid #f0f4f8;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }

.wpcf7-submit,
.submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.2);
}

.wpcf7-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(30, 60, 114, 0.3);
}

/* ==========================================================================
   17. Formulário de Pesquisa (Widgets e Hero)
   ========================================================================== */
.wp-block-search__inside-wrapper,
.search-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
    width: 100%;
}

.wp-block-search__inside-wrapper:focus-within,
.search-form:focus-within {
    background: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #cbd5e1;
}

.wp-block-search__input,
.search-field {
    flex-grow: 1;
    border: none !important;
    background: transparent !important;
    padding: 10px 15px !important;
    font-size: 15px;
    outline: none;
    color: var(--color-text);
    box-shadow: none !important;
}

.wp-block-search__input::-webkit-search-cancel-button,
.search-field::-webkit-search-cancel-button {
    display: none;
}

.wp-block-search__button,
.search-submit {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0 20px;
    font-weight: 600;
}

.wp-block-search__button:hover,
.search-submit:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

/* Busca na Hero */
.hero .wp-block-search__inside-wrapper,
.hero .search-form {
    background: var(--color-white);
    padding: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.hero .wp-block-search__input,
.hero .search-field {
    height: 50px;
    font-size: 1.1rem;
}

.hero .wp-block-search__button,
.hero .search-submit {
    height: 50px;
    padding: 0 35px;
}

.search-icon {
    margin-right: 6px;
    flex-shrink: 0;
}

/* ==========================================================================
   18. Tabelas Premium (Responsivas)
   ========================================================================== */

/* Aviso visual de scroll — visível apenas em mobile */
.scroll-hint {
    display: none;
    font-size: 0.85rem;
    color: #000000;
    background-color: #e2e8f0;
    padding: 6px 12px;
    font-weight: 700;
    text-align: right;
    font-style: italic;
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .scroll-hint { display: block; }
}

@keyframes pulse {
    0%   { transform: translateX(0); }
    50%  { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

/* Container responsivo */
.premium-table-container {
    margin: 10px 0 40px;
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    background-color: var(--color-white);
    box-sizing: border-box;
}

/* Estrutura base da tabela */
.premium-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
    table-layout: auto;
    word-break: normal;
    margin: 0;

    /* Variáveis de cor do cabeçalho (padrão: tema azul) */
    --bg-header-start: var(--color-primary);
    --bg-header-end: var(--color-secondary);
    --text-header: var(--color-white);
}

.premium-table thead {
    background: linear-gradient(90deg, var(--bg-header-start) 0%, var(--bg-header-end) 100%);
    color: var(--text-header);
}

.premium-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: none;
}

.premium-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
    vertical-align: middle;
}

.premium-table tbody tr:last-child td { border-bottom: none; }

.premium-table tbody tr:hover {
    background-color: var(--color-accent);
    transition: background-color 0.3s ease;
}

@media (max-width: 480px) {
    .premium-table th,
    .premium-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
}

/* Temas de cor */
.premium-table.tema-verde  { --bg-header-start: #059669; --bg-header-end: #10b981; }
.premium-table.tema-escuro { --bg-header-start: #0f172a; --bg-header-end: #334155; }
.premium-table.tema-laranja { --bg-header-start: #c2410c; --bg-header-end: #f97316; }
.premium-table.tema-roxo   { --bg-header-start: #6d28d9; --bg-header-end: #8b5cf6; }

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.badge-provavel { background-color: #ffe5e5; color: #991b11; }
.badge-possivel { background-color: #fff4e5; color: #7a3e00; }
.badge-remota   { background-color: #f1f3f4; color: #5f6368; }

.text-bold {
    font-weight: 700;
    color: var(--color-primary);
}

/* ==========================================================================
   19. Página 404
   ========================================================================== */

.error-404.not-found {
    padding: 80px 0;
    text-align: center;
}

.error-header {
    margin-bottom: 50px;
}

.error-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.error-404 .page-title {
    color: var(--color-primary);
    font-weight: 800;
    font-size: 2.8rem;
}

.error-description {
    color: var(--color-text-light);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
}

.search-box-404 {
    max-width: 600px;
    margin: 0 auto 60px;
    background: var(--color-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-box-label {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

.error-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.error-suggestions-grid .widget ul {
    list-style: none;
    padding: 0;
}

.error-cta {
    margin-top: 60px;
}

.cta-button {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(30, 60, 114, 0.2);
}
