/* Основна обвивка за цитатното поле */
.citation-block {
  margin-top: 2rem;
  padding: 0.75rem;
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 4px;
}

/* Label – Cite This Page */
.citation-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #03335f;          /* син цвят като Investigation Type */
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* Цитат заглавие / автор / дата */
.citation-text-title {
  display: block;
  margin-bottom: 0.2rem;
  color: #333;
  font-size: 0.95rem;
}

/* Retrieved … */
.citation-text-retrieved {
  display: block;
  margin-bottom: 0.1rem;
  color: #333;
  font-size: 0.95rem;
}

/* URL */
.citation-text-url {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.95rem;
  word-break: break-all; /* за дългите URL да не излизат извън блока */
}

/* NODE ID ред */
.citation-uid {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
}

/* =========================
   COPY рамка
   ========================= */

.citation-copy-box {
  position: relative;    
  margin-top: 0.5rem;
  padding: 0.6rem 0.75rem 0.75rem;
  border-radius: 4px;
  background: #ffffff;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Заглавие COPY */
.citation-copy-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4b5563;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

/* Контейнер за бутоните */
.citation-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Бутоните – стил като View PDF */
.citation-buttons button {
  font-size: 0.875rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.25rem;
  border: 1px solid #005a9e;
  background-color: #005a9e;
  color: #ffffff;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;

  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}


.citation-buttons button:hover {
  background-color: #004080;
  border-color: #004080;
  color: #ffffff;
}

/* =====================================================
   Tooltip при hover върху COPY рамката
   ===================================================== */

.citation-copy-box::after {
  content: "Use the buttons below to copy this page citation in APA, Chicago, or BibTeX format.";
  position: absolute;
  left: 0;
  bottom: 100%;
  transform: translateY(-6px);
  box-sizing: border-box;

  max-width: 100%;
  padding: 0.5rem 0.75rem;
  background: #03335f;
  color: #ffffff;
  font-size: 0.85rem;
  line-height: 1.35;
  border-radius: 4px;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  z-index: 10;
}

.citation-buttons button:focus-visible {
  box-shadow: 0 0 0 2px rgba(3, 51, 95, 0.35);
}

.citation-copy-box::before {
  content: "";
  position: absolute;
  left: 1rem;
  bottom: 100%;
  transform: translateY(2px);

  border-width: 6px;
  border-style: solid;
  border-color: #03335f transparent transparent transparent;

  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.citation-copy-box:hover::after,
.citation-copy-box:hover::before {
  opacity: 1;
}


/* Малка обратна връзка при копиране */
.copy-feedback {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 0.85rem;
  color: #28a745;
  font-weight: 500;
}

.citation-help {
  margin-top: 0.5em; 
  font-size: 0.9em;
}



