/* ==========================================================
   VERIFICA A??ES
   SITE.CSS
   Visual: profissional, limpo e simples
   ========================================================== */


/* ==========================================================
   VARI?VEIS
   ========================================================== */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #EFF6FF;
    --success: #16A34A;
    --success-dark: #15803D;
    --success-light: #F0FDF4;
    --danger: #DC2626;
    --warning: #D97706;
    --background: #F6F8FB;
    --surface: #FFFFFF;
    --text: #172033;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --border-light: #EEF2F7;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .04);
    --shadow: 0 6px 20px rgba(15, 23, 42, .06);
    --shadow-hover: 0 10px 28px rgba(15, 23, 42, .09);
    --radius: 14px;
    --radius-sm: 10px;
}


/* ==========================================================
   BASE
   ========================================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

section {
    padding: 42px 0;
}

    section h2 {
        color: var(--text);
        font-weight: 750;
        letter-spacing: -.4px;
    }

    section > .text-center p {
        max-width: 680px;
        margin-left: auto;
        margin-right: auto;
    }

hr {
    border-color: var(--border);
    opacity: .7;
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-success {
    color: var(--success) !important;
}

.text-danger {
    color: var(--danger) !important;
}

.text-warning {
    color: var(--warning) !important;
}


/* ==========================================================
   SELE??O
   ========================================================== */

::selection {
    background: rgba(37, 99, 235, .15);
}


/* ==========================================================
   NAVBAR
   ========================================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, .04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--text) !important;
}

    .navbar-brand:hover {
        color: var(--primary) !important;
    }

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 550;
    padding: .5rem .7rem !important;
    margin-left: 4px;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease;
}

    .nav-link:hover {
        color: var(--primary) !important;
        background: var(--primary-light);
    }

.dropdown-menu {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .4rem;
    box-shadow: var(--shadow);
}

.dropdown-item {
    border-radius: 7px;
    padding: .55rem .7rem;
}

    .dropdown-item:hover {
        background: var(--primary-light);
        color: var(--primary);
    }

.logo-subtitulo {
    font-size: .68rem;
    color: var(--text-muted);
    margin-top: -4px;
}


/* ==========================================================
   BOT?ES
   ========================================================== */

.btn {
    border-radius: 9px;
    font-weight: 600;
    padding: .6rem 1rem;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn:active {
        transform: translateY(0);
    }

.btn-lg {
    padding: .75rem 1.35rem;
    border-radius: 10px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

    .btn-primary:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        box-shadow: 0 5px 15px rgba(37, 99, 235, .18);
    }

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

    .btn-success:hover {
        background: var(--success-dark);
        border-color: var(--success-dark);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: #BFDBFE;
    background: #fff;
}

    .btn-outline-primary:hover {
        color: #fff;
        background: var(--primary);
        border-color: var(--primary);
    }

.btn-outline-success {
    color: var(--success);
    border-color: #BBF7D0;
    background: #fff;
}

    .btn-outline-success:hover {
        color: #fff;
        background: var(--success);
        border-color: var(--success);
    }

.btn-outline-warning {
    color: #B45309;
    border-color: #FCD34D;
    background: #fff;
}

    .btn-outline-warning:hover {
        color: #fff;
        background: var(--warning);
        border-color: var(--warning);
    }


/* ==========================================================
   CARDS
   ========================================================== */

.card-modern {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

    .card-modern:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        border-color: #D5DDE8;
    }

    .card-modern h3,
    .card-modern h4,
    .card-modern h5 {
        font-weight: 700;
    }

    .card-modern h3,
    .card-modern h4 {
        letter-spacing: -.3px;
    }


/* ==========================================================
   HOME
   ========================================================== */

.hero-home {
    position: relative;
    background: linear-gradient( 135deg, #EFF6FF 0%, #FFFFFF 65%, #F0FDF4 100% );
    border: 1px solid #DCE7F5;
    border-radius: 20px;
    padding: 55px 40px;
    margin-bottom: 20px;
    overflow: hidden;
}

    .hero-home::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        background: rgba(37, 99, 235, .035);
        top: -90px;
        right: -60px;
    }

    .hero-home > * {
        position: relative;
        z-index: 1;
    }

    .hero-home h1 {
        color: #111827;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .hero-home .lead {
        max-width: 820px;
        margin: auto;
        line-height: 1.65;
        color: var(--text-muted);
    }

    .hero-home a {
        color: var(--primary);
        font-weight: 600;
    }

        .hero-home a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }


