﻿/* ====================================================================
   WK-Rank — Folha de estilo única (usada por index.php, resultado.php
   e monitor.php). Todas as cores vêm das variáveis abaixo
   — para mudar a paleta, muda-se aqui, não em cada arquivo.
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --wkr-bg: #07080B;
    --wkr-bg-alt: #090B10;
    --wkr-card: #0F1117;
    --wkr-card-inner: #090A0E;
    --wkr-section: #0B0D12;
    --wkr-border: #1F2430;
    --wkr-border-subtle: #1A1D27;
    --wkr-border-strong: #242938;

    --wkr-orange: #FF5722;
    --wkr-orange-light: #FF7A00;
    --wkr-orange-dark: #E64A19;
    --wkr-emerald: #10B981;
    --wkr-amber: #F59E0B;
    --wkr-rose: #DC2626; /* Vermelho urgência real, não rosa */

    --wkr-text: #E2E8F0;
    --wkr-text-muted: #94A3B8;
    /* WKR-317: #64748B (slate-500 padrao) fica abaixo de 4.5:1 (AA) contra os fundos
       quase-pretos do tema; ajuste de luminosidade (testado contra o fundo mais claro
       usado, #141822) para folga real acima de 4.5:1, mesmo tom "apagado". */
    --wkr-text-dim: #7D8BA3;

    /* WKR-317A: escala de espaçamento — usar sempre um destes valores,
       nunca px arbitrário, para manter ritmo vertical/horizontal consistente. */
    --wkr-space-1: 8px;
    --wkr-space-2: 12px;
    --wkr-space-3: 16px;
    --wkr-space-4: 24px;
    --wkr-space-5: 32px;
    --wkr-space-6: 48px;

    /* WKR-317A: escala tipográfica do resultado (tamanho/peso/altura de linha). */
    --wkr-font-h1: 700 1.875rem/1.2 'Inter', sans-serif;
    --wkr-font-h2: 700 1.5rem/1.25 'Inter', sans-serif;
    --wkr-font-h3: 600 1.125rem/1.3 'Inter', sans-serif;
    --wkr-font-body: 400 0.875rem/1.5 'Inter', sans-serif;
    --wkr-font-caption: 500 0.6875rem/1.4 'Inter', sans-serif;
    --wkr-font-metric: 800 1.5rem/1 'Inter', sans-serif;

    /* WKR-317A: cores de estado — reaproveitam a paleta acima, não criam nova paleta.
       "neutro" é para informação sem carga de bom/mau (ex.: banner de cache). */
    --wkr-state-positivo: var(--wkr-emerald);
    --wkr-state-atencao: var(--wkr-amber);
    --wkr-state-critico: var(--wkr-rose);
    --wkr-state-neutro: var(--wkr-text-muted);
    --wkr-state-indisponivel: var(--wkr-text-dim);
}

* {
    box-sizing: border-box;
}

/* Impede o autofill do navegador de pintar o campo de branco —
   mantém fundo escuro e texto laranja para indicar preenchimento. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--wkr-orange-light);
    -webkit-box-shadow: 0 0 0px 1000px #08090C inset;
    box-shadow: 0 0 0px 1000px #08090C inset;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: var(--wkr-text);
}

.wkr-input:not(:placeholder-shown) {
    color: var(--wkr-orange-light);
}

body {
    background-color: var(--wkr-bg);
    color: var(--wkr-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    letter-spacing: -0.3px;
}

h1, h2 {
    color: #FFFFFF;
    font-weight: 900;
    letter-spacing: -1px;
}

h3 {
    color: var(--wkr-text);
    font-weight: 700;
}

a {
    color: inherit;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--wkr-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--wkr-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--wkr-orange); }

/* ==================== Animações ==================== */
@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 87, 34, 0.3), 0 0 40px rgba(255, 87, 34, 0.1); }
    50% { box-shadow: 0 0 30px rgba(255, 87, 34, 0.5), 0 0 60px rgba(255, 87, 34, 0.2); }
}

.logo-badge {
    animation: glow-pulse 3s ease-in-out infinite;
}

.hero-glow {
    background: radial-gradient(circle at 50% -20%, rgba(255, 87, 34, 0.15), transparent 70%);
}

