/* ═══════════════════════════════════════════════════════
   portal.css — Brasil Sem Filtro
   ═══════════════════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --bg: #f4f6f8;
  --bg-dark: #0a0a0a;
  --surface: #ffffff;
  --border: #e2e8f0;
  --txt: #1e293b;
  --txt-light: #ffffff;
  --muted: #64748b;
  --muted2: #475569;
  --red: #dc2626;
  --red-dark: #991b1b;
  --red-hover: #b91c1c;
  --radius: 12px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* ── RESET E BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--txt); font-family: 'DM Sans', sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ══════════════════════════════════════════════════════
   HEADER — Fundo vermelho estilo portal premium
   ══════════════════════════════════════════════════════ */
.header-top {
  background: var(--red-dark);
  padding: 6px 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

header {
  background: var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(185,28,28,0.4);
}

.header-main {
  max-width: 1250px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── LOGO ── */
.logo-wrap { display: flex; flex-direction: column; flex-shrink: 0; }

/* Logo branca para o header vermelho */
.logo-img {
  height: 48px;
  width: auto;
  min-width: 280px;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.logo-main {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 2px;
  line-height: 1;
  color: #fff;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  margin-top: 2px;
}

.header-ad {
  flex: 1;
  max-width: 580px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
}

.header-time {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}

.header-time .ao-vivo {
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  margin-top: 2px;
}

.header-time .ao-vivo::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fbbf24;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ══════════════════════════════════════════════════════
   NAV — Fundo branco com pílulas arredondadas
   ══════════════════════════════════════════════════════ */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.nav-inner::-webkit-scrollbar { height: 0; }

.nav-link {
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted2);
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(220,38,38,0.04);
}

.nav-link.active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
}

/* ── BREAKING NEWS ── */
.breaking {
  background: var(--bg-dark);
  padding: 10px 0;
  border-bottom: 2px solid var(--red);
}

.breaking-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.breaking-tag {
  background: var(--red);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  padding: 3px 12px;
  border-radius: 4px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.breaking-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.8; } }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  background: var(--red);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2px;
  padding: 12px 20px;
}

.sidebar-list { padding: 0; }

.sidebar-item {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  align-items: center;
}

.sidebar-item:last-child { border-bottom: none; }
.sidebar-item:hover { background: #fef2f2; }

.sidebar-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--red);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
}

.sidebar-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--txt);
}

.sidebar-item:hover .sidebar-item-title { color: var(--red); }

/* ── AD BLOCKS ── */
.ad-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.ad-lbl {
  font-size: 0.58rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* ── PIX / DOAÇÃO ── */
.donation-box {
  background: linear-gradient(135deg, #fff5f5, #fff);
  border: 1px solid #fecaca;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  padding: 24px;
  margin: 40px 0;
  display: flex;
  gap: 24px;
  align-items: center;
}

.donation-qr img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.donation-text h3 { font-size: 1.2rem; color: var(--bg-dark); margin-bottom: 8px; }
.donation-text p { color: var(--muted2); font-size: 0.88rem; line-height: 1.6; margin-bottom: 14px; }

.btn-pix {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-pix:hover { background: var(--red-hover); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════
   FOOTER — Elegante com vermelho
   ══════════════════════════════════════════════════════ */
footer {
  background: var(--bg-dark);
  color: #fff;
  margin-top: 60px;
}

.footer-top-bar {
  background: var(--red);
  padding: 14px 20px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.footer-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  display: block;
}

.footer-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.8;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 10px;
  transition: all 0.2s;
  padding-left: 0;
}

.footer-col a:hover {
  color: #fff;
  padding-left: 6px;
}

.footer-divider {
  max-width: 1250px;
  margin: 0 auto;
  height: 1px;
  background: #1e293b;
}

.footer-bottom {
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #475569;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom-badge {
  background: var(--red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1px;
}

/* ── IMAGENS ── */
.img-wrapper {
  overflow: hidden;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.img-wrapper:hover img { transform: scale(1.05); }
.emoji-fallback { font-size: 2.5rem; opacity: 0.5; }

/* ── RESPONSIVO ── */
@media (max-width: 992px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  .header-ad { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .donation-box { flex-direction: column; text-align: center; }
  .logo-img { height: 40px; min-width: 200px; }
  .header-main { padding: 10px 16px; }
}

@media (max-width: 480px) {
  .nav-link { padding: 6px 12px; font-size: 0.72rem; }
  .nav-inner { gap: 4px; }
}
