/* assets/css/cartoon-explorer.css */

#cartoon-explorer {
  position: fixed;
  inset: 0;
  z-index: 50000;

  display: none;
}

#cartoon-explorer.open {
  display: block;
}

.cartoon-explorer-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.6);

  backdrop-filter: blur(4px);
}

.cartoon-explorer-panel {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 320px;

  background: #111;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.cartoon-explorer-header {
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 1rem;

  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cartoon-explorer-header h2 {
  margin: 0;

  font-size: 1rem;
  font-weight: 700;

  color: white;
}

#cartoon-explorer-close,
#cartoon-explorer-close:focus,
#cartoon-explorer-close:active {
  appearance: none;
  -webkit-appearance: none;

  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  color: white !important;

  font-size: 1.8rem;
  line-height: 1;

  padding: 0 !important;

  cursor: pointer;

  text-decoration: none !important;
}

#cartoon-explorer-close:hover {
  color: rgb(255, 0, 0) !important;
  font-size: 2rem;
}

.cartoon-explorer-track {
  height: calc(100% - 50px);

  overflow-x: auto;
  overflow-y: hidden;

  white-space: nowrap;

  padding: 1rem;
}

/* Nice scrollbar */

.cartoon-explorer-track::-webkit-scrollbar {
  height: 8px;
}

.cartoon-explorer-track::-webkit-scrollbar-track {
  background: transparent;
}

.cartoon-explorer-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.cartoon-explorer-track::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Thumbnails */

.explorer-item {
  display: inline-block;

  width: 180px;
  height: 180px;

  margin-right: 12px;

  overflow: hidden;

  border-radius: 8px;

  cursor: pointer;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.explorer-item:hover {
  transform: scale(1.1);

  box-shadow: 0 8px 24px rgba(181, 82, 82, 0.35);
}

.explorer-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}

.explorer-item {
  position: relative;
}

.explorer-title {
  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.75rem;

  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));

  color: white;

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

  white-space: normal;

  opacity: 0;

  transition: opacity 0.15s ease;

  pointer-events: none;
}

.explorer-item:hover .explorer-title {
  opacity: 1;
}
