/* =======================
   🎨 VARIÁVEIS DE TEMA
======================= */
:root {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --card-bg: #ffffff;
  --footer-bg: #ffffff;
  --footer-text: #6c757d;
  --footer-border: #e9ecef;
  --accent-color: #198754;
}

body.dark-mode {
  --bg-color: #1f2128;
  --text-color: #f5f6fa;
  --card-bg: #2a2d35;
  --footer-bg: #22252c;
  --footer-text: #d0d1d4;
  --footer-border: #383b43;
  --accent-color: #9ae6b4;
}

/* =======================
   🧱 ESTRUTURA GLOBAL
======================= */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.4s ease, color 0.4s ease;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  background-color: var(--bg-color);
  padding-bottom: 3rem;
  padding-top: 105px;
  transition: all 0.4s ease;
  animation: fadeIn 0.6s ease forwards;
}

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

.container {
  background: transparent !important;
}

/* ============================
   💹 TICKER FINANCEIRO — PREMIUM CLEAN
============================ */

.ticker-section {
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, #0f0f0f, #1a1a1a);
    box-shadow: 0 4px 12px rgba(0,0,0,0.45);
    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 1030;
}

/* efeito luz passando */
.ticker-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120px;
    width: 120px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: lightShift 4s linear infinite;
}

@keyframes lightShift {
    0% { left: -200px; }
    100% { left: 120%; }
}

.ticker-wrapper {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 38s linear infinite;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 26px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    height: 44px;
    line-height: 44px;
    color: #e5e5e5;
}

/* Ícone */
.ticker-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.25));
}

/* Tendência */
.ticker-up {
    color: #36d96f;
    text-shadow: 0 0 6px rgba(0,255,0,0.35);
}

.ticker-down {
    color: #ff4b4b;
    text-shadow: 0 0 6px rgba(255,0,0,0.35);
}

/* separador elegante */
.ticker-sep::after {
    content: "│";
    margin-left: 20px;
    color: #555;
    font-weight: 300;
}



/* ===========================
   🎯 CARDS PRINCIPAIS — PREMIUM
=========================== */

.main-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.6rem;
    transition: 0.3s ease;
    background: var(--card-bg);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.main-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Ícone decorativo no fundo */


/* Ícones específicos */



/* TÍTULOS */
.main-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
}

/* VALOR */
.main-card .price-big {
    font-size: 2rem;
    font-weight: 800;
}

/* Texto da atualização */
.main-card small {
    opacity: 0.85;
}


/* =======================
   🦶 FOOTER
======================= */
footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-text);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: auto;
  transition: all 0.4s ease;
}

footer span {
  color: var(--accent-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #58a6ff;
}

/* =======================
   ✨ ANIMAÇÕES SUAVES
======================= */
a, button, .card, #toggleTheme {
  transition: all 0.3s ease-in-out;
}

/* ===========================
   HEADER PREMIUM
=========================== */

.premium-header {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  padding: 0.6rem 0;
  transition: 0.3s ease;
}

body.dark-mode .premium-header {
  background: #2a2d35;
  border-bottom: 1px solid #383b43;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* LOGO */
.brand-new {
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  color: var(--text-color) !important;
  letter-spacing: -0.5px;
}

.brand-dot {
  width: 11px;
  height: 11px;
  background: var(--accent-color);
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 6px rgba(25,135,84,0.5);
}

.brand-dev {
  color: var(--accent-color);
}

/* LINKS */
.nav-link {
  font-weight: 500;
  padding: 0.6rem 1rem !important;
  color: var(--text-color) !important;
  transition: 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/* underline suave */
.nav-link::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  border-radius: 4px;
  background: var(--accent-color);
  left: 18%;
  bottom: 4px;
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 65%;
}

/* botão modo */
.theme-switch-btn {
  background: var(--accent-color);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(25,135,84,0.35);
  transition: 0.25s ease;
  border: none;
}

.theme-switch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(25,135,84,0.45);
}





/* Oculta o ticker deslizando para cima */
.ticker-hidden {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}



.section-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-color);
}
.section-title span {
  font-size: 1.4rem;
}


.news-card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}


.btn-load {
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 32px;
  transition: 0.25s ease;
}

.btn-load:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25,135,84,0.35);
}

