/* ============================================================
   Casa de Carne Portal do Sabor - Painel de TV (board.css)
   Tema azul escuro (mantido do layout original). Todas as
   medidas em "em" relativas ao font-size da .tv-board, para o
   auto-ajuste (board.js) escalar tudo de forma proporcional e
   SEMPRE caber na tela, com qualquer quantidade de itens.
   ============================================================ */

:root {
  --bg:      #071a3b;
  --bg2:     #0b2148;
  --bg3:     #061532;
  --text:    #ffffff;
  --muted:   rgba(255,255,255,.90);
  --line:    rgba(255,255,255,.38);
  --dots:    rgba(255,255,255,.86);
  --shadow:  rgba(0,0,0,.32);
}

* { box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
}

body { cursor: none; }

.tv-board {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: clamp(14px, 1.8vh, 30px) clamp(30px, 4vw, 90px) clamp(20px, 2.6vh, 44px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: .4em;
  background:
    radial-gradient(circle at 50% -10%, rgba(58,108,172,.35) 0%, rgba(7,26,59,0) 46%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 48%, var(--bg3) 100%);
  /* unidade-base; board.js reescreve este font-size para caber na tela */
  font-size: clamp(20px, 2.5vw, 52px);
  line-height: 1;
}

.top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: .35em;
}

h1 {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 2.35em;
  line-height: .95;
  letter-spacing: .045em;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 6px 12px var(--shadow);
  white-space: nowrap;
}

.body {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1em;
}

.section { display: flex; flex-direction: column; }

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1em;
  margin: .1em 0 .7em;
}

.section-title::before,
.section-title::after {
  content: "";
  height: .06em;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.section-title span {
  font-size: 1.65em;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-shadow: 0 5px 10px var(--shadow);
  white-space: nowrap;
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 2.2em;
  align-content: start;
}

/* Se a seção tiver 1 coluna só (marcada via classe), ocupa largura toda */
.cols.uma { grid-template-columns: 1fr; }

.col { display: grid; gap: .55em; align-content: start; }

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: .5em;
  font-weight: 900;
  text-shadow: 0 3px 7px var(--shadow);
}

.item {
  font-size: 1em;
  line-height: 1.02;
  white-space: nowrap;
  color: var(--muted);
}

.leader {
  position: relative;
  height: .72em;
  min-width: 1.2em;
  border-bottom: .14em dotted var(--dots);
  transform: translateY(-.14em);
  opacity: .95;
}

.price {
  font-size: 1.03em;
  line-height: 1.02;
  white-space: nowrap;
  color: var(--text);
  text-align: right;
}

/* Indicador discreto de "sem conexão" (some quando online) */
.status-dot {
  position: fixed;
  left: 14px;
  bottom: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0483d;
  box-shadow: 0 0 10px rgba(224,72,61,.85);
  opacity: 0;
  transition: opacity .4s ease;
  z-index: 5;
  pointer-events: none;
}
body.offline .status-dot { opacity: .9; }

/* Dica de tela cheia (aparece só nos primeiros segundos) */
.fullscreen-tip {
  position: fixed;
  right: 16px;
  bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.28);
  color: rgba(255,255,255,.62);
  font-size: 13px;
  letter-spacing: .04em;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 5;
}
body.show-tip .fullscreen-tip { opacity: 1; }
