/* ═══════════════════════════════════════
   TBS — Assistente IA
   Estilos exclusivos da página IA
═══════════════════════════════════════ */

/* ─── LAYOUT ─── */
.ia-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

/* ─── HERO ─── */
.ia-hero {
  border-radius: 22px;
  background: linear-gradient(135deg, #1e0a42 0%, #100528 60%, #070215 100%);
  border: 1px solid rgba(196,181,253,0.22);
  padding: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 0 80px rgba(109,40,217,0.15), inset 0 1px 0 rgba(196,181,253,0.1);
}
.ia-hero::before {
  content: '';
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(109,40,217,0.45), transparent 65%);
  pointer-events: none;
}
.ia-hero-emoji { font-size: 48px; margin-bottom: 12px; position: relative; }
.ia-hero-title {
  font-family: 'Epilogue', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: white;
  margin-bottom: 6px;
  position: relative;
}
.ia-hero-sub { font-size: 13px; color: var(--text2); position: relative; }

/* ─── BARRA DE INPUT ─── */
.ia-input-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}
.ia-text-input {
  flex: 1;
  background: var(--surface2);
  border: 1.5px solid rgba(167,139,250,0.25);
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: text;
}
.ia-btn {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s;
}
.ia-btn.mic     { background: linear-gradient(135deg, #5A189A, #7B2FBE); box-shadow: 0 4px 16px var(--accent-glow); }
.ia-btn.mic:hover { transform: scale(1.05); }
.ia-btn.cam     { background: var(--surface2); border: 1px solid var(--border2); }
.ia-btn.cam:hover { background: var(--surface3); }

/* ─── FEATURES ─── */
.ia-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ia-feature {
  background: var(--surface);
  border: 1.5px solid rgba(167,139,250,0.15);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: all 0.18s;
}
.ia-feature:hover          { border-color: rgba(167,139,250,0.35); background: rgba(167,139,250,0.03); }
.ia-feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.ia-feature-text          { flex: 1; }
.ia-feature-title         { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.ia-feature-sub           { font-size: 11px; color: var(--text2); line-height: 1.4; }

/* ─── PAINEL DE CHAT ─── */
.chat-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: sticky;
  top: calc(var(--topbar-h) + 28px);
  display: flex;
  flex-direction: column;
}
.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.chat-msg         { display: flex; gap: 10px; align-items: flex-start; }
.chat-msg.user    { flex-direction: row-reverse; }
.chat-avatar {
  width: 30px; height: 30px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.chat-avatar.bot     { background: linear-gradient(135deg, #5A189A, #7B2FBE); }
.chat-avatar.user-av { background: linear-gradient(135deg, #22d3a5, #7B2FBE); font-size: 12px; font-weight: 700; color: white; }
.chat-bubble {
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  max-width: calc(100% - 44px);
}
.chat-msg:not(.user) .chat-bubble {
  background: var(--surface3);
  border-radius: 0 14px 14px 14px;
}
.chat-msg.user .chat-bubble {
  background: linear-gradient(135deg, rgba(90,24,154,0.5), rgba(90,24,154,0.3));
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 14px 0 14px 14px;
}
.chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text3);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.chat-send {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--accent-light); }

/* ── Tema Claro ── */
[data-tema="light"] .ia-hero-title,
[data-tema="light"] .ia-feature-title,
[data-tema="light"] .chat-header { color: var(--text) !important; }
[data-tema="light"] .ia-feature:hover { color: var(--text) !important; }
[data-tema="light"] .ia-hero {
  background: linear-gradient(135deg, #ede8fb 0%, #e2daf8 60%, #d8cff5 100%);
  border-color: rgba(109,40,217,0.2);
  box-shadow: 0 0 80px rgba(109,40,217,0.06), inset 0 1px 0 rgba(196,181,253,0.08);
}
