/* =============================================
   ELEVADOR TV - STYLESHEET
   Layout otimizado para TV 1920x1080
   ============================================= */

/* Reset e Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Kiosk: sem cursor, sem seleção de texto */
  cursor: none !important;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Cores principais */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a28;
  --bg-card-hover: #222236;
  --border-color: rgba(255, 255, 255, 0.06);
  --text-primary: #f0f0f5;
  --text-secondary: #9898b0;
  --text-muted: #5a5a70;
  --accent: #6366f1;
  --accent-glow: rgba(99, 102, 241, 0.3);
  --accent-secondary: #818cf8;
  --gradient-warm: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-cool: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-sky: linear-gradient(135deg, #06b6d4, #3b82f6);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
}

html, body {
  /* Ocupa 100% da viewport da TV — sem scroll, sem overflow */
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    var(--bg-primary);
}

/* =============================================
   APP CONTAINER
   ============================================= */
#app {
  /* Layout fixo 1920×1080 — o JS aplica transform:scale() proporcional */
  width: 1920px;
  height: 1080px;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transform-origin: top left;
  position: absolute;
  top: 0;
  left: 0;
  /* GPU compositing — essencial para kiosk 24h sem jank */
  will-change: transform;
  /* Oculto até o JS aplicar a escala correta — evita flash 1920px em TVs 32" */
  opacity: 0;
}

/* =============================================
   HEADER
   ============================================= */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  height: 72px;
  background: rgba(18, 18, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo svg {
  width: 48px;
  height: 48px;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
  background: linear-gradient(135deg, #FFE082, #D4A012, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #8BA4C8;
  text-transform: uppercase;
  line-height: 1;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.header-date {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.header-clock {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
}

/* =============================================
   MAIN CONTENT
   ============================================= */
#main-content {
  display: flex;
  gap: 24px;
  padding: 20px 40px;
  flex: 1;
  min-height: 0;
}

/* =============================================
   SECTION LABELS
   ============================================= */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.section-label svg {
  opacity: 0.6;
}

.section-label-small {
  font-size: 11px;
  margin-bottom: 12px;
}

/* =============================================
   NEWS SECTION
   ============================================= */
#news-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.news-dots {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.news-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.news-dot.active {
  opacity: 1;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  width: 24px;
  border-radius: 4px;
}

.news-slider {
  display: flex;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

/* Notícia principal */
.news-card-main {
  flex: 1.6;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.news-image-container {
  position: relative;
  height: 60%;
  overflow: hidden;
  flex-shrink: 0;
}

.news-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.news-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-card));
  pointer-events: none;
}

.news-source {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.news-content {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.news-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Notícias secundárias */
.news-secondary {
  flex: 0.8;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-card-small {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  gap: 14px;
  transition: background 0.3s ease;
}

.news-card-small img {
  width: 130px;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.news-card-small-content {
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-width: 0;
}

.news-source-small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-secondary);
}

.news-card-small h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   WEATHER SECTION — iOS 17 PREMIUM MULTI-LAYER
   ============================================= */
#weather-section {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.weather-current {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  background: #0a1628;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transition: border-color 1.8s ease, box-shadow 1.8s ease;
}

/* ---- Container de fundo (5 camadas + partículas) ---- */
.weather-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Layer 1: Gradiente base — define o tom principal do céu */
.weather-bg__layer1 {
  position: absolute;
  inset: 0;
  transition: background 1.8s ease;
  background: linear-gradient(170deg, #1e3a5f 0%, #152e4a 30%, #0f2847 60%, #0a1628 100%);
}

/* Layer 2: Orbe radial primário — grande, cria profundidade atmosférica */
.weather-bg__layer2 {
  position: absolute;
  inset: -60%;
  width: 220%;
  height: 220%;
  transition: background 1.8s ease;
  background: radial-gradient(ellipse at 30% 20%, rgba(100, 160, 255, 0.12) 0%, transparent 55%);
  animation: wb-orb1 18s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

/* Layer 3: Orbe secundário — contra-movimento para fluidez orgânica */
.weather-bg__layer3 {
  position: absolute;
  inset: -40%;
  width: 180%;
  height: 180%;
  transition: background 1.8s ease;
  background: radial-gradient(ellipse at 70% 80%, rgba(60, 120, 220, 0.1) 0%, transparent 50%);
  animation: wb-orb2 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
}

/* Layer 4: Glow ambiente — halo luminoso condicional (sol, lua, etc) */
.weather-bg__glow {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -80%;
  left: -50%;
  transition: background 1.8s ease, opacity 1.8s ease;
  background: radial-gradient(ellipse at 50% 30%, rgba(100, 170, 255, 0.06) 0%, transparent 50%);
  animation: wb-glow 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
  opacity: 0.5;
}

/* Layer 5: Haze — névoa atmosférica para profundidade */
.weather-bg__haze {
  position: absolute;
  inset: 0;
  transition: background 1.8s ease, opacity 1.8s ease;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.01) 0%,
    rgba(100, 150, 220, 0.03) 40%,
    rgba(50, 80, 140, 0.02) 70%,
    transparent 100%
  );
  opacity: 0.4;
  animation: wb-haze 30s ease-in-out infinite alternate;
  will-change: opacity;
}

/* Overlay de legibilidade + vinheta suave */
.weather-bg__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

/* Container de partículas */
.weather-bg__particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---- Animações dos orbes (transform/opacity only — GPU accelerated) ---- */
@keyframes wb-orb1 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
  25%  { transform: translate(6%, 4%) scale(1.06) rotate(1deg); opacity: 0.85; }
  50%  { transform: translate(10%, 8%) scale(1.1) rotate(-0.5deg); opacity: 0.95; }
  75%  { transform: translate(-2%, 6%) scale(1.03) rotate(0.5deg); opacity: 0.8; }
  100% { transform: translate(4%, -2%) scale(0.96) rotate(-1deg); opacity: 0.65; }
}

@keyframes wb-orb2 {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.6; }
  25%  { transform: translate(-5%, -3%) scale(1.04) rotate(-1deg); opacity: 0.75; }
  50%  { transform: translate(-8%, -6%) scale(1.08) rotate(0.5deg); opacity: 0.85; }
  75%  { transform: translate(3%, -4%) scale(1.02) rotate(-0.5deg); opacity: 0.7; }
  100% { transform: translate(-2%, 4%) scale(1.12) rotate(1deg); opacity: 0.55; }
}

