/**
 * Premium single-input domain search: input on its own line, actions on second line.
 * Panel, input, buttons, helper, and results area with premium styling.
 */

/* ---- Panel ---- */
.domain-search-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 22px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(12px);
}

/* ---- Input row ---- */
.domain-search-input-row {
  margin-bottom: 0;
}

.domain-search-input-row input {
  width: 100%;
  height: 58px;
  font-size: 16px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.92);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.domain-search-input-row input:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.domain-search-input-row input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.domain-search-input-row input:hover {
  border-color: rgba(15, 23, 42, 0.18);
}

/* ---- Actions ---- */
.domain-search-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  gap: 12px;
}

.domain-search-actions .btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.domain-search-actions .btn-primary {
  min-width: 260px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.domain-search-actions .btn-primary:hover,
.domain-search-actions .btn-outline:hover {
  transform: translateY(-1px);
}

.domain-search-actions .btn-primary:hover {
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.26);
}

.domain-search-actions .btn-outline {
  min-width: 200px;
  border: 1px solid rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(37, 99, 235, 0.95);
}

.domain-search-actions .btn-outline:hover {
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.1);
}

/* ---- Helper ---- */
.domain-search-helper {
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
}

/* ---- Examples ---- */
.domain-search-examples {
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.5);
}

/* ---- Trust row (directly under hero panel) ---- */
.domain-trust-row {
  margin: 14px auto 0;
  max-width: 920px;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.domain-trust-row .trust-item,
.domain-trust-row .wh-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---- FAQ toggle ---- */
.faq-toggle {
  display: block;
  margin: 14px auto 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

/* ---- Responsive: panel & actions ---- */
@media (max-width: 640px) {
  .domain-search-panel {
    max-width: 100%;
    padding: 18px;
    border-radius: 18px;
  }
  .domain-search-actions {
    flex-direction: column;
  }
  .domain-search-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---- Results container ---- */
.domain-search-results {
  max-width: 860px;
  margin: 22px auto 0;
  margin-bottom: 56px;
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.domain-search-results--visible {
  opacity: 1;
  transform: translateY(0);
}

.domain-search-results__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: contents;
}

.domain-search-results__empty {
  grid-column: 1 / -1;
  font-size: var(--font-size-sm, 0.875rem);
  color: var(--color-text-secondary, rgba(15, 23, 42, 0.6));
  padding: var(--spacing-md, 1rem);
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
}

/* ---- Result cards (premium) ---- */
.domain-search-results .domain-result-card,
.domain-result-card,
.domain-search-results__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.domain-result-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.domain-search-results .domain-result-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-search-results .domain-result-price {
  text-align: right;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  min-width: 110px;
}

.domain-search-results .drp__label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.5);
  line-height: 1.1;
  margin-bottom: 4px;
}

.domain-search-results .drp__value {
  font-size: 14px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.9);
  line-height: 1.2;
  white-space: nowrap;
}

.domain-search-results .domain-result-card .btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 12px;
}

.domain-result-name,
.domain-search-results__domain {
  font-size: 18px;
  font-weight: 800;
  color: rgba(15, 23, 42, 0.92);
}

.domain-result-tag,
.domain-search-results__tag {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: rgba(37, 99, 235, 0.95);
}

.domain-search-results__status {
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 600;
}

.domain-search-results__status--available {
  color: var(--color-accent-green, #059669);
}

.domain-search-results__status--unavailable {
  color: rgba(15, 23, 42, 0.5);
}

.domain-search-results__price {
  font-size: var(--font-size-sm, 0.875rem);
  color: rgba(15, 23, 42, 0.6);
}

.domain-search-results__buy {
  margin-left: auto;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm, 0.875rem);
  font-weight: 700;
}

/* ---- Generated ideas only: compact, lighter weight ---- */
.domain-search-results--suggestions .domain-result-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.domain-search-results--suggestions .domain-result-name {
  font-size: 16px;
  font-weight: 700;
}

.domain-search-results--suggestions .domain-result-tag {
  font-size: 11px;
  padding: 4px 8px;
}

.domain-search-results--suggestions .btn {
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 10px;
}

.domain-search-results--suggestions .domain-result-card.is-featured {
  border-color: rgba(37, 99, 235, 0.25);
  background: rgba(37, 99, 235, 0.04);
}

/* Generate more ideas action */
.domain-search-more-wrap {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
}

.domain-search-more-wrap .domain-search-more-btn {
  min-width: 0;
  font-weight: 600;
}

/* Whois button (unavailable domains) – same slot as Buy */
.domain-search-results__whois-btn {
  min-width: 0;
  font-weight: 600;
}

/* ---- WHOIS modal ---- */
.domain-whois-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.domain-whois-modal--open {
  opacity: 1;
  visibility: visible;
}

.domain-whois-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  cursor: pointer;
}

.domain-whois-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.domain-whois-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.domain-whois-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.92);
}

.domain-whois-modal__close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(15, 23, 42, 0.5);
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.domain-whois-modal__close:hover {
  color: rgba(15, 23, 42, 0.9);
  background: rgba(15, 23, 42, 0.06);
}

.domain-whois-modal__body {
  padding: 1.25rem;
}

.domain-whois-modal__error {
  margin: 0 0 1rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: rgba(185, 28, 28, 0.9);
}

.domain-whois-modal__row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.domain-whois-modal__row:last-child {
  border-bottom: none;
}

.domain-whois-modal__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(15, 23, 42, 0.5);
}

.domain-whois-modal__value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.9);
  line-height: 1.4;
  word-break: break-word;
}

/* Mobile: results */
@media (max-width: 640px) {
  .domain-result-card,
  .domain-search-results__item {
    flex-direction: column;
    align-items: stretch;
  }
  .domain-search-results__buy {
    margin-left: 0;
    width: 100%;
  }
}

/* ---- Dark theme ---- */
html[data-theme="dark"] .domain-search-panel {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .domain-search-input-row input {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .domain-search-input-row input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

html[data-theme="dark"] .domain-search-input-row input:focus {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

html[data-theme="dark"] .domain-search-actions .btn-outline {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(15, 23, 42, 0.5);
  color: var(--color-brand-primary);
}

html[data-theme="dark"] .domain-search-actions .btn-outline:hover {
  background: rgba(37, 99, 235, 0.15);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .domain-search-helper {
  color: rgba(255, 255, 255, 0.55);
}

html[data-theme="dark"] .domain-search-examples {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .domain-trust-row {
  color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .domain-search-results__empty {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .domain-result-card,
html[data-theme="dark"] .domain-search-results__item {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

html[data-theme="dark"] .domain-result-name,
html[data-theme="dark"] .domain-search-results__domain {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .domain-search-results__status--unavailable {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .domain-search-results__price {
  color: rgba(255, 255, 255, 0.6);
}

html[data-theme="dark"] .domain-search-results .domain-result-price {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .domain-search-results .drp__label {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .domain-search-results .drp__value {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .domain-search-results--suggestions .domain-result-card {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .domain-search-results--suggestions .domain-result-card.is-featured {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

html[data-theme="dark"] .domain-whois-modal__backdrop {
  background: rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .domain-whois-modal__dialog {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .domain-whois-modal__title {
  color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .domain-whois-modal__header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .domain-whois-modal__close {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .domain-whois-modal__close:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .domain-whois-modal__label {
  color: rgba(255, 255, 255, 0.5);
}

html[data-theme="dark"] .domain-whois-modal__value {
  color: rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .domain-whois-modal__row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
