/* BARRA SUPERIOR PERSISTENTE, CABEÇALHO E MENU MOBILE UNIFICADOS DO PORTAL */
.top-persistent-bar {
  background: #0f172a;
  color: #e2e8f0;
  padding: 6px 16px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.radio-top-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-play-radio-top {
  background: #ea580c;
  color: white;
  border: none;
  padding: 5px 14px;
  border-radius: var(--radius-full, 9999px);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}
.btn-play-radio-top:hover {
  background: #c2410c;
  transform: scale(1.02);
}
.btn-play-radio-top.playing {
  background: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}
.eq-bar-wrap {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.eq-bar-wrap.active {
  display: inline-flex;
}
.eq-bar {
  width: 2px;
  background: #22c55e;
  border-radius: 1px;
  animation: eqDance 0.8s infinite ease-in-out alternate;
}
.eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 8px; animation-delay: 0.2s; }
@keyframes eqDance {
  0% { height: 3px; }
  100% { height: 12px; }
}
.btn-switch {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.btn-switch:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* CABEÇALHO */
.iob-header {
  background: var(--bg-card, #ffffff);
  border-bottom: 1px solid var(--border, var(--surface-border, #e2e8f0));
}
.iob-nav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}
.nav-links-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links-pills li a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  padding: 6px 12px;
  border-radius: var(--radius-sm, 6px);
  transition: all 0.2s;
  text-decoration: none;
}
.nav-links-pills li a:hover,
.nav-links-pills li a.active {
  color: var(--primary, #ea580c);
  background: var(--primary-subtle, rgba(234, 88, 12, 0.1));
  font-weight: 700;
}

/* SUB-BARRA DE AÇÃO EM AZUL */
.blue-action-bar {
  background: var(--blue-gradient, linear-gradient(90deg, #1e3a8a 0%, #c2410c 100%));
  color: white;
  padding: 8px 0;
  font-size: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}
.action-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-home-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  outline: none;
  width: 190px;
}
.search-home-input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}
.action-chip {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-weight: 700;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: var(--radius-full, 9999px);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.action-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.action-group-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-icons-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-icon-btn {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  transition: all 0.2s;
}
.social-icon-btn:hover {
  background: #ffffff;
  color: #ea580c;
  transform: scale(1.1);
}
.social-icon-btn svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}
.btn-anuncie-header {
  background: #ffffff;
  color: #c2410c;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full, 9999px);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-anuncie-header:hover {
  background: #f1f5f9;
  transform: scale(1.02);
}

/* HAMBURGER BUTTON & MOBILE DRAWER */
.btn-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text, #0f172a);
  border-radius: var(--radius-sm, 6px);
  transition: background 0.2s;
}
.btn-hamburger:hover {
  background: var(--border, var(--surface-border, #e2e8f0));
}
.btn-hamburger svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}
.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-card, #ffffff);
  z-index: 9999;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.mobile-menu-drawer.open {
  right: 0;
}
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border, var(--surface-border, #e2e8f0));
  background: var(--bg, #f8fafc);
}
.mobile-drawer-header img {
  height: 36px;
  width: auto;
}
.btn-close-drawer {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.btn-close-drawer:hover {
  color: var(--primary, #ea580c);
}
.mobile-drawer-nav {
  padding: 8px 0;
  list-style: none;
  margin: 0;
}
.mobile-drawer-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #0f172a);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.mobile-drawer-nav li a:hover,
.mobile-drawer-nav li a.active {
  color: var(--primary, #ea580c);
  background: var(--primary-subtle, rgba(234, 88, 12, 0.1));
  border-left-color: var(--primary, #ea580c);
}
.mobile-drawer-contacts {
  margin-top: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border, var(--surface-border, #e2e8f0));
  background: var(--bg, #f8fafc);
  font-size: 12px;
}
.drawer-contact-item {
  margin-bottom: 8px;
}
.drawer-contact-item:last-child {
  margin-bottom: 0;
}
.drawer-contact-label {
  font-size: 10px;
  font-weight: 800;
  color: var(--primary, #ea580c);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}
.drawer-contact-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-cta-anuncie {
  display: block;
  margin-top: 14px;
  background: var(--primary, #ea580c);
  color: #ffffff !important;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-sm, 6px);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .top-persistent-bar {
    padding: 6px 10px;
    gap: 6px;
  }
  .btn-play-radio-top {
    padding: 5px 10px;
    font-size: 10.5px;
    white-space: nowrap;
  }
  .btn-switch {
    padding: 5px 8px;
    font-size: 10.5px;
    white-space: nowrap;
    justify-content: center;
  }
  #theme-text {
    display: none !important;
  }
  .radio-prefix-desktop {
    display: none !important;
  }
  #currentDateStr {
    font-size: 10px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .iob-nav-top {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0;
    gap: 0;
  }
  .brand-wrap {
    width: auto !important;
    justify-content: flex-start !important;
  }
  .brand-logo {
    height: 40px;
  }
  .btn-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .nav-links-pills {
    display: none !important;
  }
  .blue-action-bar {
    padding: 8px 0;
    display: block !important;
  }
  .action-bar-content {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }
  .action-bar-content > div:first-child {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  .action-bar-content > div:first-child form {
    flex: 1 1 auto;
    min-width: 0;
    padding: 5px 12px !important;
  }
  .search-home-input {
    width: 100%;
    min-width: 0;
    font-size: 12px;
  }
  .action-chip {
    flex: 0 0 auto;
    margin-left: 0 !important;
    justify-content: center;
    padding: 7px 10px;
    font-size: 10px;
    white-space: nowrap;
    border-radius: 6px;
  }
  .action-group-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  .social-icons-bar {
    gap: 6px;
  }
  .social-icon-btn {
    width: 28px;
    height: 28px;
  }
  .btn-anuncie-header {
    padding: 4px 12px;
    font-size: 10.5px;
  }
}