/* ==========================================================
   BUSCA
   ========================================================== */

.search-box {
    max-width: 820px;
    margin: auto;
}

    .search-box .input-group {
        background: #fff;
        border: 1px solid #D9E1EA;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
        overflow: hidden;
    }

    .search-box .form-control {
        border: none;
        box-shadow: none;
    }

    .search-box .btn {
        border-radius: 0;
    }


/* ==========================================================
   FORMUL?RIOS
   ========================================================== */

.form-control,
.form-select {
    border-radius: 9px;
    border-color: #D9E1EA;
    padding: .7rem .9rem;
    color: var(--text);
}

    .form-control::placeholder {
        color: #94A3B8;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 .18rem rgba(37, 99, 235, .10);
    }


/* ==========================================================
   RESULTADO DA BUSCA
   ========================================================== */

.resultado-busca {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    display: none;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-height: 350px;
    overflow-y: auto;
}

    .resultado-busca .list-group-item {
        padding: 12px 15px;
        border: none;
        border-bottom: 1px solid var(--border-light);
    }

        .resultado-busca .list-group-item:hover {
            background: var(--primary-light);
        }


/* ==========================================================
   MERCADOS
   ========================================================== */

section .card-modern i.fs-1 {
    transition: transform .2s ease;
}

section .card-modern:hover i.fs-1 {
    transform: translateY(-2px);
}


/* ==========================================================
   INDICADORES ECON?MICOS
   ========================================================== */

.indicador-economico .card-modern {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.indicador-economico h6 {
    font-size: .88rem;
    font-weight: 650;
    color: var(--text-secondary);
}

.indicador-economico h4 {
    font-size: 1.35rem;
    font-weight: 800;
}

.indicador-economico i {
    transition: transform .2s ease;
}

.indicador-economico:hover i {
    transform: translateY(-2px);
}


/* ==========================================================
   FAVORITOS
   ========================================================== */

#cardFavoritos {
    border-radius: var(--radius);
}

    #cardFavoritos h4 {
        font-weight: 700;
    }

#listaFavoritos {
    min-height: 40px;
}


/* ==========================================================
   A??ES POPULARES
   ========================================================== */

a.card-modern {
    color: inherit;
}

    a.card-modern:hover {
        color: inherit;
    }

    a.card-modern h5 {
        transition: color .2s ease;
    }

    a.card-modern:hover h5 {
        color: var(--primary);
    }

    a.card-modern hr {
        margin: .7rem 0;
        opacity: .12;
    }


/* ==========================================================
   ARTIGOS
   ========================================================== */

article.card-modern h4 {
    line-height: 1.35;
    font-weight: 700;
}

article.card-modern p {
    line-height: 1.6;
}

article.card-modern img {
    transition: transform .3s ease;
}

article.card-modern:hover img {
    transform: scale(1.02);
}


/* ==========================================================
   P?GINA DE ARTIGO
   ========================================================== */

.article-page {
    background: linear-gradient( 180deg, #F8FAFC 0%, #F6F8FB 100% );
    padding: 50px 0;
}

.article-header {
    max-width: 950px;
    margin: auto;
    margin-bottom: 30px;
}

.article-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 50px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.article-meta {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 12px;
}

.article-card {
    max-width: 950px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 50px;
    box-shadow: var(--shadow);
}

    .article-card p {
        font-size: 19px;
        line-height: 1.85;
        color: #374151;
        margin-bottom: 25px;
    }

    .article-card h2 {
        margin-top: 40px;
        margin-bottom: 18px;
    }

    .article-card h3 {
        margin-top: 30px;
        margin-bottom: 14px;
    }

    .article-card img {
        max-width: 100%;
        border-radius: 12px;
        margin: 25px 0;
    }

.article-footer {
    max-width: 950px;
    margin: auto;
}

.author-box {
    max-width: 950px;
    margin: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--success);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}


