/* ==========================================================================
   r-Omenia.ro — Search (formular de căutare + bara de progres)
   ========================================================================== */

.search-container {
  width: 100%;
  max-width: min(80vw, 1600px);
  margin: 0 auto;
  padding: 56px 20px 24px;
}

/* --- Hero --- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 34px;
}

.hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.hero-title .brand-tld {
  color: var(--accent);
}

.hero-tagline {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text-muted);
}

/* --- Statistici (injected de JS) --- */
.stats-container {
  min-height: 1.4em;
}

.stats-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.stats-line strong {
  color: var(--text-strong);
  font-weight: 700;
}

.stats-line .stats-sep {
  color: var(--border-strong);
}

/* --- Formular --- */
.search-form {
  margin-bottom: 4px;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-strong);
  border-radius: 0;
  padding: 6px 0;
  transition: border-color var(--transition);
}

.search-wrapper:focus-within {
  border-bottom-color: var(--accent);
}

.search-icon {
  flex-shrink: 0;
  color: var(--text-dim);
}

.search-wrapper input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text);
}

.search-wrapper input::placeholder {
  color: var(--text-dim);
}

/* --- Progress bar (tricolor drapel sub input) --- */
.progress-container {
  width: 100%;
  height: 4px;
  margin-top: 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  background: linear-gradient(
    to right,
    #3a5a9e 0%, #3a5a9e 33.33%,
    #d9b84a 33.33%, #d9b84a 66.66%,
    #b05151 66.66%, #b05151 100%
  );
  transition: width 0.25s ease-out;
}

@media (max-width: 900px) {
  .search-container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .search-container {
    padding-top: 40px;
  }

  .stats-line {
    font-size: 0.78rem;
    padding: 5px 12px;
    gap: 2px 6px;
  }

  .search-wrapper {
    padding-left: 0;
  }

  .search-submit {
    padding: 10px 18px;
  }
}
