:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-primary-light: #eff6ff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.06);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    margin: 20px;
}

/* Botão Hambúrguer Animado e Moderno */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 101;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.menu-toggle:active {
    transform: scale(0.94);
}

/* 3 Barras Animadas que Morfam em X */
.hamburger-icon {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #0f172a;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.2s ease;
    transform-origin: center;
}

.menu-toggle:hover .hamburger-line {
    background-color: #2563eb;
}

.menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: #2563eb;
}

.menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: #2563eb;
}

nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

nav a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #2563eb;
    background-color: #eff6ff;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

.logo img {
    height: 80px;
}

main {
    max-width: 1100px;
    margin: 0 auto;
}

.tools {
    text-align: center;
    padding: 80px 20px;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.tools h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.tools p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 25px;
    background-color: #2563eb;
    color: white;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e40af;
    transform: translateY(-3px);
}

.content-hero {
    padding: 80px 20px;
    text-align: center;
}

.content-hero h2,
.article h2,
.categories h2 {
    font-size: 32px;
}

.content-hero .cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.content-hero .card {
    background-color: white;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    width: 250px;
    transition: 0.3s ease;
}

.content-hero .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

.card .card-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    border-radius: 6px;
    font-weight: 600;
}

.card .card-link:hover {
    background-color: #1e40af;
}

.tools-button {
    width: 100%;
    margin-top: 25px;
    text-align: center;
}

.tools-button .btn-tools {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tools-button .btn-tools:hover {
    background-color: #1e40af;
    transform: translateY(-3px);
}

.articles {
    padding: 80px 20px;
    text-align: center;
}

.articles h4 {
    font-size: 32px;
}

.article-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.article {
    background-color: white;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.article:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.08);
}

.article a {
    display: inline-block;
    margin-top: auto;
    padding: 10px 15px;
    text-decoration: none;
    background-color: #2563eb;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    align-self: center;
}

.article a:hover {
    background-color: #1e40af;
}

.categories {
    padding: 80px 20px;
    text-align: center;
}

.categories h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-item {
    text-decoration: none;
    color: #2563eb;
    background-color: white;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-item:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

.about-site {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-top: 40px;
}

.about-site h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0f172a;
}

.about-site p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
}

footer {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 40px 20px;
    text-align: center;
    margin-top: 80px;
}

.footer-content h3 {
    font-size: 24px;
    color: #2563eb;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-links a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
}

.footer-links a:hover {
    color: #2563eb;
}

.footer-content p {
    color: #64748b;
    font-size: 14px;
}

/* =========================
   SOBRE E DEMAIS PÁGINAS
========================= */

.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.page-hero {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin-top: 20px;
}

.page-hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.page-hero p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
    color: #334155;
}

.page-section {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.page-section h2 {
    font-size: 28px;
    margin-bottom: 16px;
    color: #0f172a;
}

.page-section p {
    font-size: 17px;
    line-height: 1.7;
    color: #334155;
}

.tools-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.tool-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.tool-card h2 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #0f172a;
}

.tool-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 18px;
}

.tool-card a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.tool-card a:hover {
    color: #1e40af;
}

.categories-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.category-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    text-align: left;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
}

.category-card h2 {
    font-size: 22px;
    margin-bottom: 14px;
    color: #0f172a;
}

.category-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 18px;
}

.category-card a {
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
}

.category-card a:hover {
    color: #1e40af;
}

.articles-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.article-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px;
    width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

.article-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: #64748b;
}

.article-card .badge-new {
    background-color: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card h2 {
    font-size: 20px;
    line-height: 1.35;
    margin: 0 0 12px;
    color: #0f172a;
}

.article-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 20px;
    flex-grow: 1;
}

.article-card a {
    text-decoration: none;
    color: #2563eb;
    background-color: #eff6ff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    align-self: flex-start;
    transition: all 0.25s ease;
}

.article-card a:hover {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* =========================
   PÁGINA DE FERRAMENTA
========================= */

.hero-tool {
    padding: 80px 20px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-content img {
    width: 600px;
    max-width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    max-width: 650px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.6;
    color: #666;
}

.hero-content a {
    display: inline-block;
    padding: 13px 25px;
    background-color: #111827;
    border-radius: 8px;
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
}

.hero-content a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.quick-info {
    max-width: 1000px;
    margin: 60px auto;
    text-align: center;
}

.quick-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    padding: 22px;
    text-align: left;
}

.info-card span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.info-card strong {
    display: block;
    font-size: 15px;
    color: #111827;
}

.tool-about {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 20px;
}

.about-content {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    padding: 40px;
}

.about-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 16px;
}

/* =========================
   ARTIGOS
========================= */

.article-page {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 20px;
}

.article-page h1 {
    font-size: 40px;
    margin-bottom: 18px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 35px;
    font-size: 14px;
    color: #475569;
}

.article-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.article-meta .meta-separator {
    color: #cbd5e1;
}

