/* ==========================================================================
   Seções Ricas Compartilhadas do Ecossistema CriaPoster
   Herda --primary, --primary-dark, --gradient, --border, --card-bg, --text
   ========================================================================== */

.suite-section {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow, 0 4px 24px -4px rgba(15, 23, 42, 0.08));
}

.suite-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.suite-section-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin: 0;
}

.suite-pill-badge {
  background: color-mix(in srgb, var(--primary, #6366f1) 12%, #ffffff);
  color: var(--primary-dark, #4f46e5);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.32rem 0.78rem;
  border-radius: 999px;
}

.suite-section-intro {
  color: var(--text-muted, #64748b);
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}

/* 1. Faixa de Ecossistema e Casos de Uso */
.suite-use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.7rem;
  margin: 1.25rem 0 1.75rem;
}

.suite-use-case-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  background: var(--card-bg, #ffffff);
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text, #0f172a);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.suite-use-case-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary, #6366f1);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.14);
}

.suite-use-case-card .uc-icon {
  font-size: 1.35rem;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.suite-use-case-card strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text, #0f172a);
}

.suite-use-case-card span:last-child {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  line-height: 1.35;
}

/* 2. Demonstração Interativa em 4 Etapas */
.suite-quick-demo {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 1.15rem;
}

.suite-quick-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.suite-quick-demo-title {
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.suite-demo-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.suite-demo-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--text-muted, #64748b);
  transition: all 0.18s ease;
}

.suite-demo-tab .tab-step {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary, #6366f1);
}

.suite-demo-tab .tab-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.suite-demo-tab:hover {
  border-color: var(--primary, #6366f1);
}

.suite-demo-tab.is-active {
  background: var(--gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(15, 23, 42, 0.25);
}

.suite-demo-tab.is-active .tab-step,
.suite-demo-tab.is-active .tab-label {
  color: #ffffff;
}

.suite-demo-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 1.25rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1.15rem;
}

.suite-demo-panel.is-active {
  display: grid;
}

.suite-demo-visual {
  min-height: 165px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #6366f1) 10%, #ffffff) 0%, #f8fafc 100%);
  border: 1px dashed color-mix(in srgb, var(--primary, #6366f1) 35%, #cbd5e1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  gap: 0.45rem;
}

.suite-demo-visual .visual-emoji {
  font-size: 2.3rem;
  line-height: 1;
}

.suite-demo-visual .visual-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--primary-dark, #4f46e5);
}

.suite-demo-visual .visual-sub {
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
}

.suite-demo-text h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin: 0 0 0.45rem;
}

.suite-demo-text p {
  font-size: 0.92rem;
  color: #334155;
  margin: 0 0 0.7rem;
}

.suite-demo-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.suite-demo-text li {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 3. Galeria de Exemplos Reais */
.suite-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.suite-example-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.suite-example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.14);
}

.suite-example-media {
  position: relative;
  height: 145px;
  background: var(--gradient, linear-gradient(135deg, #6366f1, #8b5cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  padding: 1rem;
}

.suite-example-media svg {
  width: 68px;
  height: 68px;
  opacity: 0.95;
}

.suite-example-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.suite-example-spec {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffffff;
  color: var(--primary-dark, #4f46e5);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
}

.suite-example-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.suite-example-body h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin: 0 0 0.45rem;
}

.suite-example-body p {
  font-size: 0.87rem;
  color: var(--text-muted, #64748b);
  margin: 0 0 0.9rem;
  flex: 1;
}

.suite-example-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border, #e2e8f0);
  flex-wrap: wrap;
}

.suite-example-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
}

.suite-example-btn {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary-dark, #4f46e5);
  text-decoration: none;
}

.suite-example-btn:hover {
  text-decoration: underline;
}

/* 4. Guia de Dicas & Solução de Problemas */
.suite-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.suite-tip-card {
  background: #f8fafc;
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid var(--primary, #6366f1);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
}

.suite-tip-card h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text, #0f172a);
  margin: 0 0 0.35rem;
}

.suite-tip-card p {
  font-size: 0.86rem;
  color: #334155;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .suite-examples-grid {
    grid-template-columns: 1fr;
  }
  .suite-demo-tabs {
    grid-template-columns: repeat(2, 1fr);
  }
  .suite-demo-panel.is-active {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .suite-section {
    padding: 1.15rem;
  }
  .suite-demo-tabs {
    grid-template-columns: 1fr;
  }
}
