
/* Área de resultados da pesquisa de domínios */
.domain-results {
  width: 100%;
  margin-top: 22px;
  color: #1e293b;
}

.domain-results:empty {
  display: none;
}

.domain-results-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.domain-results-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.domain-result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgb(15 23 42 / 5%);
}

.domain-result-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.domain-result-status {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.domain-result-status.is-available {
  color: #166534;
  background: #dcfce7;
}

.domain-result-status.is-unavailable {
  color: #991b1b;
  background: #fee2e2;
}

.domain-result-status.is-unknown {
  color: #854d0e;
  background: #fef3c7;
}

.domain-results-error {
  padding: 12px 14px;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

@media (max-width: 576px) {
  .domain-results-list {
    grid-template-columns: 1fr;
  }

  .domain-result-card {
    padding: 13px;
  }
}



/* Mensagem de validação */
.domain-validation-message {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #fecdca;
  border-left: 4px solid #dc3545;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  animation: domainMessageIn 0.25s ease-out;
}

.domain-validation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #fff;
  background: #dc3545;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 800;
}

@keyframes domainMessageIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Botão Comprar nos resultados da pesquisa de domínios */
.domain-result-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    margin-top: 12px;
    border: none;
    border-radius: 6px;
    background: #16a34a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.domain-result-buy:hover {
    background: #15803d;
    color: #ffffff;
    transform: translateY(-1px);
}

.domain-result-buy:focus-visible {
    outline: 3px solid #86efac;
    outline-offset: 3px;
}

.domain-result-buy:active {
    transform: translateY(0);
}

/* Ajuste para telemóveis */
@media (max-width: 576px) {
    .domain-result-buy {
        width: 100%;
        margin-top: 10px;
        padding: 12px 18px;
    }
}


/* ===== RESPONSIVIDADE DOS RESULTADOS DE DOMÍNIOS ===== */

.domain-results,
.domain-results * {
    box-sizing: border-box;
}

.domain-results {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 24px 0 0;
}

.domain-results-title {
    max-width: 100%;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

/* Lista de resultados: adapta o número de colunas */
.domain-results-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Cada cartão */
.domain-result-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    border-radius: 10px;
}

/* Nome do domínio */
.domain-result-name {
    flex: 1 1 160px;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Estado de disponibilidade */
.domain-result-status {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Botão Comprar */
.domain-result-buy {
    flex: 0 0 auto;
    max-width: 100%;
    margin-top: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Tablets e ecrãs menores */
@media (max-width: 768px) {
    .domain-results-list {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .domain-result-card {
        gap: 10px;
        padding: 14px;
    }
}

/* Telemóveis */
@media (max-width: 480px) {
    .domain-results {
        margin-top: 18px;
    }

    .domain-results-title {
        font-size: 18px;
    }

    .domain-result-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
    }

    .domain-result-name,
    .domain-result-status {
        width: 100%;
        flex: 0 1 auto;
    }

    .domain-result-buy {
        width: 100%;
        margin-top: 4px;
        justify-content: center;
    }
}