/* Conector animado — "dados fluindo" entre etapas (Como Funciona) */
.connector-dot {
    position: absolute;
    top: -3px;
    left: 0%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wkr-orange-light);
    box-shadow: 0 0 8px 2px rgba(255, 122, 0, 0.7);
    animation: flow-dot 3s linear infinite;
}

@keyframes flow-dot {
    0% { left: 0%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* ==================== Cartões reutilizáveis ====================
   Usar em vez de repetir "bg-[#0F1117] border border-[#1F2430]" etc. */
.wkr-card {
    background-color: var(--wkr-card);
    border: 1px solid var(--wkr-border);
    border-radius: 1rem;
}

.card-hover-border {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-hover-border:hover {
    border-color: rgba(255, 122, 0, 0.4);
    box-shadow: 0 0 20px -5px rgba(255, 87, 34, 0.15);
}

/* Cartão interno (dentro de um .wkr-card) — mais escuro, borda mais sutil.
   Usar também para a caixa de indicador "bg-[#090A0E] p-3.5 rounded-xl
   border border-[#1A1D27]" (mesma cor/borda, só padding via utilitário
   Tailwind quando necessário) — nunca repetir a cor hardcoded. */
.wkr-card-inner {
    background-color: var(--wkr-card-inner);
    border: 1px solid var(--wkr-border-subtle);
    border-radius: 0.75rem;
}

/* Título de seção dentro do relatório (Dimensão Técnica, Perguntas
   Comerciais, Plano de Otimização, Rastreadores). */
.wkr-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
}

@media (min-width: 640px) {
    .wkr-section-title { font-size: 1.5rem; }
}

/* ==================== Accordion de seções do relatório (WKR-219C) ====================
   Envolve cada seção modularizada (includes/resultado-secoes/) sem alterar seu HTML
   interno. Os <section> originais mantêm seus próprios max-w/px — o seletor abaixo
   neutraliza apenas a duplicação visual de margem/padding dentro do painel aberto. */
.wkr-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.wkr-accordion-header:focus-visible {
    outline: 2px solid #FF5722;
    outline-offset: -2px;
}

.wkr-accordion-header-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
}

.wkr-accordion-chevron {
    flex-shrink: 0;
    color: var(--wkr-text-muted, #64748B);
}

.wkr-accordion-panel {
    border-top: 1px solid var(--wkr-border-subtle);
}

.wkr-accordion-panel > section {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* Controle "Abrir todas" / "Fechar todas" (WKR-219D) */
.wkr-accordion-control {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wkr-text-muted, #94A3B8);
    background-color: var(--wkr-card-inner);
    border: 1px solid var(--wkr-border-subtle);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.wkr-accordion-control:hover:not(:disabled) {
    border-color: #FF5722;
    color: #FFFFFF;
}

.wkr-accordion-control:focus-visible {
    outline: 2px solid #FF5722;
    outline-offset: 1px;
}

.wkr-accordion-control:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Título de seção da landing (Problema, Como Funciona, Benefícios, FAQ). */
.wkr-landing-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .wkr-landing-title { font-size: 2.25rem; }
}

/* Círculo numerado (1-8) usado nos cards do Metrics Dashboard. */
.wkr-badge-number {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    background-color: var(--wkr-orange);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Cabeçalho (número + título) dentro de cada card do Metrics Dashboard. */
.wkr-metric-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
}

/* Título (h3) de cada card do Metrics Dashboard. */
.wkr-metric-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.025em;
}

/* Card externo do Metrics Dashboard — combina com .wkr-card e
   .card-hover-border (ambos já existentes), só adiciona o padding/flex
   que faltava para não repetir a combinação inteira em cada card. */
.wkr-metric-card {
    padding: 1.25rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Linha de item com divisor (Resumo dos Elementos Chave, Boas Práticas
   Técnicas, Acessibilidade e Controle, Conteúdo no HTML Bruto). Unifica
   duas variantes quase-idênticas ("pb-2" e "py-1.5") que só diferiam por
   1-2px de espaçamento vertical. */
.wkr-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    padding-top: 0.375rem;
    border-bottom: 1px solid var(--wkr-border-subtle);
}

/* Item de FAQ (<details>) na landing. */
.wkr-faq-item {
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
}

.wkr-faq-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: #94A3B8;
    transition: transform 0.2s ease;
}

details[open] .wkr-faq-chevron {
    transform: rotate(180deg);
}

/* Texto descritivo secundário — substitui as variações soltas de
   "text-[11px]/text-xs/text-sm text-slate-400 mt-*" quando o papel do
   texto é puramente descritivo/secundário. */
.wkr-text-muted {
    font-size: 0.75rem;
    color: var(--wkr-text-muted);
    margin-top: 0.25rem;
}

/* Moldura de seção da landing (Problema, Como Funciona, Benefícios, FAQ, Stats) */
.wkr-section-box {
    background-color: var(--wkr-section);
    border: 1px solid var(--wkr-border-subtle);
    border-radius: 1.5rem;
    padding: 2rem;
}

@media (min-width: 640px) {
    .wkr-section-box { padding: 3rem; }
}

/* ==================== Tooltips ==================== */
.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin-left: 5px;
    position: relative;
    flex-shrink: 0;
    text-transform: none;
}

