/*=======================================
Journal dropdown
=========================================*/
.journal-dropdown {
  margin-top: 30px;
}

/* Accordion container */
.journal-dropdown .accordion-item {
  background-color: transparent;
  border: none;
  margin-bottom: 25px;
  margin-left: 10px;
}

/* Dropdown title */
.journal-dropdown .accordion-button {
  background-color: transparent;
  color: var(--white);

  font-size: 1.2rem;
  font-weight: 600;

  padding: 10px 15px;
  border-left: 3px solid var(--blue);
  border-radius: 0;

  display: flex;
  align-items: center;
  gap: 12px;

  cursor: pointer;

  transition: all 0.35s ease;
}

/* Hover effect */
.journal-dropdown .accordion-button:hover {
  color: var(--yellow);

  background: rgba(63, 71, 110, 0.2);
  border-left-color: var(--yellow);

  box-shadow: 0 0 18px rgba(254, 167, 17, 0.15);

  /* transform: translateY(-2px); */
  text-shadow: none;
}

/* When dropdown is open */
.journal-dropdown .accordion-button[aria-expanded="true"] {
  color: var(--blue-light);

  background: rgba(63, 71, 110, 0.2);
  border-left-color: var(--blue-light);

  box-shadow: 0 0 12px rgba(167, 199, 231, 0.15);

  text-shadow: none;
}

/* Remove default Bootstrap arrow */
.journal-dropdown .accordion-button::after {
  display: none;
}

/* Remove Bootstrap focus effect */
/* .journal-dropdown .accordion-button:focus {
  box-shadow: none;
} */

/* Custom rotating triangle */
.journal-dropdown-icon {
  display: inline-block;
  font-size: 0.7em;
  margin-left: auto;
  color: var(--white);

  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* Triangle color on hover and when expanded */
.journal-dropdown .accordion-button:hover .journal-dropdown-icon,
.journal-dropdown
  .accordion-button[aria-expanded="true"]
  .journal-dropdown-icon {
  color: var(--yellow);
}

/* Rotate when expanded */
.journal-dropdown
  .accordion-button[aria-expanded="true"]
  .journal-dropdown-icon {
  transform: rotate(180deg);
  color: var(--blue-light);
}

/* Dropdown content */
.journal-dropdown .accordion-body {
  padding: 20px;
  color: var(--white);
}

/* Dropdown content */
.journal-dropdown .accordion-body p {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: left;
}

/* Keep journal dropdown text sharp */
.journal-dropdown .accordion-button,
.journal-dropdown .accordion-button:hover,
.journal-dropdown .accordion-button[aria-expanded="true"] {
  text-shadow: none;
  transform: none;
}

/* Hover effect when dropdown is expanded */
.journal-dropdown .accordion-button[aria-expanded="true"]:hover {
  color: var(--yellow);

  background: rgba(63, 71, 110, 0.2);
  border-left-color: var(--yellow);

  box-shadow: 0 0 18px rgba(254, 167, 17, 0.15);

  text-shadow: none;
}

/* Triangle hover effect when expanded */
.journal-dropdown
  .accordion-button[aria-expanded="true"]:hover
  .journal-dropdown-icon {
  color: var(--yellow);
}

/* Journal protocol links
.journal-dropdown .accordion-body a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.3s ease;
}


.journal-dropdown .accordion-body a:hover {
  color: var(--yellow);
} */

/*===========================
Protocol cards
============================ */
/* Protocol title */
.protocol-card .protocol-card-title {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;

  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
}

/* Title color on hover */
.protocol-card:hover .protocol-card-title {
  color: var(--yellow);
}

/* Card hover effect */
.protocol-card:hover {
  background-color: var(--background-color);
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(254, 167, 17, 0.2);
}

/* Protocol card container */
.protocol-card {
  background-color: var(--blue);
  border: 1px solid var(--blue-light);
  border-radius: 12px;

  color: var(--white);
  transition: all 0.3s ease;
  cursor: pointer;

  display: flex;
  justify-content: center;
  align-items: center;
}

/*===========================
wl-table
============================ */
.wl-table {
  --bs-table-bg: var(--background-color);
  --bs-table-color: var(--white);
  --bs-table-border-color: var(--blue);

  --bs-table-hover-bg: #515b83;
  --bs-table-hover-color: var(--white);
}

.wl-table a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: var(--blue-light);
}

.wl-table th,
.wl-table td {
  border-width: 2px;
  vertical-align: middle;
}

.wl-table a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--white);
}

/*===========================
Wet Lab scientific figure viewer
============================ */
main figure img.figure-zoomable {
  cursor: zoom-in;
  transition: transform 0.25s ease;
  border: none;
}

main figure img.figure-zoomable:hover {
  /* box-shadow: 0 0 0 2px var(--blue-light); */
  transform: translateY(-3px) scale(1.05);
}

main figure img.figure-zoomable:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

#wet-lab-figure-modal .modal-dialog {
  width: calc(100% - 1rem);
  max-width: none;
  min-height: calc(100% - 1rem);
  margin: 0.5rem auto;
}

#wet-lab-figure-modal .modal-content {
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  background-color: var(--background-color);
  color: var(--white);
}

#wet-lab-figure-modal .modal-header {
  padding: 0.5rem 0.75rem;
}

#wet-lab-figure-modal .modal-close-button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 0.25rem;
  font-size: 1.75rem;
  line-height: 1;
}

#wet-lab-figure-modal .modal-close-button:hover {
  color: var(--yellow);
}

#wet-lab-figure-modal .modal-close-button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

#wet-lab-figure-modal .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0.5rem;
}

#wet-lab-figure-modal .wet-lab-figure-image {
  display: block;
  width: 100%;
  height: calc(100vh - 6rem);
  height: calc(100dvh - 6rem);
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  main figure img.figure-zoomable {
    transition: none;
  }
}
