
/* =====================================================
   NETSECURE RADAR — DARK PROFESSIONAL
   Identidade: azul-marinho, grafite e vermelho
===================================================== */

/* 1. DESIGN SYSTEM */

:root {
    color-scheme: dark;

    --page: #0b0f17;
    --surface: #111824;
    --surface-raised: #172131;
    --surface-hover: #202c3e;

    --ink: #edf1f7;
    --text-secondary: #a2aec0;
    --muted: #7e8ba0;

    --line: #283448;
    --line-strong: #3a4960;

    --red: #ef444f;
    --red-hover: #ff626b;
    --red-soft: rgba(239, 68, 79, 0.12);

    --green: #4fd1a1;
    --green-dark: #247c60;
    --green-soft: rgba(79, 209, 161, 0.12);

    --orange: #ffad66;
    --orange-soft: rgba(255, 173, 102, 0.12);

    --purple: #756bff;
    --purple-soft: rgba(117, 107, 255, 0.12);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow:
        0 8px 24px rgba(0, 0, 0, 0.16);

    font-family: Inter, Arial, sans-serif;
}

/* 2. RESET E BASE */

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--page);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;

    color: var(--ink);
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(39, 56, 83, 0.19),
            transparent 48%
        ),
        var(--page);

    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

::selection {
    color: white;
    background: rgba(239, 68, 79, 0.65);
}

/* 3. CABEÇALHO */

.topbar {
    min-height: 68px;
    padding: 0 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background: rgba(14, 20, 31, 0.96);
    border-bottom: 1px solid var(--line);

    position: relative;
    z-index: 5;
}

.topbar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 30px;

    width: 100px;
    height: 2px;

    background: var(--red);
}

.brand {
    color: var(--ink);
    text-decoration: none;

    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1;
}

.brand:hover {
    color: white;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 7px 11px;

    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 79, 0.3);
    border-radius: var(--radius-sm);

    color: #ff9298;
    font-weight: 700;
}

.countdown strong {
    color: white;
    font-size: 18px;
    line-height: 1;
}

.countdown span {
    font-size: 10px;
    letter-spacing: 0.8px;
}

/* 4. NAVEGAÇÃO */

.tabs {
    display: flex;
    align-items: center;
    gap: 5px;

    min-height: 59px;
    padding: 9px 30px;

    background: #0e1420;
    border-bottom: 1px solid var(--line);

    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.tab {
    flex: 0 0 auto;

    padding: 9px 15px;

    color: var(--text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);

    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;

    cursor: pointer;

    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.tab:hover {
    color: white;
    background: var(--surface-hover);
}

.tab.active {
    color: white;
    background: var(--red-soft);
    border-color: rgba(239, 68, 79, 0.32);
    box-shadow: inset 0 -2px 0 var(--red);
}

/* 5. ÁREA PRINCIPAL */

.page {
    width: 100%;
    max-width: 1720px;

    margin: 0 auto;
    padding: 28px 30px 36px;
}

.demo-notice {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 24px;

    color: var(--text-secondary);
    font: 10px "IBM Plex Mono", monospace;
    letter-spacing: 0.5px;
}

.notice-dot {
    width: 7px;
    height: 7px;

    display: inline-block;
    flex: 0 0 auto;

    background: var(--orange);
    border-radius: 50%;
}

.eyebrow {
    margin: 0 0 8px;

    color: #ff727a;
    font: 600 10px "IBM Plex Mono", monospace;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

h1 {
    margin: 0;

    color: #f6f8fc;
    font: 800 38px/1 "Barlow Condensed", Impact, sans-serif;
    letter-spacing: 0.3px;
}

.muted {
    color: var(--muted);
}

.section-heading .muted {
    margin: 8px 0 0;
    font-size: 12px;
}

.live-label {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 7px 10px;

    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 7px;

    font: 10px "IBM Plex Mono", monospace;
}

.live-label i {
    width: 7px;
    height: 7px;

    display: inline-block;
    background: var(--green);
    border-radius: 50%;
}

/* 6. FAIXA DE TENDÊNCIAS */

.ticker {
    display: flex;
    align-items: stretch;
    gap: 0;

    min-height: 46px;

    overflow-x: auto;
    white-space: nowrap;

    background: #111824;
    border: 1px solid var(--line);
    border-radius: var(--radius) var(--radius) 0 0;

    scrollbar-width: thin;
}

.ticker-item {
    min-height: 44px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    gap: 9px;

    border-right: 1px solid var(--line);

    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
}

.ticker-item:last-child {
    border-right: 0;
}

.ticker-item .muted {
    color: var(--muted);
    font-weight: 400;
}

.ticker-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--muted);
}

.ticker-dot.green {
    background: var(--green);
}

.google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 19px;
    height: 19px;

    color: #8ab4ff;
    background: #1d2b42;
    border: 1px solid #33445f;
    border-radius: 5px;

    font-weight: 800;
}