.tooltip-icon i {
    font-size: 15px;
    color: rgba(226, 232, 240, 0.55);
    transition: color 0.15s ease;
}

.tooltip-icon:hover i {
    color: var(--wkr-orange-light);
}

.tooltip-icon:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(calc(-50% + var(--tt-shift, 0px)));
    background-color: var(--wkr-border);
    color: var(--wkr-text);
    padding: 8px 12px;
    border-radius: 6px;
    white-space: normal;
    width: max-content;
    max-width: min(320px, 85vw);
    text-align: left;
    text-transform: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid var(--wkr-orange);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.2);
    z-index: 1000;
    pointer-events: none;
}

/* ==================== Modal (WK-Rank) ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--wkr-card);
    border: 1px solid var(--wkr-border);
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close, .modal-close-table {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: var(--wkr-orange);
    font-weight: bold;
}

/* ====================================================================
   MONITOR DE CONCORRENTES — migrado para a paleta acima (era um CSS
   à parte com cores próprias: #1a1a1a/#FF6B2C/#00D4FF etc). Mesmas
   classes de nome, cores agora vêm de var(--wkr-*).
   ==================================================================== */

.wkr-monitor-page {
    padding: 2rem;
    line-height: 1.6;
}

.wkr-monitor-container {
    max-width: 1400px;
    margin: 0 auto;
}

.wkr-monitor-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--wkr-orange-light);
    font-size: 2rem;
}

.warning {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid var(--wkr-rose);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    color: #ff3333;
    font-size: 0.9rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 3rem;
    background: var(--wkr-card);
    border-radius: 8px;
    border: 1px solid var(--wkr-border);
}

.wkr-monitor-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wkr-monitor-container th {
    background: var(--wkr-orange-light);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    position: sticky;
    top: 0;
}

.wkr-monitor-container td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--wkr-border);
    color: var(--wkr-text-muted);
}

.wkr-monitor-container tr:hover {
    background: var(--wkr-card-inner);
}

.check { color: var(--wkr-emerald); font-weight: 700; font-size: 1.2rem; }
.cross { color: var(--wkr-rose); font-weight: 700; font-size: 1.2rem; }
.partial { color: var(--wkr-amber); font-weight: 700; font-size: 1.2rem; }

.category-header {
    background: var(--wkr-border);
    font-weight: 700;
    color: var(--wkr-orange-light);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.notes {
    font-size: 0.8rem;
    color: var(--wkr-text-dim);
    font-style: italic;
    margin-top: 0.5rem;
}

.summary {
    background: var(--wkr-card);
    border: 1px solid var(--wkr-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 3rem;
}

.summary h2 {
    color: var(--wkr-orange-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.summary-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--wkr-border);
}

.summary-item:last-child { border-bottom: none; }
.summary-label { font-weight: 700; color: var(--wkr-orange-light); }
.summary-value { color: var(--wkr-text-muted); }

.highlight {
    background: rgba(255, 122, 0, 0.12);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--wkr-orange-light);
    font-weight: 600;
}

.advantage {
    background: rgba(16, 185, 129, 0.12);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--wkr-emerald);
    font-weight: 600;
}

.gap {
    background: rgba(220, 38, 38, 0.12);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    color: var(--wkr-rose);
    font-weight: 600;
}

.wkr-monitor-footer {
    text-align: center;
    color: var(--wkr-text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--wkr-border);
    padding-top: 2rem;
    margin-top: 3rem;
}

.section-title {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--wkr-orange-light);
    font-weight: 700;
}

