/* ========================================
   Text Vault - Content Script Styles
   ======================================== */

#highlightvault-tooltip {
  position: absolute;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 0px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 0.15s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#highlightvault-tooltip.hv-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Collapsed: only show tiny save icon */
#highlightvault-tooltip .hv-btn-save {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #f0b429;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

#highlightvault-tooltip .hv-btn-save svg {
  width: 12px;
  height: 12px;
  color: #1a1814;
}

#highlightvault-tooltip .hv-btn-save:hover {
  background: #ffc94d;
  transform: scale(1.15);
}

/* Dropdown toggle hidden by default, shown on expanded */
#highlightvault-tooltip .hv-dropdown {
  display: none;
}

#highlightvault-tooltip.hv-expanded {
  gap: 3px;
  padding: 4px;
  background: #1a1814;
  border: 1px solid #3a3530;
  border-radius: 6px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
}

#highlightvault-tooltip.hv-expanded .hv-btn-save {
  border-radius: 4px;
}

#highlightvault-tooltip.hv-expanded .hv-dropdown {
  display: block;
  position: relative;
}

#highlightvault-tooltip .hv-btn-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 22px;
  background: #2a2620;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

#highlightvault-tooltip .hv-btn-more:hover {
  background: #3a3530;
}

#highlightvault-tooltip .hv-btn-more svg {
  width: 10px;
  height: 10px;
  color: #a09080;
}

#highlightvault-tooltip .hv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

#highlightvault-tooltip .hv-dropdown {
  position: relative;
}

#highlightvault-tooltip .hv-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #1a1814;
  border: 1px solid #3a3530;
  border-radius: 8px;
  padding: 4px;
  min-width: 140px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#highlightvault-tooltip.hv-dropdown-open .hv-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#highlightvault-tooltip .hv-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 4px;
  color: #f5f0e8;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

#highlightvault-tooltip .hv-option:hover {
  background: #2a2620;
}

/* Saved feedback toast */
#highlightvault-feedback {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #f0b429;
  color: #1a1814;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

#highlightvault-feedback.hv-show {
  transform: translateX(-50%) translateY(0);
}

#highlightvault-feedback svg {
  color: #1a1814;
}