.article-date-badge {
    font-size: 12px;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.article-intro {
    font-size: 19px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 50px;
}

.article-page h2 {
    font-size: 26px;
    margin-top: 45px;
    margin-bottom: 15px;
}

.article-page p {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 18px;
}

.article-layout {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 40px;
    align-items: start;
}

.article-page {
    max-width: none;
    margin: 0;
}

.article-sidebar {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    border-radius: 12px;
    padding: 22px;
}

.article-sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.article-sidebar a {
    display: block;
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-sidebar a:hover {
    color: #1e40af;
}














/* ==========================================================
   DESKTOP / MODO PC (> 768px): MENU TOTALMENTE EXPOSTO
========================================================== */
@media (min-width: 769px) {
    .menu-toggle,
    .mobile-drawer,
    .mobile-drawer-overlay {
        display: none !important;
    }

    header nav {
        display: flex !important;
        flex-direction: row !important;
        width: auto !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        border-top: none !important;
        gap: 6px !important;
    }

    header nav a {
        display: inline-block !important;
        text-align: left !important;
    }
}

/* ==========================================================
   MENU MOBILE MODERNO: SLIDE-OVER DRAWER COM BACKDROP BLUR
========================================================== */

/* Bloqueio de scroll do body quando menu está aberto */
body.drawer-open {
    overflow: hidden !important;
    touch-action: none;
}

/* Overlay Escuro com Backdrop Blur */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
    -webkit-tap-highlight-color: transparent;
}

.mobile-drawer-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Drawer Container Lateral */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 380px);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 9999;
    box-shadow: -15px 0 45px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid #e2e8f0;
    will-change: transform;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

/* Cabeçalho do Drawer */
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.drawer-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.drawer-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.drawer-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.drawer-close-btn:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.drawer-close-btn:active {
    transform: scale(0.92);
}

/* Busca Rápida no Drawer */
.drawer-search-box {
    padding: 12px 18px 6px;
    background: #ffffff;
}

.drawer-search-form {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 9px 12px;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.drawer-search-form:focus-within {
    border-color: #3b82f6;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.drawer-search-icon {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1;
}

.drawer-search-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    outline: none;
}

.drawer-search-input::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

/* Área com Rolagem Fluida */
.drawer-scrollable {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 20px;
}

.drawer-scrollable::-webkit-scrollbar {
    width: 4px;
}

.drawer-scrollable::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

/* Seções de Navegação */
.drawer-nav-section {
    margin-bottom: 20px;
}

.drawer-section-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 8px 6px 10px;
}

/* Item de Navegação (Estilo Card Moderno) */
.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    margin-bottom: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.drawer-nav-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(2px);
}

.drawer-nav-item:active {
    background: #eff6ff;
    transform: scale(0.99);
}

/* Item Ativo (Página Atual) */
.drawer-nav-item.active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.drawer-nav-item.active .drawer-nav-title {
    color: #2563eb;
    font-weight: 700;
}

.drawer-nav-item.active .drawer-nav-arrow {
    color: #2563eb;
}

/* Ícones com Badge Colorido Suave */
.drawer-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.drawer-nav-item:hover .drawer-nav-icon {
    transform: scale(1.06);
}

