@charset "UTF-8";

:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #fff;
  background: #101010;
  font-synthesis: none;
  --yellow: #ffeb00;
  --blue: #003aff;
  --deep-blue: #00126f;
  --ink: #112566;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; min-height: 100svh; padding: 24px 12px; background: #101010; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #f79500; outline-offset: 3px; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

.app-shell {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 2px 9px 7px;
  background: linear-gradient(90deg, #ffdf00, #fff900 48%, #ffdf00);
  border: 2px solid #fff55c;
  border-radius: 23px;
  box-shadow: 0 0 0 2px #060606, inset 0 0 7px 1px #fff9;
}

/* IA acima da TV: cartão funcional (abre o guia da IA). */
.header { margin: 0 -5px 2px; }
.ai-banner { display: block; width: 100%; padding: 0; background: transparent; border-radius: 17px; text-align: left; }
.ai-card { display: flex; align-items: center; gap: 4px; padding: 4px 2px 2px; color: #0a2a9e; }
.ai-robot { padding: 0; background: transparent; border-radius: 20px; }
.ai-robot { flex: none; width: 27cqw; max-width: 108px; filter: drop-shadow(0 2px 2px #9a7400aa); animation: robo-aceno 3s ease-in-out infinite; transform-origin: 50% 90%; }
.ai-robot svg { display: block; width: 100%; height: auto; stroke: none; fill: none; overflow: visible; }
@keyframes robo-aceno { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-2px); } }
.ai-divider { flex: none; align-self: stretch; width: 6px; margin: 6px 2px; background: linear-gradient(#fff6a0, #e0a800); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); filter: drop-shadow(0 0 2px #fff); }
.ai-copy { display: flex; flex: 1; flex-direction: column; align-items: stretch; min-width: 0; }
.ai-copy strong { display: block; text-align: center; font-family: 'Arial Black', 'Arial Narrow', Arial, sans-serif; font-size: clamp(21px, 8.4cqw, 33px); font-weight: 900; line-height: 1; letter-spacing: -1px; white-space: nowrap; }
.ai-t1 { color: #0a2a9e; text-shadow: 0 1px 0 #fff9; }
.ai-t2 { color: #ffe000; -webkit-text-stroke: 2px #0a2a9e; paint-order: stroke fill; text-shadow: 0 2px 1px #0a2a9e88; }
.ai-copy small { display: block; margin: 2px 4px 6px; padding-bottom: 3px; border-bottom: 2px solid #0a2a9e; text-align: center; color: #0a2a9e; font-size: clamp(14px, 5.2cqw, 19px); font-style: italic; font-weight: 800; letter-spacing: -.3px; }
.ai-search { display: flex; align-items: center; gap: 6px; height: clamp(34px, 11cqw, 42px); padding: 0 4px 0 10px; border: 2px solid #fff; border-radius: 999px; background: linear-gradient(180deg, #2f5bff 0%, #0a2bd0 35%, #061b8f 100%); box-shadow: 0 0 0 1px #36d8ff, 0 0 6px 1px #00b8ff, 0 2px 3px #a26e00, inset 0 2px 2px #ffffff80; }
.ai-wave svg { width: 20px; height: 20px; stroke: #ffe000; stroke-width: 2.4; }
.ai-input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; font-style: italic; font-weight: 700; text-shadow: 0 1px 2px #00001c; }
.ai-input::placeholder { color: #fff; opacity: 1; }
.ai-input:focus, .ai-input:focus-visible { outline: none; box-shadow: none; }
.ai-mic, .ai-send { display: grid; place-items: center; flex: none; width: clamp(28px, 8.5cqw, 32px); height: clamp(28px, 8.5cqw, 32px); padding: 0; border: 2px solid #fff; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4aa8ff, #0039d6); box-shadow: 0 0 6px #36d8ff; }
.ai-mic svg, .ai-send svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.2; }
.ai-send { display: none; background: radial-gradient(circle at 35% 30%, #fff86b, #ffc400); }
.ai-send svg { stroke: #0a2a9e; }
.ai-search.has-text .ai-send { display: grid; }
.ai-search.has-text .ai-mic { display: none; }
.ai-search.is-listening .ai-mic { background: radial-gradient(circle at 35% 30%, #ff7a7a, #d60000); animation: mic-pulso 1s ease-in-out infinite; }
@keyframes mic-pulso { 50% { box-shadow: 0 0 0 6px #ff3b3b55; } }

/* Conversa com a IA, na própria tela inicial */
.ai-chat { margin: 8px 3px 2px; border: 2px solid #fff; border-radius: 18px; background: #ffffffee; box-shadow: 0 0 0 1px #36d8ff, 0 0 6px 1px #00b8ff, 0 3px 6px #a26e0088; overflow: hidden; }
.ai-chat[hidden] { display: none; }
.ai-chat-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; background: linear-gradient(180deg, #2f5bff, #061b8f); color: #fff; font-size: 14px; font-weight: 800; }
.ai-chat-close { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: #ffffff26; }
.ai-chat-close svg { width: 18px; height: 18px; stroke: #fff; }
.ai-messages { display: flex; flex-direction: column; gap: 8px; max-height: 38svh; overflow-y: auto; padding: 10px; }
.ai-bubble { max-width: 88%; align-self: flex-start; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #e8f0ff; color: #0a1d5e; font-size: 15px; line-height: 1.35; white-space: pre-wrap; }
.ai-bubble.is-user { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, #2f5bff, #0a2bd0); color: #fff; }
.ai-bubble.is-typing { color: #5b6b9a; animation: digitando 1s ease-in-out infinite; }
@keyframes digitando { 50% { opacity: .4; } }
.ai-bubble .solid-button { display: inline-flex; margin-top: 8px; padding: 7px 12px; border-radius: 999px; background: #0a2bd0; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.ai-chat-note { margin: 0; padding: 0 12px 8px; color: #55617f; font-size: 11px; }
.ai-banner:hover { filter: brightness(1.025); }
.home-grid { display: flex; flex: 1; flex-direction: column; justify-content: space-evenly; gap: 16px; padding: 10px 0 4px; }
main { display: flex; flex: 1; flex-direction: column; }
.app-shell { display: flex; flex-direction: column; min-height: calc(100svh - 48px); }
.tv-section { margin: 0 -5px; }

/* TV da Barra: visor escuro com vídeo, no mesmo padrão da TV do Bioervas. */
/* Moldura cromada em formato de TV antiga: cantos bem redondos e laterais abauladas. */
.television {
  position: relative;
  width: 100%;
  padding: 3.2cqw;
  border-radius: 24% / 38%;
  background: linear-gradient(160deg, #ffffff 0%, #b9bec6 18%, #f7f7f7 36%, #7d838c 58%, #e9ebee 78%, #8e949c 100%);
  box-shadow: 0 0 0 2px #151515, inset 0 0 0 2px #ffffffcc, inset 0 -3px 6px #0006, 0 5px 10px #0007;
}
.tv-visor {
  position: relative;
  aspect-ratio: 286 / 160;
  overflow: hidden;
  border-radius: 21% / 36%;
  border: 3px solid #1a1a1a;
  background: #02040a url('/assets/praia.jpg') center / cover no-repeat;
  box-shadow: inset 0 0 18px #000a;
}
.tv-visor::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; background: radial-gradient(ellipse 55% 45% at 12% 8%, #ffffff8c, #ffffff00 70%), linear-gradient(180deg, #ffffff1a, #ffffff00 40%); }
.tv-media { position: absolute; inset: 0; overflow: hidden; background: transparent; }
/* O vídeo do YouTube fica ampliado para cortar o título (em cima) e a marca (embaixo). */
.tv-media iframe { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; border: 0; transform: translate(-50%, -50%) scale(1.42); pointer-events: none; }
.tv-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tv-visor.is-playing .tv-media { background: #000; }
/* Cortina com a foto até o vídeo começar de verdade (esconde carregamento e botões do YouTube). */
.tv-media::after { content: ''; position: absolute; inset: 0; z-index: 1; background: #02040a url('/assets/praia.jpg') center / cover no-repeat; transition: opacity .6s .4s; pointer-events: none; }
.tv-media.is-ready::after { opacity: 0; }
.tv-ctrl { position: absolute; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #0b2a7acc; color: #fff; font-size: 16px; line-height: 1; box-shadow: 0 2px 6px #0007; }
.tv-ctrl[hidden] { display: none; }
.tv-sound { bottom: 10%; right: 7%; }
.tv-prev, .tv-next { top: 50%; transform: translateY(-50%); font-size: 26px; padding-bottom: 3px; }
.tv-prev { left: 4%; }
.tv-next { right: 4%; }
.tv-visor.is-playing .tv-play { display: none; }
.tv-live { position: absolute; top: 9%; right: 7%; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: #ff1f1f; box-shadow: 0 0 8px #ff2a2a, inset 0 -2px 2px #0004; }
.tv-play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  display: grid; place-items: center;
  width: clamp(54px, 19cqw, 72px); height: clamp(54px, 19cqw, 72px); padding: 0;
  transform: translate(-50%, -50%);
  border: 4px solid #fff; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3b6fd6cc, #0b2a7acc);
  box-shadow: 0 2px 10px #0008;
  backdrop-filter: blur(2px);
}
.tv-play svg { width: 45%; height: 45%; fill: #fff; stroke: #fff; stroke-width: 1.5; margin-left: 8%; }
.tv-play:focus-visible { outline-offset: 4px; }
.television:hover { filter: brightness(1.035); }
.actions-section { padding: 0 1px; }
.primary-actions { display: flex; flex-direction: column; gap: 8px; }
.action-card {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: clamp(50px, 17cqw, 64px);
  padding: 2px 13px 3px 18px;
  gap: 10px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #83edff 0%, #0086ff 7%, #003dff 20%, #001ac0 41%, #000b70 61%, #00065c 77%, #0018a2 100%);
  box-shadow: 0 0 0 1px #36d8ff, 0 0 5px 2px #00b8ff, 0 3px 4px #a26e00, inset 0 2px 2px #ffffffc9, inset 0 -2px 3px #000435;
  text-align: left;
}
.action-card::before { content: ''; position: absolute; top: 3px; left: 13px; right: 13px; height: 38%; border-radius: 99px 99px 40% 40%; background: linear-gradient(#ffffff23, #ffffff00); pointer-events: none; }
.action-card:hover { filter: brightness(1.15); }
.action-card:active { filter: brightness(.94); transform: translateY(1px); }
.action-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 24cqw; max-width: 89px; height: 100%; flex-shrink: 0; color: #fff; filter: drop-shadow(0 1px 1px #00001f); }
.action-icon > svg { width: 90%; height: 95%; max-height: 51px; stroke-width: 1.9; }
.action-separator { display: block; flex-shrink: 0; width: 5px; height: 75%; background: #ffe000; clip-path: polygon(50% 0, 100% 48%, 50% 100%, 0 48%); filter: drop-shadow(0 0 3px #fffa00); }
.action-copy { position: relative; display: flex; flex: 1; min-width: 0; align-items: center; }
.action-copy > strong { color: #fff; font-family: 'Arial Narrow', 'Roboto Condensed', Arial, sans-serif; font-size: clamp(25px, 10.1cqw, 38px); line-height: 1; font-weight: 900; letter-spacing: -.7px; white-space: nowrap; text-shadow: 1px 2px 1px #000, 0 0 2px #000; }
.location-divider { display: flex; align-items: center; justify-content: center; gap: 7px; height: 10.4cqw; max-height: 39px; min-height: 29px; padding: 0 3px; }
.location-divider > span { flex: 1; height: 3px; background: #f52200; border-radius: 5px; box-shadow: 0 1px 2px #fff; }
.location-divider p { margin: 0; white-space: nowrap; color: #001476; font-family: 'Arial Narrow', Arial, sans-serif; font-size: clamp(16px, 6cqw, 23px); font-weight: 800; letter-spacing: -1px; text-shadow: 0 1px 0 #fff9; }

.bottom-nav {
  display: flex;
  justify-content: space-around;
  position: relative;
  width: calc(100% + 12px);
  height: clamp(54px, 18cqw, 69px);
  margin: 22px -6px 0;
  padding: 5px 2px 4px;
  border: 2px solid #ffffb6;
  border-radius: 28px 28px 13px 13px;
  background: linear-gradient(180deg, #82e8ff 0%, #0964ff 9%, #001ef9 23%, #00076e 60%, #000447 100%);
  box-shadow: inset 0 2px 3px #fff8, 0 0 3px #ffffe6, 0 2px 3px #aa8100;
}
.nav-item { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border-radius: 6px; background: transparent; color: #fff; font-family: 'Arial Narrow', Arial, sans-serif; font-size: clamp(12px, 4cqw, 15px); font-weight: 600; text-shadow: 0 1px 2px #00001c; }
.nav-item svg { width: clamp(23px, 8cqw, 29px); height: clamp(23px, 8cqw, 29px); stroke-width: 2; filter: drop-shadow(0 1px 1px #00001a); }
.nav-item.is-active { color: #ffff00; }
.nav-item.is-active svg { fill: #ffff00; stroke-width: 1.3; }
.nav-item:hover { background: #93c9ff1f; }
.nav-item.is-active::after { content: ''; position: absolute; bottom: 2px; height: 2px; width: 15%; border-radius: 10px; background: #ffff00; box-shadow: 0 0 3px #ffff00; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.panel-feedback:empty { display: none; }
.panel-feedback { padding: 12px 15px; border-radius: 10px; background: #fff4aa; color: #112566; font-size: 14px; text-align: center; margin: 15px 0 0; }

@media (max-width: 420px) {
  :root, body { background: #ffeb00; }
  body { padding: 0; }
  .app-shell { max-width: 390px; min-height: 100svh; border: 0; box-shadow: none; border-radius: 0; padding: 8px 10px max(9px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .action-card { padding-left: 12px; padding-right: 9px; gap: 7px; }
  .bottom-nav { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
