/*─────────────────────────────────────────────────────────────────
  Global Search Styles (updated for centering results)
─────────────────────────────────────────────────────────────────*/

/* Wrap the input/button row so the dropdown can sit absolutely below */
.brandly-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

/* The combo list panel, hidden by default */
#bn-combo-list,
.bn-combo-list {
  position: absolute;
  top: 100%;       /* directly below the input row */
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

/* Each suggestion row */
.bn-combo-item {
  padding: 8px 12px;
  cursor: pointer;
}
.bn-combo-item:hover {
  background: #f0f0f0;
}

/*─────────────────────────────────────────────────────────────────
  Combo Selector + Search Form
─────────────────────────────────────────────────────────────────*/
.combo_selector,
.brandly-search-form {
  max-width: 1000px;     /* unify width */
  margin: 0 auto 1em;    /* center & space below */
  padding: 1em;          /* inner padding */
  box-sizing: border-box;
  border: 1px solid #ddd;/* visual frame */
  border-radius: 6px;
  background: #fff;
}

/* 3‑way selector container */
.combo_selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: center;
}

/* Shared select styling */
.combo_selector .lang-selector {
  min-width: 150px;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  appearance: none;
}

/* Button styling */
.combo_selector .index_button {
  background: #0073aa;
  color: #fff;
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}
.combo_selector .index_button:hover {
  background: #005f8d;
}

/* Descriptive note */
.combo_selector .combo-note {
  width: 100%;
  margin-top: 0.5em;
  font-style: italic;
  color: #555;
}

/* Search form input + button */
.brandly-search-form .brandly-input-wrap {
  margin-top: 0.5em;
}
.brandly-search-form .brandly-input-text {
  flex: 1;
  padding: 0.5em;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.brandly-search-form .brandly-button {
  padding: 0.5em 1em;
  font-size: 1rem;
  cursor: pointer;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
}
.brandly-search-form .brandly-button:hover {
  background: #005f8d;
}

/*─────────────────────────────────────────────────────────────────
  Results Styling
─────────────────────────────────────────────────────────────────*/
#bn-search-results {
  max-width: 1000px;   /* same as above */
  margin: 0 auto 2em;  /* center & space below */
  padding: 0 1em;      /* side padding for mobile */
  box-sizing: border-box;
}

.bn-search-results .bn-card {
  border: 1px solid #ddd;
  padding: 1em;
  border-radius: 6px;
  background: #f9f9f9;
  /* full width to match container */
  width: 100%;
  max-width: none;
  margin-bottom: 1em;
}
.bn-search-results .bn-notice {
  color: #b33;
  margin-bottom: 1em;
}

/* Suggestions grids left‑aligned */
.brandly-grid.brand-suggestions,
.brandly-grid.domain-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* left align instead of center */
  gap: 0.5em;
  margin-bottom: 1em;
}
.brandly-grid.brand-suggestions a,
.brandly-grid.domain-suggestions a {
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  /* light blue background, dark text */
  background: #e3f2fd;
  color: #005f8d;
}
.brandly-grid.brand-suggestions a:hover,
.brandly-grid.domain-suggestions a:hover {
  background: #fff9c4; /* warm yellow hover */
}

/*─────────────────────────────────────────────────────────────────
  Responsive Breakpoints
─────────────────────────────────────────────────────────────────*/
@media (max-width: 600px) {
  .combo_selector,
  .brandly-search-form {
    padding: 0.75em;
  }
  .combo_selector {
    flex-direction: column;
    align-items: stretch;
  }
  .combo_selector .lang-selector,
  .combo_selector .index_button {
    width: 100%;
    margin-bottom: 0.75em;
  }
  .brandly-search-form .brandly-input-wrap {
    flex-direction: column;
  }
  .brandly-search-form .brandly-button {
    width: 100%;
    margin-top: 0.5em;
  }
}
