/* ============================================================
   agorahora.com.br — style.css
   Estrutura: reset → layout → componentes → painéis → responsive
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body { font-family: 'Inter', sans-serif; background: #ffffff; color: #1a1a1a; line-height: 1.5; }
a { color: #0057b8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
#hdr {
  background: #fff;
  border-bottom: 2px solid #f0f0f0;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 200;
  gap: 0;
}
#logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 12px 20px 12px 0;
  border-right: 1px solid #f0f0f0;
  margin-right: 4px;
  letter-spacing: -.5px;
}
#logo .dot { color: #e63946; }
#logo .ext { display: none; }

#hdr-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
#hdr-nav::-webkit-scrollbar { display: none; }

.hn {
  padding: 0 14px;
  font-size: .78rem;
  font-weight: 500;
  color: #666;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.hn:hover, .hn.on { color: #1a1a1a; border-bottom-color: #e63946; }

/* ── ADS ── */
.ad-bar {
  background: #fafafa;
  border-bottom: 1px solid #f0f0f0;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-ph {
  border: 1px dashed #ddd;
  padding: 5px 20px;
  border-radius: 4px;
  font-size: .7rem;
  color: #bbb;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-mid {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
}

/* ── LAYOUT PRINCIPAL ── */
#wrap {
  display: flex;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 28px;
}
#main { flex: 1; min-width: 0; padding: 24px 0 32px; }
#aside { width: 210px; flex-shrink: 0; padding: 24px 0 32px; }

/* ── CLOCK HERO ── */
#clock-zone { margin-bottom: 16px; }
#cl-label { font-size: .82rem; color: #666; margin-bottom: 4px; }
#cl-label a { color: #0057b8; }

#cl-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(4.5rem, 13vw, 8.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -4px;
  color: #1a1a1a;
  margin: 2px 0 6px;
}
#cl-time .sep {
  color: #e63946;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: .15; } }

#cl-day { font-size: 1.05rem; font-weight: 600; color: #1a1a1a; margin-bottom: 3px; }
#cl-event { font-size: .8rem; color: #888; margin-bottom: 6px; }

