/*
 * welcome.css - Welcome Screen Component
 * ========================================
 * PORQUE: A tela de boas-vindas (estado vazio do chat) tem layout,
 * tipografia e cards de sugestao proprios. Aparece quando nao ha mensagens.
 *
 * RETROFIT:
 * - Transicao fade (opacity + transform) em vez de display:none abrupto
 * - Assimetria controlada: primeiro suggestion card com grid-column: span 2
 * - Letter-spacing do h1 reduzido de 5px para 3px (menos generico)
 * - Animacoes preservadas (springIn, auraGlow, logoFloat)
 */

/* ── Container com transicao de fade ── */
#welcomeState {
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: translateY(0);
}

#welcomeState.hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  position: absolute;
  /* Mantido acessivel ao DOM mas visualmente ausente */
}

.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  animation: springIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.welcome-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

/* Aura radial pulsante atras do logo */
.welcome-logo-wrap::before {
  content: '';
  position: absolute;
  width: 220px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 30, 30, 0.18) 0%, rgba(196, 30, 30, 0.06) 40%, transparent 70%);
  animation: auraGlow 4s ease-in-out infinite;
  pointer-events: none;
}

.welcome-logo {
  width: 200px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 35px rgba(196, 30, 30, 0.5));
  animation: logoFloat 5s ease-in-out infinite;
}

/* RETROFIT: letter-spacing reduzido de 5px para 3px.
   5px em serif display cria sensacao de "template de hotel boutique". */
.welcome h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 10px;
}

.welcome p {
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.65;
  max-width: 480px;
  font-weight: 300;
}

.welcome-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), transparent);
  margin: 22px auto;
}

/* ── Suggestion cards grid ── */
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 580px;
  margin-top: 12px;
}

.suggestion-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: left;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: springIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  position: relative;
  overflow: hidden;
}

/* Subtle red accent line at top */
.suggestion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196, 30, 30, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.suggestion-card:hover::before {
  opacity: 1;
}

.suggestion-card:nth-child(1) { animation-delay: 0.1s; }
.suggestion-card:nth-child(2) { animation-delay: 0.16s; }
.suggestion-card:nth-child(3) { animation-delay: 0.22s; }
.suggestion-card:nth-child(4) { animation-delay: 0.28s; }

.suggestion-card:hover {
  border-color: rgba(196, 30, 30, 0.25);
  background: var(--bg-input);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(196, 30, 30, 0.08);
}

/* Icon container with glow */
.sug-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 30, 30, 0.08);
  border: 1px solid rgba(196, 30, 30, 0.12);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
}

.suggestion-card:hover .sug-icon {
  background: rgba(196, 30, 30, 0.15);
  border-color: rgba(196, 30, 30, 0.25);
  box-shadow: 0 0 14px rgba(196, 30, 30, 0.15);
}

.sug-title {
  font-size: 13.5px;
  color: var(--white);
  margin-bottom: 5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sug-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .suggestions {
    grid-template-columns: 1fr;
  }
}
