/* ═══════════════════════════════════════════════════════════════
   Hero Widget – Frontend CSS
   Salutări ciclice + stiluri admin form
═══════════════════════════════════════════════════════════════ */

/* ── Salutări ciclice ──────────────────────────────────────── */
.hero-greeting {
  display: block;
  min-height: 1.8em;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38a3c6;
}

.hero-greeting__item {
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-greeting__item.is-active {
  display: inline-block;
  opacity: 1;
  animation: hwf-fadein 0.6s ease forwards;
}

@keyframes hwf-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── Imagine hero ──────────────────────────────────────────── */
.hero-widget__img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════
   Admin Form – hwf-* classes
═══════════════════════════════════════════════════════════════ */
.hwf-wrap .hwf-fieldset {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 12px 8px;
  margin-bottom: 14px;
}

.hwf-wrap .hwf-legend {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  padding: 0 5px;
}

.hwf-wrap .hwf-row {
  margin-bottom: 8px;
}

.hwf-wrap .hwf-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #333;
}

.hwf-wrap .hwf-hint-inline {
  font-size: 11px;
  font-weight: 400;
  color: #888;
  margin-left: 4px;
}

.hwf-wrap .hwf-hint {
  font-size: 11px;
  color: #888;
  margin: 2px 0 6px;
}

/* Greeting rows */
.hwf-wrap .hwf-greeting-header {
  display: flex;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}
.hwf-wrap .hwf-greeting-header span:first-child { flex: 2; }
.hwf-wrap .hwf-greeting-header span:last-child  { width: 52px; flex: none; }

.hwf-wrap .hwf-greeting-row {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 5px;
}
.hwf-wrap .hwf-greeting-row input:first-child { flex: 2; }
.hwf-wrap .hwf-lang-input {
  width: 52px !important;
  flex: none;
}

/* Button sub-field show/hide */
.hwf-wrap .hwf-btn-sub {
  display: none;
}
.hwf-wrap .hwf-btn-sub.hwf-visible {
  display: block;
}

/* Image picker row */
.hwf-wrap .hwf-image-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.hwf-wrap .hwf-image-preview {
  width: 90px;
  height: 65px;
  object-fit: cover;
  border: 1px solid #ddd;
  background: #f5f5f5;
  border-radius: 4px;
  flex: none;
}

.hwf-wrap .hwf-image-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* Checkbox label */
.hwf-wrap .hwf-check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