#cl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.meta-pill {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: 3px 11px;
  font-size: .75rem;
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
}
.meta-pill a { color: #0057b8; font-size: .75rem; }
.meta-pill.dst { background: #fff8e1; border-color: #fcd34d; color: #92400e; }

/* ── FAV CITIES BAR ── */
#fav-bar {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.fav-item { padding: 4px 14px; border-right: 1px solid #f0f0f0; cursor: default; }
.fav-item:last-child { border-right: none; }
.fav-name { font-size: .75rem; color: #0057b8; display: block; }
.fav-time { font-size: .9rem; font-weight: 600; color: #1a1a1a; font-family: 'JetBrains Mono', monospace; display: block; }

/* ── DST AVISO ── */
#dst-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: .8rem;
  color: #92400e;
  display: none;
  line-height: 1.5;
}

/* ── SECTION HEADER ── */
.sec-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}
.sec-hd h2 { font-size: .95rem; font-weight: 600; color: #1a1a1a; }
.sec-hd span { font-size: .75rem; color: #999; }

/* ── BUSCA ── */
#srch-wrap { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
#srch {
  flex: 1;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: .85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fafafa;
  color: #1a1a1a;
}
#srch:focus { border-color: #0057b8; box-shadow: 0 0 0 3px #0057b820; background: #fff; }
#srch::placeholder { color: #bbb; }
#cnt { font-size: .75rem; color: #aaa; white-space: nowrap; }

/* ── REGIÃO ── */
.reg-hd {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  margin: 18px 0 8px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid #f5f5f5;
}

/* ── CARDS ── */
.cards-g {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 9px;
  margin-bottom: 4px;
}
.cc {
  border: 1.5px solid #f0f0f0;
  border-radius: 10px;
  padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  background: #fff;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.cc::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #e63946, #f4a261);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
  border-radius: 10px 10px 0 0;
}
.cc:hover { border-color: #ddd; box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.cc:hover::before { transform: scaleX(1); }
.cc.br { border-color: #d4edda; }
.cc.br::before { background: linear-gradient(90deg, #009c3b, #ffdf00); }

.cc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.cc-flag { font-size: 1.1rem; line-height: 1; }
.diff { font-size: .6rem; padding: 2px 6px; border-radius: 10px; font-weight: 500; letter-spacing: .3px; }
.diff.a { background: #d4edda; color: #155724; }
.diff.b { background: #f8d7da; color: #721c24; }
.diff.s { background: #fff3cd; color: #856404; }

.cc-name { font-size: .82rem; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-city { font-size: .65rem; color: #aaa; margin-bottom: 7px; letter-spacing: .3px; }
.cc-time { font-family: 'JetBrains Mono', monospace; font-size: 1.45rem; font-weight: 400; color: #1a1a1a; letter-spacing: -.5px; line-height: 1; }
.cc-date { font-size: .62rem; color: #bbb; margin-top: 3px; }

.dst-badge {
  font-size: .55rem;
  background: #fff3cd;
  color: #856404;
  border-radius: 4px;
  padding: 1px 4px;
  display: none;
}

/* ── SEO LINKS ── */
#seo-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid #f0f0f0; }
#seo-box p { font-size: .75rem; color: #aaa; margin-bottom: 6px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; }
#seo-links { font-size: .8rem; line-height: 2.2; }
#seo-links a { color: #0057b8; margin-right: 6px; white-space: nowrap; padding: 1px 4px; border-radius: 3px; }
#seo-links a:hover { background: #f0f7ff; text-decoration: none; }

/* ── FRASE DO DIA ── */
#quote { border-left: 3px solid #e63946; padding: 10px 14px; margin: 16px 0; background: #fafafa; border-radius: 0 6px 6px 0; }
#q-text { font-size: .88rem; color: #444; font-style: italic; line-height: 1.6; }
#q-auth { font-style: normal; font-size: .72rem; color: #aaa; margin-top: 5px; font-weight: 500; }

/* ── PAINÉIS GENÉRICOS ── */
.panel { border: 1.5px solid #f0f0f0; border-radius: 10px; padding: 16px; margin-bottom: 14px; background: #fff; }
.panel h3 { font-size: .88rem; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f5f5f5; }
.cf label { font-size: .72rem; font-weight: 500; color: #666; display: block; margin-bottom: 4px; }
.cf select,
.cf input[type="time"],
.cf input[type="datetime-local"] {
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: .8rem;
  font-family: 'Inter', sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  outline: none;
  transition: border-color .15s;
}
.cf select:focus, .cf input:focus { border-color: #0057b8; background: #fff; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.conv-res {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 300;
  color: #009c3b;
  padding: 10px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  margin-top: 8px;
  letter-spacing: -1px;
}

/* ── CONTAGEM REGRESSIVA ── */
.cd-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-u { text-align: center; background: #fafafa; border: 1.5px solid #f0f0f0; border-radius: 8px; padding: 12px 4px; }
.cd-n { font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 300; color: #1a1a1a; line-height: 1; }
.cd-l { font-size: .6rem; color: #aaa; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 4px; font-weight: 500; }

/* ── SEMANA ── */
#wk-big { font-family: 'JetBrains Mono', monospace; font-size: 5.5rem; font-weight: 300; color: #1a1a1a; letter-spacing: -3px; line-height: 1; text-align: center; padding: 10px 0; }
#wk-sub { font-size: .82rem; color: #888; text-align: center; margin-top: 6px; }

/* ── COMPARAR ── */
.cmp-g { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.cmp-c { text-align: center; background: #fafafa; border: 1.5px solid #f0f0f0; border-radius: 8px; padding: 14px 10px; }
.cmp-lbl { font-size: .72rem; color: #888; margin-bottom: 6px; font-weight: 500; }
.cmp-t { font-family: 'JetBrains Mono', monospace; font-size: 1.9rem; font-weight: 300; color: #1a1a1a; letter-spacing: -1px; }
.cmp-off { font-size: .68rem; color: #bbb; margin-top: 4px; }

/* ── FUSOS DO BRASIL ── */
.bz { background: #fafafa; border: 1.5px solid #f0f0f0; border-radius: 8px; padding: 10px 13px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; }
.bz-name { font-size: .75rem; font-weight: 600; color: #333; margin-bottom: 1px; }
.bz-states { font-size: .65rem; color: #aaa; }
.bz-time { font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 300; color: #1a1a1a; letter-spacing: -1px; }

/* ── SIDEBAR ── */
#aside-ad {
  border: 1px dashed #e8e8e8;
  border-radius: 8px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: .65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  background: #fafafa;
  margin-bottom: 16px;
}
#tools-box { border: 1.5px solid #f0f0f0; border-radius: 10px; overflow: hidden; }
#tools-box .tb-hd { font-size: .68rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #aaa; padding: 10px 14px; background: #fafafa; border-bottom: 1px solid #f0f0f0; }
#tools-box ul { list-style: none; }
#tools-box ul li a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .8rem; color: #444; border-bottom: 1px solid #f9f9f9; transition: background .12s, color .12s; }
#tools-box ul li a:hover { background: #f5f5f5; color: #1a1a1a; text-decoration: none; }
#tools-box ul li a.on { color: #e63946; font-weight: 500; background: #fff8f8; }
#tools-box ul li a .ico { font-size: .85rem; width: 18px; text-align: center; }

/* ── FOOTER ── */
footer { border-top: 2px solid #f0f0f0; padding: 20px; max-width: 1040px; margin: 0 auto; font-size: .75rem; color: #999; }
.ft-links { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 10px; }
.ft-links a { color: #0057b8; padding: 3px 10px; border-right: 1px solid #e8e8e8; }
.ft-links a:last-child { border-right: none; }
.ft-copy { color: #bbb; font-size: .72rem; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  #wrap { flex-direction: column; gap: 0; padding: 0 14px; }
  #aside { width: 100%; padding: 0 0 20px; }
  #aside-ad { min-height: 100px; }
  #cl-time { font-size: 19vw; }
  .cards-g { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  #fav-bar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
}