.positive {
    color: var(--green);
}

/* 7. WAR ROOM */

.warroom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;

    padding: 20px;

    color: var(--ink);
    background:
        linear-gradient(
            120deg,
            rgba(239, 68, 79, 0.09),
            transparent 48%
        ),
        #141b2a;

    border: 1px solid #374057;
    border-top: 0;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);

    margin-bottom: 18px;
}

.warroom-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    margin-bottom: 16px;

    font-size: 12px;
}

.warroom-title strong {
    color: white;
    font-size: 12px;
    letter-spacing: 0.6px;
}

.warroom-title small {
    color: var(--muted);
    font-size: 10px;
}

.mini-icon,
.x-icon {
    width: 25px;
    height: 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;
    font-weight: 800;
}

.mini-icon {
    color: #ff8990;
    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 79, 0.2);
}

.x-icon {
    color: white;
    background: #252d3b;
    border: 1px solid #394355;
}

.topic-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;

    color: var(--text-secondary);
    font-size: 11px;
}

.chip {
    padding: 6px 10px;

    color: #ffb0b4;
    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 79, 0.25);
    border-radius: 7px;

    font-size: 11px;
    font-weight: 700;
}

.warroom-links {
    margin-top: 20px;
    padding-top: 13px;

    border-top: 1px solid var(--line);

    color: var(--text-secondary);
    font-size: 11px;
}

.warroom-links p {
    margin: 7px 0;
}

.warroom-links span {
    color: var(--muted);
}

/* Indicador comparativo */