/* ==========================================================
   HEADER DA A??O
   ========================================================== */

.acao-header {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

    .acao-header .card-body {
        padding: 2rem 2.3rem;
    }

    .acao-header h1 {
        font-size: 3rem;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .acao-header h2 {
        font-size: 3.7rem;
        font-weight: 800;
        color: var(--success);
        margin-top: 15px;
    }

    .acao-header .badge {
        font-size: 13px;
        padding: 7px 13px;
    }

    .acao-header .variacao {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .acao-header .atualizacao {
        color: var(--text-muted);
        font-size: 15px;
    }

    .acao-header .acoes {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }

        .acao-header .acoes .btn {
            width: 230px;
        }


/* ==========================================================
   INDICADORES DA A??O
   ========================================================== */

.indicador-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 23px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

    .indicador-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .indicador-card .titulo {
        color: var(--text-muted);
        font-size: 13px;
        margin-bottom: 8px;
    }

    .indicador-card .valor {
        font-size: 30px;
        font-weight: 800;
        color: var(--success);
        margin-bottom: 8px;
    }

    .indicador-card .descricao {
        font-size: 13px;
        font-weight: 600;
    }


/* ==========================================================
   SCORE
   ========================================================== */

.score-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-top: 40px;
}

.score-numero {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: auto;
    color: #fff;
    font-size: 52px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
}

.score-estrelas {
    font-size: 30px;
    color: var(--warning);
    margin-top: 18px;
}

.score-card h4 {
    font-weight: 700;
}

.score-card .progress {
    height: 15px;
}

.score-card li {
    font-size: 16px;
    margin-bottom: 9px;
}


/* ==========================================================
   PROGRESS
   ========================================================== */

.progress {
    border-radius: 20px;
    background: #EDF2F7;
    overflow: hidden;
}

.progress-bar {
    border-radius: 20px;
    transition: width .7s ease;
}


/* ==========================================================
   LISTAS
   ========================================================== */

.list-group-item {
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 11px 0;
    font-size: 15px;
}

.list-group-item-action {
    border: none;
    padding: 15px 10px;
    transition: background .15s ease, transform .15s ease;
}

    .list-group-item-action:hover {
        background: #F5F9FF;
        transform: translateX(2px);
    }


/* ==========================================================
   ALERTAS
   ========================================================== */

.alert {
    border-radius: 10px;
}

.alert-primary {
    border: 1px solid #D7E7FF;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
}

.alert-success {
    border: 1px solid #CFF3D8;
    border-left: 4px solid var(--success);
    background: var(--success-light);
}

.alert-warning {
    border: 1px solid #FDE7B0;
    border-left: 4px solid var(--warning);
    background: #FFFBEB;
}

.alert-danger {
    border: 1px solid #FECACA;
    border-left: 4px solid var(--danger);
    background: #FEF2F2;
}


/* ==========================================================
   BADGES
   ========================================================== */

.badge {
    border-radius: 6px;
    padding: .4em .65em;
    font-weight: 600;
}


/* ==========================================================
   TABELAS
   ========================================================== */

.table {
    color: var(--text);
}

    .table thead th {
        font-size: .8rem;
        text-transform: uppercase;
        letter-spacing: .35px;
        color: var(--text-muted);
        font-weight: 700;
        border-bottom: 1px solid var(--border);
    }

    .table tbody td {
        border-color: var(--border-light);
        vertical-align: middle;
    }

.table-hover tbody tr:hover {
    background: #F8FAFF;
}


/* ==========================================================
   ESPA?AMENTO HOME
   ========================================================== */

.container .row.g-4 {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.container .row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */

@media (max-width: 991.98px) {

    section {
        padding: 38px 0;
    }

    .hero-home {
        padding: 48px 30px;
    }

        .hero-home h1 {
            font-size: 2.4rem;
        }

    .acao-header h1 {
        font-size: 2.6rem;
    }

    .acao-header h2 {
        font-size: 3rem;
    }

    .article-title {
        font-size: 42px;
    }
}


@media (max-width: 767.98px) {

    section {
        padding: 35px 0;
    }

    .hero-home {
        padding: 42px 20px;
        border-radius: 17px;
    }

        .hero-home h1 {
            font-size: 2rem;
            line-height: 1.2;
        }

        .hero-home .lead {
            font-size: 1rem;
        }

    section h2 {
        font-size: 1.6rem;
    }

    .card-modern {
        border-radius: 13px;
    }

    .navbar-brand {
        font-size: 1.55rem;
    }

    .nav-link {
        margin-left: 0;
    }

    .article-title {
        font-size: 34px;
    }

    .article-card {
        padding: 28px 20px;
        border-radius: 15px;
    }

        .article-card p {
            font-size: 17px;
            line-height: 1.75;
        }

    .article-cover {
        height: 270px;
        border-radius: 13px;
    }

    .acao-header .acoes {
        align-items: stretch;
    }

        .acao-header .acoes .btn {
            width: 100%;
        }

    .acao-header .card-body {
        padding: 1.4rem;
    }

    .acao-header h1 {
        font-size: 2.2rem;
    }

    .acao-header h2 {
        font-size: 2.6rem;
    }

    .score-card {
        padding: 32px 22px;
    }
}


@media (max-width: 575.98px) {

    section {
        padding: 30px 0;
    }

    .hero-home {
        padding: 38px 15px;
        border-radius: 15px;
    }

        .hero-home h1 {
            font-size: 1.75rem;
        }

    .btn-lg {
        width: 100%;
    }

    .article-title {
        font-size: 29px;
    }

    .article-cover {
        height: 210px;
    }

    .score-card {
        padding: 28px 18px;
    }

    .score-numero {
        width: 105px;
        height: 105px;
        font-size: 42px;
    }

    .acao-header h1 {
        font-size: 1.9rem;
    }

    .acao-header h2 {
        font-size: 2.2rem;
    }
}


/* ==========================================================
   REDU??O DE MOVIMENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
/* ==========================================================
   FOOTER
   ========================================================== */

footer a {
    color: var(--primary) !important;
    text-decoration: none;
}

    footer a:hover {
        color: var(--primary-dark) !important;
        text-decoration: underline;
    }

footer h5,
footer h6 {
    color: var(--text);
    font-weight: 700;
}

footer p {
    color: var(--text-secondary);
}



/* ==========================================================
   TOOLTIP DOS INDICADORES
   ========================================================== */

.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
}

/* ?cone ? */

.info-tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border: 1px solid #9ca3af;
    border-radius: 50%;
    color: #6b7280;
    background: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    cursor: help;
    transition: all .2s ease;
}

    .info-tooltip-icon:hover {
        color: #2563eb;
        border-color: #2563eb;
    }


/* Caixa do tooltip */

.info-tooltip-box {
    position: absolute;
    z-index: 9999;
    width: 320px;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    padding: 18px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12), 0 3px 8px rgba(0, 0, 0, .06);
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}


/* T?tulo */

.info-tooltip-title {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-size: 16px;
    font-weight: 700;
}


/* Texto */

.info-tooltip-text {
    display: block;
    margin-bottom: 10px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

    .info-tooltip-text:last-child {
        margin-bottom: 0;
    }


/* Seta */

.info-tooltip-box::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 13px;
    height: 13px;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    transform: translateX(-50%) rotate(45deg);
}


/* Mostrar somente ao passar o mouse */

.info-tooltip:hover .info-tooltip-box {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================
   DROPDOWN ANINHADO - FERRAMENTAS > RANKINGS
   ========================================================== */

.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -1px;
        display: none;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-toggle::after {
        float: right;
        margin-top: 7px;
    }

body {
    background-color: #f3f4f6;
}

.acao-logo {
    width:100px;
    height:100px
}