/* icts-style.css - Padrão visual escalável para Diretório de ICTs */

.section-icts {
  padding-top: 20px;
  padding-bottom: 60px;
}

/* --- Barra de Ferramentas: Busca e Filtros --- */
.directory-toolbar {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 8px 16px;
  border-radius: 24px;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s ease;
}

.tag-chip:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.tag-chip.active {
  background-color: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.directory-status {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  margin-top: -4px;
}

/* --- Grid de ICTs --- */
.ict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* --- Card de ICT --- */
.ict-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.ict-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
}

/* Cabeçalho do Card (Logo + Nome/Sigla) */
.ict-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ict-card__logo-wrapper {
  width: 58px;
  height: 58px;
  min-width: 58px;
  background-color: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ict-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ict-card__title-group {
  flex: 1;
  min-width: 0;
}

.ict-card__sigla {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0284c7;
  display: block;
}

.ict-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0 0;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Descrição com limite de altura/linhas */
.ict-card__desc {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Badges de Especialidades */
.ict-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Rodapé e Link de Ação */
.ict-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.ict-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0284c7;
  text-decoration: none;
  transition: gap 0.15s ease, color 0.15s ease;
}

.ict-card__link:hover {
  color: #0369a1;
  gap: 8px;
  text-decoration: underline;
}

/* Mensagem de estado vazio */
.no-results-msg {
  text-align: center;
  padding: 48px 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  margin-top: 24px;
}