.prompt-btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    margin: 0.3rem 0.3rem 0.3rem 0;
    background: linear-gradient(135deg, var(--wkr-orange), var(--wkr-orange-light));
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.prompt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

.prompt-btn.danger {
    background: linear-gradient(135deg, var(--wkr-rose), #991b1b);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}
.prompt-btn.danger:hover { box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5); }

.prompt-btn.success {
    background: linear-gradient(135deg, var(--wkr-emerald), #00A852);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.prompt-btn.success:hover { box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5); }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.wkr-monitor-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--wkr-card);
    border: 2px solid var(--wkr-orange-light);
    border-radius: 10px;
    padding: 2rem;
    z-index: 1001;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translate(-50%, -55%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.wkr-monitor-modal h3 {
    color: var(--wkr-orange-light);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.wkr-monitor-modal .modal-content {
    background: var(--wkr-card-inner);
    border: none;
    border-left: 4px solid var(--wkr-orange-light);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    max-height: 300px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: pre-wrap;
    width: auto;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.btn-copy {
    background: linear-gradient(135deg, var(--wkr-emerald), #00A852);
    padding: 0.7rem 1.5rem;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-copy:hover { transform: scale(1.05); }

.btn-close {
    background: var(--wkr-border);
    padding: 0.7rem 1.5rem;
    color: #ccc;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-close:hover { background: #444; }

.priority-chart {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.chart-box {
    background: var(--wkr-card);
    border: 2px solid var(--wkr-border);
    border-radius: 8px;
    padding: 1.5rem;
}

.chart-box h4 {
    color: var(--wkr-orange-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.chart-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.chart-label {
    flex: 0 0 180px;
    font-size: 0.9rem;
    font-weight: 600;
}

.chart-bar {
    flex: 1;
    height: 24px;
    background: var(--wkr-border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wkr-orange), var(--wkr-orange-light));
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    transition: width 0.5s ease;
}

.chart-fill.danger { background: linear-gradient(90deg, var(--wkr-rose), #991b1b); }
.chart-fill.success { background: linear-gradient(90deg, var(--wkr-emerald), #00A852); }
.chart-fill.warning { background: linear-gradient(90deg, var(--wkr-amber), #ff9500); }

.comparison-table-section { margin: 2rem 0; }

.status-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-left: 0.5rem;
}

.badge-high { background: rgba(220, 38, 38, 0.2); color: var(--wkr-rose); }
.badge-medium { background: rgba(245, 158, 11, 0.2); color: var(--wkr-amber); }
.badge-low { background: rgba(16, 185, 129, 0.2); color: var(--wkr-emerald); }

/* ==================== Utilitários (substituem style="" inline) ==================== */
.text-center { text-align: center; }

.w-5 { width: 5%; } .w-10 { width: 10%; } .w-12 { width: 12%; }
.w-15 { width: 15%; } .w-16 { width: 16%; } .w-17 { width: 17%; }
.w-18 { width: 18%; } .w-20 { width: 20%; } .w-22 { width: 22%; }
.w-25 { width: 25%; } .w-30 { width: 30%; } .w-31 { width: 31%; }
.w-35 { width: 35%; } .w-60 { width: 60%; } .w-65 { width: 65%; }
.w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; }
.w-85 { width: 85%; } .w-90 { width: 90%; } .w-95 { width: 95%; }

.bg-cyan-soft { background: rgba(255, 122, 0, 0.08); }
.bg-red-soft { background: rgba(220, 38, 38, 0.1); }
.bg-yellow-soft { background: rgba(245, 158, 11, 0.08); }
.bg-green-soft { background: rgba(16, 185, 129, 0.08); }

/* Célula de destaque com cor sólida da marca (era style="background: #FF6B2C; ...") */
.bg-orange-solid { background: var(--wkr-orange-light); color: white; font-weight: 700; }

.mt-8 { margin-top: 2rem; }

/* ==================== Acessibilidade: prefers-reduced-motion ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .logo-badge { animation: none; }
    .connector-dot { animation: none; opacity: 1; }
}

/* ==================== Focus rings (teclado) ==================== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--wkr-orange);
    outline-offset: 2px;
}

/* ==================== Botão copiar ==================== */
.copy-command.copied {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10B981 !important;
}

/* ==================== Abas ==================== */
.wkr-tab-content {
    display: none;
}

.wkr-tab-content.active {
    display: block;
    animation: slideIn 0.2s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* ==================== Header & Navigation ==================== */
.wkr-header {
    background: rgba(7, 8, 11, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255, 87, 34, 0.12);
    box-shadow: 0 8px 30px -22px rgba(0, 0, 0, 0.7);
    padding: 1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wkr-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wkr-header-right {
    display: flex;
    align-items: center;
}

.wkr-menu-wrap {
    position: relative;
}

.wkr-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: transparent;
    border: 1px solid var(--wkr-border-subtle);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.wkr-menu-btn:hover {
    border-color: var(--wkr-orange);
    background: rgba(255, 87, 34, 0.08);
}

.wkr-menu-btn span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--wkr-text-muted);
    transition: all 0.25s ease;
}

.wkr-menu-btn.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.wkr-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.wkr-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.wkr-nav-dropdown {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 220px;
    background: var(--wkr-card);
    border: 1px solid var(--wkr-border-subtle);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    z-index: 110;
}

.wkr-nav-dropdown.is-open {
    display: flex;
}

.wkr-nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 9px;
    color: var(--wkr-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wkr-nav-dropdown a:hover {
    color: var(--wkr-text);
    background: rgba(255, 87, 34, 0.1);
}

.wkr-nav-dropdown .material-icons {
    font-size: 1.1rem;
}

.wkr-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--wkr-text);
    transition: opacity 0.2s ease;
}

.wkr-logo:hover {
    opacity: 0.85;
}

.wkr-logo-badge {
    width: 32px;
    height: 32px;
    background: var(--wkr-orange);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.wkr-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wkr-logo-main {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.wkr-logo-sub {
    font-size: 0.6rem;
    color: var(--wkr-text-dim);
    line-height: 1.2;
    white-space: nowrap;
}

.wkr-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 87, 34, 0.14);
    border: 1px solid rgba(255, 87, 34, 0.55);
    color: #FFE0D1;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wkr-header-cta:hover {
    background: rgba(255, 87, 34, 0.24);
    border-color: var(--wkr-orange);
    transform: translateY(-1px);
}

.wkr-header-cta .material-icons {
    font-size: 1.2rem;
}

/* ==================== Footer ==================== */
.wkr-footer {
    background: transparent;
    border-top: 1px solid var(--wkr-border-subtle);
    padding: 2.5rem 3.5rem 1.75rem;
    color: var(--wkr-text);
}

.wkr-footer-inner {
    max-width: 1560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wkr-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.wkr-footer h2 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
    margin: 0 0 0.75rem 0;
}

.wkr-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wkr-footer a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--wkr-text);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.wkr-footer a:hover {
    color: var(--wkr-orange);
}

.wkr-footer .material-icons {
    font-size: 0.9rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    font-size: 0.75rem;
    color: var(--wkr-text-muted);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.footer-logo-badge {
    width: 28px;
    height: 28px;
    background: var(--wkr-orange);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--wkr-card-inner);
    color: var(--wkr-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-links a:hover {
    background: var(--wkr-orange);
    border-color: var(--wkr-orange);
    color: white;
}

.social-links svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-text {
    font-size: 0.7rem;
    color: var(--wkr-text-muted);
    line-height: 1.4;
    margin: 0 0 0.5rem 0;
}

.footer-contact {
    font-size: 0.7rem;
    color: var(--wkr-text-muted);
    line-height: 1.5;
    margin: 0 0 0.75rem 0;
}

.wkr-footer-bottom {
    max-width: 1560px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: var(--wkr-text-dim);
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.wkr-footer-bottom-links {
    display: flex;
    gap: 1rem;
}

.wkr-footer-bottom a {
    color: var(--wkr-text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wkr-footer-bottom a:hover {
    color: var(--wkr-orange);
}

.wkr-scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 40;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--wkr-orange);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
    padding: 0;
}

.wkr-scroll-to-top:hover {
    background-color: var(--wkr-orange-light);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.5);
    transform: translateY(-2px);
}

.wkr-scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.wkr-scroll-to-top .material-icons {
    font-size: 1.25rem;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .wkr-header {
        padding: 0.85rem 1.25rem;
    }

    .wkr-logo-sub {
        display: none;
    }

    .footer-brand {
        max-width: none;
    }

    .wkr-footer {
        padding: 2rem 1.25rem 1.5rem;
    }

    .wkr-footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .wkr-footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .wkr-scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}
