/* ═══════════════════════════════════════════════
   GOING NORTH — noticias.css
   Estilos exclusivos da página de notícias.
   ═══════════════════════════════════════════════ */

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #003d2a 60%, #002b1e 100%);
  padding: 40px 32px 52px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,171,94,.13) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 5%;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(13,148,136,.09) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { max-width: 1300px; margin: 0 auto; }

/* Etiqueta "AO VIVO" com ponto pulsante */
.hero-tag  { display: inline-flex; align-items: center; gap: 7px; background: rgba(26,171,94,.15); border: 1px solid rgba(26,171,94,.3); border-radius: 20px; padding: 5px 14px; font-size: .75rem; font-weight: 600; color: #4ade80; margin-bottom: 18px; letter-spacing: .04em; }
.live-dot  { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: livePulse 1.5s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

.hero h1       { font-family: var(--font-d); font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.hero h1 span  { color: #4ade80; }
.hero p        { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.7; max-width: 500px; margin-bottom: 28px; }

/* Filtros de categoria no hero */
.hero-filters  { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-filter   { padding: 7px 18px; border-radius: 20px; font-size: .8rem; font-weight: 600; cursor: pointer; border: 1.5px solid rgba(255,255,255,.15); color: rgba(255,255,255,.7); background: transparent; transition: all .2s; font-family: var(--font-b); }
.hero-filter:hover  { border-color: var(--green); color: #fff; }
.hero-filter.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ── Ticker de cotações ── */
.ticker-wrap { background: #001a1a; border-bottom: 1px solid rgba(54,133,71,.15); overflow: hidden; height: 36px; display: flex; align-items: center; position: relative; }
/* Gradientes de fade nas bordas do ticker */
.ticker-wrap::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg, #001a1a, transparent); z-index: 2; pointer-events: none; }
.ticker-wrap::after  { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 60px; background: linear-gradient(270deg, #001a1a, transparent); z-index: 2; pointer-events: none; }
.ticker-track        { display: flex; align-items: center; animation: tickerScroll 60s linear infinite; white-space: nowrap; }
.ticker-track:hover  { animation-play-state: paused; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.ticker-item  { display: inline-flex; align-items: center; gap: 7px; padding: 0 22px; border-right: 1px solid rgba(255,255,255,.07); font-size: .76rem; }
.ticker-name  { font-weight: 700; color: rgba(255,255,255,.6); font-family: var(--font-d); letter-spacing: .03em; font-size: .72rem; }
.ticker-price { font-weight: 700; color: #fff; font-family: var(--font-d); }
.ticker-chg   { font-weight: 700; font-size: .71rem; }
.ticker-chg.up  { color: #4ade80; }
.ticker-chg.dn  { color: #f87171; }
.ticker-chg.neu { color: rgba(255,255,255,.4); }
.ticker-dot     { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.ticker-dot.up  { background: #4ade80; }
.ticker-dot.dn  { background: #f87171; }
.ticker-dot.neu { background: rgba(255,255,255,.3); }

/* ── Layout principal (grid notícias + sidebar) ── */
.main { max-width: 1300px; margin: 0 auto; padding: 28px 32px 60px; display: grid; grid-template-columns: 1fr 340px; gap: 28px; }

/* Cabeçalho de seção */
.sec-head   { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.sec-title  { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 10px; }
.sec-dot    { width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.sec-count  { font-size: .78rem; color: var(--text3); font-weight: 400; margin-left: 4px; }

/* Botão de atualizar */
.btn-refresh         { background: var(--green-light); border: none; color: var(--green); padding: 6px 14px; border-radius: 8px; font-size: .78rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; font-family: var(--font-b); transition: all .2s; }
.btn-refresh:hover   { background: var(--green); color: #fff; }
.btn-refresh.loading svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Card de notícia em destaque ── */
.news-featured       { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 20px; cursor: pointer; transition: all .25s; display: grid; grid-template-columns: 1fr 1fr; }
.news-featured:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-featured-img   { min-height: 220px; background: linear-gradient(135deg, #0f2318, #1a4731); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.news-featured-img img              { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.news-featured-img-fallback         { font-size: 3.5rem; position: relative; z-index: 1; }
.news-featured-body  { padding: 24px; }
.news-source-row     { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.news-source         { font-size: .72rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.news-time           { font-size: .71rem; color: var(--text3); }
.news-featured-title { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 10px; }
.news-featured-desc  { font-size: .82rem; color: var(--text3); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-read-btn       { display: inline-flex; align-items: center; gap: 6px; background: var(--green); color: #fff; padding: 8px 16px; border-radius: 8px; font-size: .78rem; font-weight: 600; transition: background .2s; }
.news-read-btn:hover { background: var(--green-h); }

/* ── Lista de notícias ── */
.news-list      { display: flex; flex-direction: column; gap: 12px; }
.news-card      { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; cursor: pointer; transition: all .2s; display: grid; grid-template-columns: 1fr 80px; gap: 14px; align-items: start; }
.news-card:hover      { border-color: var(--green); box-shadow: var(--shadow); }
.news-card-cat        { font-size: .7rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; }
.news-card-title      { font-family: var(--font-d); font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.news-card-meta       { font-size: .72rem; color: var(--text3); display: flex; align-items: center; gap: 6px; }
.news-card-img        { width: 80px; height: 68px; border-radius: 10px; object-fit: cover; background: linear-gradient(135deg, #e2f0e9, #c5dfd1); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; overflow: hidden; }
.news-card-img img    { width: 100%; height: 100%; object-fit: cover; }

/* ── Skeleton de carregamento ── */
.news-skeleton { display: flex; flex-direction: column; gap: 12px; }
.skel          { background: linear-gradient(90deg, var(--surface2) 25%, #e8f0eb 50%, var(--surface2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-feat     { height: 220px; }
.skel-card     { height: 100px; }

/* Estado vazio */
.empty-news     { text-align: center; padding: 40px; color: var(--text3); }
.empty-news svg { margin-bottom: 12px; opacity: .4; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Card de fontes/jornais */
.jornal-card        { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.jornal-head        { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.jornal-title       { font-family: var(--font-d); font-size: .9rem; font-weight: 700; color: var(--text); }
.jornal-list        { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.jornal-item        { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface2); cursor: pointer; transition: all .2s; text-decoration: none; }
.jornal-item:hover  { border-color: var(--green); background: #fff; box-shadow: var(--shadow); }
.jornal-logo        { width: 40px; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; font-weight: 800; font-family: var(--font-d); }
.jornal-info        { flex: 1; min-width: 0; }
.jornal-name        { font-size: .84rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.jornal-desc        { font-size: .72rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jornal-arrow       { color: var(--text3); transition: color .2s; flex-shrink: 0; }
.jornal-item:hover .jornal-arrow { color: var(--green); }

/* Card de indicadores econômicos */
.ind-card  { background: var(--surface); border-radius: var(--r-xl); padding: 20px; box-shadow: var(--shadow); }
.ind-title { font-family: var(--font-d); font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.ind-list  { display: flex; flex-direction: column; gap: 10px; }
.ind-item  { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--surface2); border-radius: 10px; }
.ind-name  { font-size: .8rem; font-weight: 600; color: var(--text2); }
.ind-val   { font-family: var(--font-d); font-size: .9rem; font-weight: 700; color: var(--green); }
.ind-sub   { font-size: .7rem; color: var(--text3); margin-top: 1px; }

/* ── Paginação ── */
.pagination       { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; }
.page-btn         { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text2); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.page-btn:hover,
.page-btn.active  { background: var(--green); border-color: var(--green); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Toast de feedback ── */
.toast      { position: fixed; bottom: 28px; right: 28px; background: var(--nav-bg); color: #fff; padding: 13px 20px; border-radius: 12px; font-size: .86rem; font-weight: 500; box-shadow: var(--shadow-md); z-index: 9999; transform: translateY(80px); opacity: 0; transition: all .3s; display: flex; align-items: center; gap: 10px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--green); }

/* ── Responsivo ── */
@media (max-width: 1000px) {
  .main            { grid-template-columns: 1fr; }
  .news-featured   { grid-template-columns: 1fr; }
  .news-featured-img { min-height: 160px; }
}
@media (max-width: 680px) {
  .main    { padding: 16px 16px 48px; }
  .hero    { padding: 28px 16px 44px; }
  .navbar  { padding: 0 16px; }
  .nav-links { display: none; }
}
