/* Result box styles */
.result-box {
  break-inside: avoid;
  margin-bottom: 16px;
  height: fit-content;
  min-height: min-content;
  padding: 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: white;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.result-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.result-box.subglubler {
  height: 266px !important;
}

.site-header {
  padding: 10px 12px;
  background: #454554;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 26px;
}

.site-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
  min-width: 0; /* Allow container to shrink */
}

.favicon {
  width: 26px;
  height: 26px;
  margin-right: 8px;
}

.site-url {
  margin-left: 1px; /* Reduced from 10px to bring URL closer to favicon */
  text-decoration: none;
  color: white;
  font-size: clamp(6px, 1vw, 13.4px); /* Dynamic font size */
  font-weight: bold;
  margin-right: 38px; /* Make space for go-to link button */
  display: block;
  min-width: 0;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: font-size 0.2s ease;
}

.title-container {
  position: relative; /* Allow absolute positioning for the Glue button */
  padding: 12px;
  padding-top: 10px; /* Slightly reduced top padding */
  padding-right: 64px; /* Make space for glue button */
  padding-bottom: 38px; /* Original 15px plus 33px */
}

h3 {
  margin: 0;
  padding-right: 8px;
  font-size: 13px;
  color: white;
  word-wrap: break-word;
  width: 100%;
}

.site-divider {
  height: 0.4px; /* Thinner line */
  background: #454554; /* New color */
  margin: 0;
  border: none;
}

.go-to-link {
  width: 36px; /* Increased size to match search field */
  height: 20.5px;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
  opacity: 0;
  visibility: hidden;
  margin-left: auto; /* Push to right */
}

.go-to-link:hover {
  opacity: 0.8;
}

.result-box:hover .go-to-link {
  opacity: 1;
  visibility: visible;
}