.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-indigo { background: #eef2ff; color: #4f46e5; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-slate { background: #f1f5f9; color: #475569; }
.icon-cyan { background: #ecfeff; color: #0891b2; }

/* Textos do Item */
.drawer-nav-text {
    flex: 1;
    min-width: 0;
}

.drawer-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-nav-title {
    font-size: 14.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.drawer-nav-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drawer-nav-arrow {
    font-size: 18px;
    color: #cbd5e1;
    font-weight: 300;
    transition: transform 0.2s, color 0.2s;
}

.drawer-nav-item:hover .drawer-nav-arrow {
    transform: translateX(3px);
    color: #2563eb;
}

/* Badges Sutis */
.drawer-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 6px;
    line-height: 1.2;
}

.badge-new {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-pop {
    background: #d1fae5;
    color: #065f46;
}

.badge-info {
    background: #ede9fe;
    color: #5b21b6;
}

/* Pílulas de Categorias Rápidas */
.drawer-categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 2px;
}

.drawer-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

.drawer-cat-pill:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
    transform: translateY(-1px);
}

/* Rodapé do Drawer */
.drawer-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.drawer-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.drawer-cta-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.drawer-footer-credits {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #94a3b8;
}

/* Micro-animação de Entrada dos Itens */
@keyframes drawerItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================
   CELULAR E TABLET (<= 768px): CABEÇALHO COMPACTO E MODERNO
========================================================== */
@media (max-width: 768px) {

    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 12px;
        padding: 12px 18px;
        flex-wrap: nowrap;
        border-radius: 16px;
    }

    .menu-toggle {
        display: inline-flex !important;
    }

    .logo img {
        height: 48px;
        max-height: 48px;
        width: auto;
    }

    /* No mobile, a navegação principal é substituída pelo drawer lateral */
    header nav {
        display: none !important;
    }

    main {
        width: 100%;
    }

    .tools {
        margin: 12px;
        padding: 50px 20px;
    }

    .tools h1 {
        font-size: 34px;
    }

    .tools p {
        font-size: 16px;
    }

    .content-hero {
        padding: 50px 20px;
    }

    .content-hero h2,
    .article h2,
    .categories h2 {
        font-size: 28px;
    }

    .articles {
        padding: 50px 20px;
    }

    .categories {
        padding: 50px 20px;
    }

    .about-site {
        margin: 30px 12px;
        padding: 35px 20px;
    }

    .page-content {
        padding: 20px 12px 50px;
    }

    .page-hero {
        padding: 45px 20px;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .page-section {
        padding: 30px 20px;
    }

    .tools-grid,
    .categories-grid,
    .articles-grid {
        gap: 15px;
    }

    .tool-card,
    .category-card,
    .article-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-tool {
        padding: 50px 20px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .quick-info {
        margin: 40px 20px;
    }

    .tool-about {
        margin: 50px auto;
        padding: 0 15px;
    }

    .about-content {
        padding: 30px 20px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px auto;
        padding: 0 15px;
    }

    .article-page h1 {
        font-size: 34px;
    }

    footer {
        margin-top: 50px;
    }
}

@media (max-width: 480px) {

    nav {
        gap: 2px;
    }

    nav a {
        font-size: 13px;
        padding: 7px 8px;
    }

    .logo img {
        height: 52px;
    }

    .hero-content h1 {
        font-size: 32px;
    }


    .tools h1 {
        font-size: 30px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .hero-content a {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-links {
        gap: 12px;
    }
}

/* =========================
   BUSCA E FILTROS DE FERRAMENTAS
========================= */

.tools-search-section {
    max-width: 900px;
    margin: 0 auto 35px;
    padding: 0 15px;
}

.search-bar-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 16px 20px 16px 48px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background-color: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
    pointer-events: none;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.filter-chip {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.filter-chip.active {
    background-color: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.tools-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    padding: 0 5px;
}

.tools-count {
    font-weight: 600;
    color: #0f172a;
}

.no-results {
    display: none;
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    margin: 20px auto;
    max-width: 600px;
}

.no-results h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #0f172a;
}

.no-results p {
    color: #64748b;
    margin: 0 0 16px;
}

.tool-tag {
    display: inline-block;
    background-color: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 0;
}

/* ==========================================================
   BADGES DE PREÇO E BOTÃO DE FAVORITOS
========================================================== */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    width: 100%;
}

.tags-wrapper {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.price-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.price-badge.free {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.price-badge.freemium {
    background-color: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.price-badge.paid {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #cbd5e1;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2px 4px;
    line-height: 1;
}

.fav-btn:hover {
    transform: scale(1.25);
    color: #f59e0b;
}

.fav-btn.active {
    color: #f59e0b;
    filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.45));
}

/* ==========================================================
   DUELO DE IAS / COMPARADOR
========================================================== */
.battle-selector-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 900px;
}

.battle-tab {
    padding: 10px 18px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.battle-tab:hover, .battle-tab.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.comparison-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    margin: 20px auto 60px;
    max-width: 1000px;
    text-align: left;
}

.vs-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.vs-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    margin: 0 auto;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.contender-card {
    padding: 22px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.contender-card h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: #0f172a;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 11px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14.5px;
    color: #334155;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.spec-list li strong {
    color: #0f172a;
    min-width: 105px;
}

.verdict-box {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    padding: 25px;
    text-align: left;
    margin-top: 25px;
}

.verdict-box h4 {
    color: #1e40af;
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================
   PROMPTS HUB
========================================================== */
.prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px auto;
}

.prompt-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s ease;
}

.prompt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    border-color: #bfdbfe;
}

.prompt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.prompt-ai-tag {
    font-size: 11px;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    padding: 3px 8px;
    border-radius: 6px;
}

.prompt-card h3 {
    font-size: 19px;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.prompt-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 14px;
}

.prompt-box {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    font-size: 13.5px;
    line-height: 1.6;
    margin: 10px 0 18px;
    white-space: pre-wrap;
    max-height: 190px;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.prompt-box mark {
    background-color: #2563eb;
    color: white;
    padding: 1px 4px;
    border-radius: 4px;
}

.copy-prompt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.copy-prompt-btn:hover {
    background-color: #1e40af;
}

.copy-prompt-btn.copied {
    background-color: #16a34a;
}

@media (max-width: 768px) {
    .vs-header {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* =========================
   FORMULÁRIO DE CONTATO
========================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    margin-top: 30px;
}

.contact-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 35px 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background-color: #f8fafc;
    color: #0f172a;
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    align-self: flex-start;
}

.btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.form-feedback {
    display: none;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 10px;
    text-align: left;
}

.form-feedback.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

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

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-sidebar-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.info-sidebar-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #0f172a;
}

.info-sidebar-card p {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