@keyframes wb-glow {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.4; }
  33%  { transform: translate(3%, 2%) scale(1.05); opacity: 0.6; }
  66%  { transform: translate(-2%, 4%) scale(0.98); opacity: 0.5; }
  100% { transform: translate(1%, -1%) scale(1.02); opacity: 0.35; }
}

@keyframes wb-haze {
  0%   { opacity: 0.3; }
  50%  { opacity: 0.6; }
  100% { opacity: 0.35; }
}

/* ---- TEMAS POR CONDIÇÃO CLIMÁTICA ---- */

/* === Clear (Ensolarado) === */
.weather-theme-clear .weather-bg__layer1 {
  background: linear-gradient(170deg, #56b0f0 0%, #3d8cd8 25%, #2d72c2 50%, #1a55a0 75%, #0e3b78 100%);
}
.weather-theme-clear .weather-bg__layer2 {
  background: radial-gradient(ellipse at 25% 12%, rgba(255, 220, 80, 0.25) 0%, rgba(255, 180, 40, 0.08) 30%, transparent 60%);
}
.weather-theme-clear .weather-bg__layer3 {
  background: radial-gradient(ellipse at 75% 85%, rgba(40, 140, 240, 0.18) 0%, rgba(20, 80, 180, 0.06) 40%, transparent 55%);
}
.weather-theme-clear .weather-bg__glow {
  background: radial-gradient(ellipse at 35% 15%, rgba(255, 230, 100, 0.15) 0%, rgba(255, 200, 60, 0.04) 40%, transparent 60%);
  opacity: 0.8;
}
.weather-theme-clear .weather-bg__haze {
  background: linear-gradient(180deg, rgba(255, 245, 200, 0.04) 0%, rgba(100, 180, 255, 0.03) 50%, transparent 100%);
}
.weather-theme-clear {
  border-color: rgba(120, 195, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 60px rgba(80, 160, 255, 0.06) inset;
}

/* === Partly Cloudy (Parcialmente Nublado) === */
.weather-theme-partly-cloudy .weather-bg__layer1 {
  background: linear-gradient(170deg, #6090b8 0%, #4a78a0 25%, #3d6890 50%, #2a506e 75%, #1a3550 100%);
}
.weather-theme-partly-cloudy .weather-bg__layer2 {
  background: radial-gradient(ellipse at 28% 22%, rgba(200, 215, 245, 0.14) 0%, transparent 55%);
}
.weather-theme-partly-cloudy .weather-bg__layer3 {
  background: radial-gradient(ellipse at 65% 75%, rgba(80, 130, 200, 0.12) 0%, transparent 50%);
}
.weather-theme-partly-cloudy .weather-bg__glow {
  background: radial-gradient(ellipse at 30% 18%, rgba(220, 210, 160, 0.08) 0%, transparent 50%);
  opacity: 0.5;
}

/* === Cloudy (Nublado) === */
.weather-theme-cloudy .weather-bg__layer1 {
  background: linear-gradient(170deg, #626a7c 0%, #515968 25%, #454d5c 50%, #353c4a 75%, #252a36 100%);
}
.weather-theme-cloudy .weather-bg__layer2 {
  background: radial-gradient(ellipse at 35% 30%, rgba(160, 175, 200, 0.12) 0%, transparent 55%);
  animation-duration: 24s;
}
.weather-theme-cloudy .weather-bg__layer3 {
  background: radial-gradient(ellipse at 60% 70%, rgba(110, 125, 155, 0.1) 0%, transparent 50%);
  animation-duration: 28s;
}
.weather-theme-cloudy .weather-bg__glow {
  background: radial-gradient(ellipse at 50% 30%, rgba(140, 155, 180, 0.06) 0%, transparent 50%);
  opacity: 0.3;
}
.weather-theme-cloudy .weather-bg__haze {
  background: linear-gradient(180deg, rgba(150, 165, 190, 0.04) 0%, rgba(100, 110, 130, 0.02) 60%, transparent 100%);
  opacity: 0.6;
}

/* === Fog (Neblina) === */
.weather-theme-fog .weather-bg__layer1 {
  background: linear-gradient(170deg, #6e7a8a 0%, #596575 25%, #4c5564 50%, #3a424f 75%, #252c38 100%);
}
.weather-theme-fog .weather-bg__layer2 {
  background: radial-gradient(ellipse at 40% 40%, rgba(190, 200, 220, 0.18) 0%, transparent 60%);
  animation-duration: 30s;
}
.weather-theme-fog .weather-bg__layer3 {
  background: radial-gradient(ellipse at 55% 55%, rgba(170, 180, 200, 0.14) 0%, transparent 55%);
  animation-duration: 35s;
}
.weather-theme-fog .weather-bg__glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(180, 190, 210, 0.1) 0%, transparent 55%);
  opacity: 0.6;
}
.weather-theme-fog .weather-bg__haze {
  background: linear-gradient(180deg, rgba(200, 210, 230, 0.06) 0%, rgba(160, 170, 190, 0.05) 50%, rgba(120, 130, 150, 0.03) 100%);
  opacity: 0.9;
}

/* === Drizzle (Garoa) === */
.weather-theme-drizzle .weather-bg__layer1 {
  background: linear-gradient(170deg, #436a8c 0%, #355a7a 25%, #2a4a6a 50%, #1d3652 75%, #0f2238 100%);
}
.weather-theme-drizzle .weather-bg__layer2 {
  background: radial-gradient(ellipse at 22% 18%, rgba(100, 155, 230, 0.14) 0%, transparent 55%);
}
.weather-theme-drizzle .weather-bg__layer3 {
  background: radial-gradient(ellipse at 72% 82%, rgba(65, 110, 190, 0.12) 0%, transparent 50%);
}
.weather-theme-drizzle .weather-bg__haze {
  background: linear-gradient(180deg, rgba(100, 140, 200, 0.03) 0%, rgba(60, 90, 150, 0.02) 100%);
  opacity: 0.5;
}

/* === Rain (Chuva) === */
.weather-theme-rain .weather-bg__layer1 {
  background: linear-gradient(170deg, #345874 0%, #284860 25%, #1e3654 50%, #152840 75%, #0c1a2e 100%);
}
.weather-theme-rain .weather-bg__layer2 {
  background: radial-gradient(ellipse at 18% 12%, rgba(70, 140, 220, 0.16) 0%, transparent 55%);
  animation-duration: 14s;
}
.weather-theme-rain .weather-bg__layer3 {
  background: radial-gradient(ellipse at 78% 82%, rgba(40, 90, 175, 0.14) 0%, transparent 50%);
  animation-duration: 18s;
}
.weather-theme-rain .weather-bg__glow {
  background: radial-gradient(ellipse at 50% 10%, rgba(60, 120, 200, 0.06) 0%, transparent 50%);
  opacity: 0.3;
}
.weather-theme-rain .weather-bg__haze {
  background: linear-gradient(180deg, rgba(60, 100, 170, 0.04) 0%, rgba(30, 60, 120, 0.03) 100%);
  opacity: 0.6;
}

/* === Heavy Rain (Chuva Forte) === */
.weather-theme-heavy-rain .weather-bg__layer1 {
  background: linear-gradient(170deg, #253e55 0%, #1c3244 25%, #152738 50%, #0e1c2c 75%, #080f1a 100%);
}
.weather-theme-heavy-rain .weather-bg__layer2 {
  background: radial-gradient(ellipse at 15% 8%, rgba(50, 110, 195, 0.15) 0%, transparent 50%);
  animation-duration: 11s;
}
.weather-theme-heavy-rain .weather-bg__layer3 {
  background: radial-gradient(ellipse at 82% 88%, rgba(30, 70, 140, 0.12) 0%, transparent 45%);
  animation-duration: 14s;
}
.weather-theme-heavy-rain .weather-bg__glow {
  background: radial-gradient(ellipse at 50% 5%, rgba(40, 90, 170, 0.05) 0%, transparent 45%);
  opacity: 0.2;
}

/* === Snow (Neve) === */
.weather-theme-snow .weather-bg__layer1 {
  background: linear-gradient(170deg, #8698b0 0%, #6e82a0 25%, #5a6e84 50%, #3f5168 75%, #2a3a50 100%);
}
.weather-theme-snow .weather-bg__layer2 {
  background: radial-gradient(ellipse at 28% 18%, rgba(210, 230, 255, 0.18) 0%, transparent 55%);
  animation-duration: 26s;
}
.weather-theme-snow .weather-bg__layer3 {
  background: radial-gradient(ellipse at 68% 78%, rgba(190, 210, 245, 0.12) 0%, transparent 50%);
  animation-duration: 30s;
}
.weather-theme-snow .weather-bg__glow {
  background: radial-gradient(ellipse at 50% 25%, rgba(200, 220, 255, 0.08) 0%, transparent 50%);
  opacity: 0.5;
}
.weather-theme-snow .weather-bg__haze {
  background: linear-gradient(180deg, rgba(220, 235, 255, 0.04) 0%, rgba(180, 200, 240, 0.03) 60%, transparent 100%);
  opacity: 0.7;
}
.weather-theme-snow { border-color: rgba(190, 210, 245, 0.18); }

/* === Storm (Tempestade) === */
.weather-theme-storm .weather-bg__layer1 {
  background: linear-gradient(170deg, #302546 0%, #261d3a 25%, #1e1530 50%, #140e22 75%, #0a0714 100%);
}
.weather-theme-storm .weather-bg__layer2 {
  background: radial-gradient(ellipse at 22% 18%, rgba(130, 90, 210, 0.16) 0%, transparent 50%);
  animation-duration: 9s;
}
.weather-theme-storm .weather-bg__layer3 {
  background: radial-gradient(ellipse at 72% 78%, rgba(90, 60, 165, 0.14) 0%, transparent 45%);
  animation-duration: 12s;
}
.weather-theme-storm .weather-bg__glow {
  background: radial-gradient(ellipse at 50% 20%, rgba(160, 100, 255, 0.06) 0%, transparent 45%);
  opacity: 0.3;
  animation-duration: 8s;
}
.weather-theme-storm {
  border-color: rgba(110, 75, 190, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 40px rgba(80, 40, 160, 0.04) inset;
}

/* === Night (Noite) === */
.weather-theme-night .weather-bg__layer1 {
  background: linear-gradient(170deg, #181840 0%, #121233 25%, #0e0e2a 50%, #08081e 75%, #030310 100%);
}
.weather-theme-night .weather-bg__layer2 {
  background: radial-gradient(ellipse at 32% 22%, rgba(90, 90, 195, 0.12) 0%, transparent 55%);
  animation-duration: 26s;
}
.weather-theme-night .weather-bg__layer3 {
  background: radial-gradient(ellipse at 62% 72%, rgba(70, 55, 155, 0.1) 0%, transparent 50%);
  animation-duration: 32s;
}
.weather-theme-night .weather-bg__glow {
  background: radial-gradient(ellipse at 70% 20%, rgba(180, 180, 255, 0.04) 0%, transparent 40%);
  opacity: 0.4;
  animation-duration: 20s;
}
.weather-theme-night .weather-bg__haze {
  background: linear-gradient(180deg, rgba(30, 30, 80, 0.03) 0%, rgba(10, 10, 40, 0.02) 100%);
  opacity: 0.3;
}
.weather-theme-night {
  border-color: rgba(90, 90, 175, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 50px rgba(50, 50, 130, 0.04) inset;
}

/* ---- Partículas: Gotas de chuva (anguladas, com brilho) ---- */
.weather-bg__particles .rain-drop {
  position: absolute;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, rgba(160, 210, 255, 0.6), rgba(120, 180, 255, 0.3));
  border-radius: 0 0 2px 2px;
  animation: wb-rain linear infinite;
  will-change: transform;
}

@keyframes wb-rain {
  0%   { transform: translateY(-20px) translateX(0); opacity: 0; }
  5%   { opacity: 0.9; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(600px) translateX(-8px); opacity: 0; }
}

/* Partículas: Brilho solar (motes flutuantes com glow) */
.weather-bg__particles .sun-mote {
  position: absolute;
  background: rgba(255, 235, 110, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 220, 80, 0.4), 0 0 12px rgba(255, 200, 50, 0.15);
  animation: wb-sun-float ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes wb-sun-float {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  12%  { opacity: 0.95; transform: scale(1.3); }
  40%  { opacity: 0.6; transform: translateY(-30px) scale(1); }
  70%  { opacity: 0.4; transform: translateY(-70px) scale(0.7); }
  100% { transform: translateY(-120px) scale(0); opacity: 0; }
}

/* Partículas: Neve (com drift lateral suave) */
.weather-bg__particles .snow-flake {
  position: absolute;
  background: rgba(225, 240, 255, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(200, 225, 255, 0.3);
  animation: wb-snow ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes wb-snow {
  0%   { transform: translateY(-10px) translateX(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 0.85; }
  25%  { transform: translateY(120px) translateX(15px) rotate(90deg); opacity: 0.7; }
  50%  { transform: translateY(250px) translateX(-10px) rotate(180deg); opacity: 0.55; }
  75%  { transform: translateY(380px) translateX(20px) rotate(270deg); opacity: 0.4; }
  100% { transform: translateY(520px) translateX(-5px) rotate(360deg); opacity: 0; }
}

/* Partículas: Relâmpago (flash duplo com afterglow) */
.weather-bg__particles .lightning {
  position: absolute;
  inset: 0;
  animation: wb-lightning ease-in-out infinite;
  will-change: opacity;
}

@keyframes wb-lightning {
  0%, 40%, 42.5%, 44%, 51%, 53.5%, 100% { opacity: 0; background: transparent; }
  41%   { opacity: 1;   background: rgba(220, 220, 255, 0.08); }
  42%   { opacity: 0.15; background: rgba(200, 200, 255, 0.03); }
  43%   { opacity: 0.7;  background: rgba(210, 210, 255, 0.06); }
  43.5% { opacity: 0;    background: transparent; }
  52%   { opacity: 0.5;  background: rgba(200, 200, 255, 0.04); }
  53%   { opacity: 0;    background: transparent; }
}

/* Partículas: Estrelas (noite) */
.weather-bg__particles .star {
  position: absolute;
  background: rgba(220, 225, 255, 0.9);
  border-radius: 50%;
  animation: wb-star ease-in-out infinite;
  will-change: opacity;
}

@keyframes wb-star {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.9; }
}

/* ---- Conteúdo acima do fundo ---- */
.weather-current > *:not(.weather-bg) {
  position: relative;
  z-index: 1;
}

/* ---- Textos otimizados para legibilidade ---- */
.weather-city {
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.weather-icon {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.forecast-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Override do SVG inline gerado pelo JS (tamanho fixo 40px no atributo) */
.forecast-icon svg {
  width: 54px;
  height: 54px;
}

.weather-temp {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.weather-condition {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: capitalize;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.weather-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.weather-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.weather-detail svg {
  opacity: 0.5;
  flex-shrink: 0;
}

.weather-detail span {
  flex: 1;
}

.weather-detail strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 15px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* =============================================
   FORECAST SECTION (FOOTER)
   ============================================= */
#forecast-section {
  padding: 14px 40px 12px;
  flex-shrink: 0;
}

.forecast-cards {
  display: flex;
  gap: 16px;
}

.forecast-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: background 1.5s ease, border-color 1.5s ease, box-shadow 1.5s ease;
}

/* =============================================
   FORECAST CARDS — FUNDO DINÂMICO ESTILO iOS
   Camadas: base gradient + orbe ::before
   Sem partículas para manter performance 24h
   ============================================= */

/* Todo conteúdo fica acima do fundo */
.forecast-card > * {
  position: relative;
  z-index: 1;
}

/* Orbe animado — cria profundidade atmosférica sutil */
.forecast-card::before {
  content: '';
  position: absolute;
  width: 220%;
  height: 280%;
  top: -90%;
  left: -30%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: background 1.5s ease, opacity 1.5s ease;
  animation: fc-orb 22s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform;
  background: transparent;
  /* Variação de vibrância por temperatura via JS (--fc-orb-opacity) */
  opacity: var(--fc-orb-opacity, 0.75);
}

@keyframes fc-orb {
  0%   { transform: translate(0,   0  ) scale(1);    }
  40%  { transform: translate(6%,  8% ) scale(1.06); }
  75%  { transform: translate(-4%, 4% ) scale(1.02); }
  100% { transform: translate(3%, -5% ) scale(0.95); }
}

/* Textos dos cards com tema dinâmico — legibilidade garantida */
.forecast-card[class*="weekly-"] .forecast-day,
.forecast-card[class*="weekly-"] .forecast-max {
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.30);
}
.forecast-card[class*="weekly-"] .forecast-min {
  color: rgba(255, 255, 255, 0.52);
}

/* ---- TEMAS POR CONDIÇÃO CLIMÁTICA ---- */

/* === Clear (Ensolarado) === */
.forecast-card.weekly-clear {
  background: linear-gradient(135deg, #2968b5 0%, #3a88d4 45%, #4e9de0 100%);
  border-color: rgba(120, 195, 255, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32), 0 0 28px rgba(80, 160, 255, 0.07) inset;
}
.forecast-card.weekly-clear::before {
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 218, 70, 0.32) 0%, rgba(255, 180, 30, 0.08) 40%, transparent 65%);
}

/* === Partly Cloudy (Parcialmente Nublado) === */
.forecast-card.weekly-partly-cloudy {
  background: linear-gradient(135deg, #3a6585 0%, #4a7898 45%, #537890 100%);
  border-color: rgba(155, 195, 225, 0.20);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}
.forecast-card.weekly-partly-cloudy::before {
  background: radial-gradient(ellipse at 25% 20%, rgba(200, 215, 245, 0.18) 0%, transparent 55%);
}

/* === Cloudy (Nublado) === */
.forecast-card.weekly-cloudy {
  background: linear-gradient(135deg, #434b5a 0%, #515968 45%, #5c6475 100%);
  border-color: rgba(140, 155, 175, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}
.forecast-card.weekly-cloudy::before {
  background: radial-gradient(ellipse at 35% 30%, rgba(160, 175, 200, 0.14) 0%, transparent 55%);
}

/* === Fog (Neblina) === */
.forecast-card.weekly-fog {
  background: linear-gradient(135deg, #4a5360 0%, #596475 45%, #636e7a 100%);
  border-color: rgba(170, 185, 200, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}
.forecast-card.weekly-fog::before {
  background: radial-gradient(ellipse at 40% 40%, rgba(190, 200, 220, 0.22) 0%, transparent 60%);
}

/* === Drizzle (Garoa) === */
.forecast-card.weekly-drizzle {
  background: linear-gradient(135deg, #284868 0%, #345a78 45%, #3f6888 100%);
  border-color: rgba(100, 155, 225, 0.18);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
}
.forecast-card.weekly-drizzle::before {
  background: radial-gradient(ellipse at 22% 18%, rgba(100, 160, 235, 0.16) 0%, transparent 55%);
}

/* === Rain (Chuva) === */
.forecast-card.weekly-rain {
  background: linear-gradient(135deg, #1c3452 0%, #274660 45%, #305870 100%);
  border-color: rgba(70, 140, 215, 0.20);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.forecast-card.weekly-rain::before {
  background: radial-gradient(ellipse at 18% 12%, rgba(70, 145, 225, 0.18) 0%, transparent 55%);
}

/* === Heavy Rain (Chuva Forte) === */
.forecast-card.weekly-heavy-rain {
  background: linear-gradient(135deg, #132536 0%, #1a3042 45%, #213c50 100%);
  border-color: rgba(50, 108, 190, 0.20);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.40);
}
.forecast-card.weekly-heavy-rain::before {
  background: radial-gradient(ellipse at 15% 8%, rgba(50, 115, 198, 0.17) 0%, transparent 50%);
}

/* === Snow (Neve) === */
.forecast-card.weekly-snow {
  background: linear-gradient(135deg, #587080 0%, #6c8098 45%, #7e92a8 100%);
  border-color: rgba(190, 210, 245, 0.20);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.30);
}
.forecast-card.weekly-snow::before {
  background: radial-gradient(ellipse at 28% 18%, rgba(215, 232, 255, 0.22) 0%, transparent 55%);
}

/* === Storm (Tempestade) === */
.forecast-card.weekly-storm {
  background: linear-gradient(135deg, #1c142e 0%, #24193a 45%, #2c2044 100%);
  border-color: rgba(108, 72, 188, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.42), 0 0 20px rgba(80, 38, 158, 0.05) inset;
}
.forecast-card.weekly-storm::before {
  background: radial-gradient(ellipse at 22% 18%, rgba(135, 92, 215, 0.18) 0%, transparent 50%);
}

/* === Night (Noite) === */
.forecast-card.weekly-night {
  background: linear-gradient(135deg, #0c0c28 0%, #111130 45%, #16163a 100%);
  border-color: rgba(90, 90, 172, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 22px rgba(48, 48, 128, 0.05) inset;
}
.forecast-card.weekly-night::before {
  background: radial-gradient(ellipse at 32% 22%, rgba(90, 90, 198, 0.14) 0%, transparent 55%);
}

/* ============================================= */

/* Descrição textual do clima em cada card da previsão */
.weekly-description {
  flex: 1;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* necessário para text-overflow funcionar em flex */
}

/* Nos cards com tema dinâmico, texto branco com sombra para legibilidade */
.forecast-card[class*="weekly-"] .weekly-description {
  color: rgba(255, 255, 255, 0.60);
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

.forecast-day {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 50px;
}

.forecast-temps {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-left: auto;
  text-align: right;
}

.forecast-max {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
}

.forecast-min {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}


/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.6; }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.slide-in {
  animation: slideIn 0.4s ease forwards;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-card) 25%,
    var(--bg-card-hover) 50%,
    var(--bg-card) 75%
  );
  background-size: 200% 100%;
  animation: pulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* Transição suave das notícias */
.news-transition-out {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.news-transition-in {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* =============================================
   PLACEHOLDER / FALLBACK
   ============================================= */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: var(--gradient-cool);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.4;
}

/* =============================================
   INFORMATIVO DO CONDOMÍNIO
   ============================================= */
#informativo-condominio {
  padding: 12px 40px 8px;
  flex-shrink: 0;
}

.info-cards-container {
  display: flex;
  gap: 16px;
}

.info-card {
  flex: 1;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  padding: 20px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Kiosk: sem interação por hover — removido transform */

/* Ícones dos cards — cada tipo com cor distinta */
.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Override do SVG inline do HTML (width="20" height="20") */
.info-card-icon svg {
  width: 26px;
  height: 26px;
}

.info-card-icon--assemb {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.info-card-icon--manut {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.info-card-icon--agua {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.info-card-icon--segur {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.info-card-icon--festa {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.info-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-card-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-secondary);
  letter-spacing: 0.3px;
}

.info-card-desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   INFORMATIVO — TEMA ÂMBAR FOSCO CORPORATIVO
   Escopo restrito a #informativo-condominio:
   não afeta Previsão, Parceiros, Clima nem
   qualquer outro componente .info-card.
   ============================================= */

/* Fundo âmbar fosco com gradiente de profundidade */
#informativo-condominio .info-card {
  background:
    /* Destaque diagonal sutil no canto superior — cria sensação de profundidade */
    linear-gradient(
      135deg,
      rgba(218, 172, 48, 0.06) 0%,
      transparent 45%
    ),
    /* Gradiente âmbar escuro base — fosco e corporativo */
    linear-gradient(
      160deg,
      rgba(66, 50, 12, 0.92) 0%,
      rgba(52, 38, 7,  0.95) 55%,
      rgba(40, 28, 4,  0.97) 100%
    );
  border-color: rgba(196, 152, 28, 0.24);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.30),
    /* Linha de brilho interno no topo — toque glassmorphism */
    inset 0 1px 0 rgba(220, 175, 50, 0.10);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Data/hora: tom ouro quente em vez do violeta padrão */
#informativo-condominio .info-card-date {
  color: rgba(210, 165, 44, 0.88);
}

/* Descrição: cinza quente (bege neutro) em vez do azulado frio */
#informativo-condominio .info-card-desc {
  color: rgba(178, 162, 122, 0.72);
}

/* Ícones: levemente mais quentes para harmonizar com o fundo âmbar */
#informativo-condominio .info-card-icon--assemb {
  background: rgba(110, 114, 255, 0.14);
}
#informativo-condominio .info-card-icon--manut {
  background: rgba(245, 158, 11, 0.20);
}
#informativo-condominio .info-card-icon--agua {
  background: rgba(6, 182, 212, 0.14);
}
#informativo-condominio .info-card-icon--segur {
  background: rgba(34, 197, 94, 0.14);
}
#informativo-condominio .info-card-icon--festa {
  background: rgba(239, 68, 68, 0.14);
}

/* =============================================
   PARCEIROS — SLIDER INFINITO
   ============================================= */
#parceiros {
  padding: 10px 40px 10px;
  flex-shrink: 0;
  overflow: hidden;
}

/* Container da faixa — esconde overflow horizontal */
.parceiros-track {
  display: flex;
  width: max-content;
  animation: parceiros-scroll 30s linear infinite;
}

/* Kiosk: animação nunca pausa (sem mouse na TV) */

/* Cada grupo de cards lado a lado */
.parceiros-slide {
  display: flex;
  gap: 26px;
  padding-right: 26px;
}

/* Card individual do parceiro */
.parceiro-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 15px 28px 15px 18px;
  min-width: 310px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.parceiro-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.parceiro-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  border-radius: 8px;
  overflow: hidden;
}

/* Aumenta logos — sobrescreve atributos width/height do HTML (40px) */
.parceiro-logo svg {
  width: 52px;
  height: 52px;
}

.parceiro-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.parceiro-nome {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.parceiro-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.parceiro-whatsapp svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Animação: desliza 50% (metade = grupo original) e reinicia sem salto */
@keyframes parceiros-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Fade suave nas bordas para efeito de profundidade */
#parceiros::before,
#parceiros::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

#parceiros {
  position: relative;
}

#parceiros::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

#parceiros::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}