.versus {
    min-width: 0;
    padding: 15px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: #0e1420;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.versus-caption {
    color: var(--text-secondary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.versus-caption span {
    color: var(--muted);
    font-weight: 400;
}

.versus-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    margin: 15px 0 12px;

    font: 800 16px "Barlow Condensed", sans-serif;
    white-space: nowrap;
}

.versus-score small {
    color: var(--muted);
    font-size: 11px;
}

.green-text {
    color: var(--green);
}

.orange-text {
    color: var(--orange);
}

.score-track {
    display: flex;
    overflow: hidden;

    height: 7px;

    background: #293449;
    border-radius: 10px;
}

.score-track span {
    width: 25%;
    background: var(--green);
}

.score-track i {
    flex: 1;
    background: var(--orange);
}

.verdict {
    margin-top: 12px;
    padding: 8px 10px;

    color: #ffd0d2;
    background: var(--red-soft);
    border: 1px solid rgba(239, 68, 79, 0.24);
    border-radius: 7px;

    font-size: 10px;
    font-weight: 700;
}

.versus > small {
    margin-top: 8px;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* 8. GRADES DE PAINÉIS */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    min-width: 0;
    overflow: hidden;

    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.panel:hover {
    border-color: var(--line-strong);
}

.panel-header {
    min-height: 52px;
    padding: 11px 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    background: rgba(255, 255, 255, 0.015);
    border-bottom: 1px solid var(--line);
}

.panel-header > div {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-header strong {
    color: #e7ebf3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.panel-header time {
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.source-icon {
    width: 23px;
    height: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    color: white;
    background: #202a3a;
    border: 1px solid #354158;
    border-radius: 6px;

    font-size: 11px;
    font-weight: 800;
}

.source-icon.x {
    background: #202734;
}

.source-icon.google {
    color: #8ab4ff;
    background: #1d2b42;
}

.source-icon.tiktok {
    background: #222532;
}

.source-icon.kwai {
    background: #3c2d22;
    color: var(--orange);
}

.source-icon.youtube {
    background: #40232a;
    color: #ff777f;
}

.panel-subtitle {
    margin: 0;
    padding: 12px 15px 7px;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

/* 9. LISTA DO X */

.trend-list {
    padding: 0 15px;
}

.trend-row {
    min-height: 39px;

    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;

    border-bottom: 1px solid rgba(58, 73, 96, 0.55);

    font-size: 10px;
}

.trend-row:last-child {
    border-bottom: 0;
}

.trend-row strong {
    min-width: 0;

    color: #dfe5ef;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
}

.trend-row b {
    color: #e8edf6;
    font-size: 10px;
    white-space: nowrap;
}

.bullet {
    display: inline-block;
    width: 7px;
    height: 7px;

    border-radius: 50%;
    flex: 0 0 auto;
}

.bullet.green {
    background: var(--green);
}

.bullet.orange {
    background: var(--orange);
}

.bullet.gray {
    background: #718097;
}

.trend-row .down {
    color: #ff8a8f;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.trend-row .new {
    color: var(--orange);
    font-size: 9px;
    font-weight: 700;
}

.city-count {
    color: var(--text-secondary);
    font-size: 9px;
    white-space: nowrap;
}

.footnote {
    margin: 10px 15px 15px;
    padding-top: 11px;

    color: var(--muted);
    border-top: 1px dashed var(--line);

    font: 9px "IBM Plex Mono", monospace;
}

/* 10. GOOGLE */

.search-list {
    padding: 0 15px 8px;
}

.search-item {
    padding: 13px 0;
    border-bottom: 1px solid rgba(58, 73, 96, 0.55);
}

.search-item:last-child {
    border-bottom: 0;
}

.search-head {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;

    font-size: 10px;
}

.search-head strong {
    color: #e0e6f0;
    font-weight: 600;
    line-height: 1.5;
}

.search-head b {
    color: var(--green);
    font-size: 10px;
    white-space: nowrap;
}

.search-item p {
    margin: 6px 0 0 15px;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

/* 11. COMPARAÇÃO DE TEMAS */

.compare-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;

    padding: 14px 15px 16px;
}

.compare-col h3 {
    margin-bottom: 9px;

    color: var(--orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.compare-col.green-col h3 {
    color: var(--green);
}

.compare-row {
    min-height: 42px;
    padding: 5px 0 9px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;

    position: relative;

    border-bottom: 1px solid rgba(58, 73, 96, 0.55);

    font-size: 10px;
}

.compare-row:last-child {
    border-bottom: 0;
}

.compare-row span {
    overflow: hidden;

    color: #dce3ed;
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compare-row b {
    color: var(--text-secondary);
    font-size: 10px;
}

.compare-row i {
    position: absolute;
    left: 0;
    bottom: 2px;

    width: var(--bar);
    max-width: 100%;
    height: 3px;

    background: var(--orange);
    border-radius: 4px;
}

.green-col .compare-row i {
    background: var(--green);
}

/* 12. LEGENDA */

.legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;

    margin: 15px 0 32px;

    color: var(--text-secondary);
    font-size: 10px;
}

.legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* 13. PAINÉIS INFERIORES */

.bottom-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.bottom-grid .panel-header {
    min-height: 48px;

    background: transparent;
    border-bottom: 1px solid var(--line);
}

.bottom-grid .panel-subtitle {
    padding-top: 11px;
}

/* Nuvem de palavras */

.word-cloud {
    min-height: 265px;
    padding: 18px 15px;

    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    gap: 7px 10px;

    color: #c3cddd;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.word-cloud span {
    display: inline-block;
    transition: color 150ms ease;
}

.word-cloud span:hover {
    color: white;
}

.word-cloud .w-large {
    font-size: clamp(24px, 2.3vw, 35px);
}

.word-cloud .w-mid {
    font-size: clamp(18px, 1.8vw, 26px);
}

.green-word {
    color: var(--green);
}

.orange-word {
    color: var(--orange);
}

/* Picos do dia */

.peaks-panel .panel-subtitle,
.mentions-panel .panel-subtitle {
    padding-bottom: 13px;
}

.peak-item {
    min-height: 93px;
    padding: 13px 15px;

    border-bottom: 1px solid rgba(58, 73, 96, 0.55);
}

.peak-item:last-child {
    border-bottom: 0;
}

.peak-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;
}

.peak-title strong {
    color: #e4eaf3;
    font-size: 12px;
}

.peak-title > span {
    padding: 3px 6px;

    color: var(--text-secondary);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: 5px;

    font-size: 9px;
    font-weight: 600;
}

.peak-item p {
    margin: 4px 0;

    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.5;
}

/* 14. INDICADORES E GRÁFICO */

.mention-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;

    padding: 5px 15px 0;
}

.mention-stat {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 5px;

    padding-left: 10px;
    border-left: 3px solid;
}

.green-border {
    border-color: var(--green);
}

.orange-border {
    border-color: var(--orange);
}

.mention-stat strong {
    color: #f2f5fa;
    font: 800 30px/1 "Barlow Condensed", Impact, sans-serif;
}

.mention-stat span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.chart {
    display: block;

    width: calc(100% - 30px);
    height: auto;

    margin: 15px;
    overflow: visible;
}

.chart-grid path {
    fill: none;
    stroke: #293448;
    stroke-dasharray: 3 5;
}

.line-orange,
.line-green {
    fill: none;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-orange {
    stroke: var(--orange);
}

.line-green {
    stroke: var(--green);
}

.dot-orange {
    fill: var(--orange);
}

.dot-green {
    fill: var(--green);
}

/* 15. RODAPÉ */

.page-footer {
    margin-top: 28px;
    padding-top: 16px;

    color: var(--muted);
    border-top: 1px solid var(--line);

    font-size: 10px;
    line-height: 1.6;
}

/* 16. ABAS */

.view {
    display: none;
}

.view.active {
    display: block;
}

.placeholder-view {
    min-height: 65vh;
    padding: 30px 0;
}

.placeholder-view h1 {
    margin-bottom: 15px;
    font-size: clamp(32px, 4vw, 52px);
}

.placeholder-view p:not(.eyebrow) {
    max-width: 560px;

    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

/* 17. TABLETS */

@media (max-width: 1100px) {
    .page {
        padding: 24px 20px 30px;
    }

    .topbar {
        padding: 0 20px;
    }

    .tabs {
        padding-right: 20px;
        padding-left: 20px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid .panel:last-child {
        grid-column: 1 / -1;
    }

    .bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottom-grid .mentions-panel {
        grid-column: 1 / -1;
    }

    .warroom {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 14px;
    }
}

/* 18. TELAS PEQUENAS */

@media (max-width: 760px) {
    .warroom {
        grid-template-columns: minmax(0, 1fr);
    }

    .versus {
        width: 100%;
    }

    .dashboard-grid,
    .bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-grid .panel:last-child,
    .bottom-grid .mentions-panel {
        grid-column: auto;
    }

    .bottom-grid .panel {
        width: 100%;
    }

    .word-cloud {
        min-height: 220px;
    }
}

/* 19. CELULARES */

@media (max-width: 480px) {
    .topbar {
        min-height: 58px;
        padding: 0 14px;
    }

    .topbar::after {
        left: 14px;
        width: 78px;
    }

    .brand {
        font-size: 24px;
    }

    .countdown {
        padding: 6px 8px;
    }

    .tabs {
        min-height: 53px;
        padding: 8px 12px;
        gap: 5px;
    }

    .tab {
        padding: 9px 12px;
        font-size: 11px;
    }

    .page {
        padding: 19px 12px 25px;
    }

    .demo-notice {
        margin-bottom: 19px;
        font-size: 9px;
        line-height: 1.6;
    }

    .section-heading {
        align-items: flex-start;
        margin-bottom: 17px;
    }

    h1 {
        font-size: 32px;
    }

    .section-heading .muted {
        font-size: 11px;
        line-height: 1.5;
    }

    .live-label {
        display: none;
    }

    .ticker-item {
        padding: 0 12px;
        font-size: 10px;
    }

    .warroom {
        padding: 15px 12px;
    }

    .warroom-title {
        gap: 7px;
    }

    .topic-chips {
        gap: 8px;
    }

    .chip {
        font-size: 10px;
    }

    .warroom-links {
        font-size: 10px;
        line-height: 1.6;
    }

    .panel-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .panel-header strong {
        font-size: 10px;
    }

    .trend-list,
    .search-list {
        padding-right: 12px;
        padding-left: 12px;
    }

    .trend-row {
        gap: 6px;
        min-height: 42px;
    }

    .trend-row strong {
        overflow-wrap: anywhere;
    }

    .city-count {
        white-space: normal;
        text-align: right;
    }

    .compare-columns {
        gap: 12px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .compare-row span {
        font-size: 9px;
    }

    .compare-row b {
        font-size: 9px;
    }

    .legend {
        gap: 10px;
        margin-bottom: 23px;
    }

    .word-cloud .w-large {
        font-size: 28px;
    }

    .word-cloud .w-mid {
        font-size: 20px;
    }

    .mention-stat strong {
        font-size: 27px;
    }

    .page-footer {
        margin-top: 22px;
    }
}

/* 20. REDUÇÃO DE MOVIMENTO */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
