/**
 * Variable Autocomplete Styles
 */
.leat-variable-autocomplete {
  z-index: 1000000;
}
.leat-variable-autocomplete .components-popover__content {
  min-width: 280px;
  padding: 4px;
}

.leat-variable-autocomplete__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.leat-variable-autocomplete__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
  text-align: left;
  transition: background-color 0.1s ease;
}
.leat-variable-autocomplete__item:hover, .leat-variable-autocomplete__item.is-selected {
  background-color: #f0f7ff;
}
.leat-variable-autocomplete__item:active {
  background-color: #e3f2ff;
}

.leat-variable-autocomplete__item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 2px;
}

.leat-variable-autocomplete__item-icon {
  font-size: 14px;
  line-height: 1;
}

.leat-variable-autocomplete__item-value {
  font-size: 13px;
  font-weight: 500;
  color: #1e1e1e;
  font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
}

.leat-variable-autocomplete__item-description {
  font-size: 12px;
  color: #757575;
  margin-left: 22px;
}

.leat-variable-autocomplete__empty {
  padding: 12px;
  color: #757575;
  font-size: 13px;
  text-align: center;
}

/**
 * Variable Badge Styles
 *
 * Used both in the editor (overlay) and on the frontend
 */
.leat-variable-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background-color: #f0f7ff;
  border: 1px solid #b8daff;
  border-radius: 4px;
  transition: all 0.15s ease;
  font-size: inherit;
  line-height: inherit;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  vertical-align: baseline;
  font-weight: 600;
  color: #0073aa;
}
.leat-variable-badge:hover {
  background-color: #e3f2ff;
  border-color: #9fc5f8;
  box-shadow: 0 1px 3px rgba(0, 100, 200, 0.1);
}

.leat-variable-badge__icon {
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.8;
}

.leat-variable-badge__value {
  font-size: inherit;
  line-height: 1;
  white-space: nowrap;
}

h1 .leat-variable-badge,
h2 .leat-variable-badge,
h3 .leat-variable-badge,
h4 .leat-variable-badge,
h5 .leat-variable-badge,
h6 .leat-variable-badge {
  vertical-align: middle;
}

/**
 * Variable RichText Styles
 *
 * No special styling needed - it's just a plain RichText now
 */
/**
 * Variable Format Styles
 *
 * CSS-only approach to style {{variable}} patterns as badges.
 * Unfortunately, CSS cannot detect text patterns, so we need a JavaScript solution instead.
 * This file is a placeholder for the proper implementation.
 */