/* -----------------------------
   Global
   ----------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Pixelify+Sans:wght@400..700&family=Sixtyfour&display=swap');

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Sixtyfour", system-ui, sans-serif;
  color: #fff;
}

input, button, .sidebar, .dropdown {
  font-family: 'AudioWide', system-ui, sans-serif;
}

canvas {
  display: block;
}

/* -----------------------------
   Overlay
   ----------------------------- */
.overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #1a0101;
  background: linear-gradient(0deg,rgba(26, 1, 1, 0) 70%, rgba(0, 0, 0, 1) 100%);
}

.ui-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

/* -----------------------------
   Main UI
   ----------------------------- */
.main-ui {
  flex: 1;
  position: relative;
  pointer-events: none;
}

/* -----------------------------
   Sidebar
   ----------------------------- */

.sidebar {
  width: 320px;
  height: 100vh;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);

  display: flex;
  flex-direction: column;

  overflow-y: auto;
  pointer-events: auto;

  display: none;
}

.sidebar-header {
  padding: 16px 0;
  text-align: center;
  flex: 0 0 auto;
}

.sidebar hr {
  margin: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex: 0 0 auto;
}

.sidebar-content {
  padding: 0 20px 24px;
  flex: 0 0 auto;
}

.sidebar h3 {
  margin-top: 24px;
  font-size: 18px;
  font-weight: 600;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li {
  margin: 6px 0;
}

.similar-item , .tag {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #fff;

  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
}

.similar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;

}

.bio {
  margin-top: 16px;
  line-height: 1.45;
}

.links ul {
  margin-top: 8px;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.links a {
  font-size: 30px;
}

a {
  opacity: 0.8;
  color: #fff
}

a:hover {
  opacity: 1;
}

.links-container {
  display: flex;
  flex-direction: row;
}

.linkbttn {
  width: 1/3;
  height: auto;
}


/* -----------------------------
   Header
   ----------------------------- */
h1 {
  position: absolute;
  top: 24px;
  left: 32px;
  margin: 0;
  font-size: 32px;
}

/* -----------------------------
   Search UI
   ----------------------------- */
.search-container {
  position: absolute;
  top: 24px;
  right: 32px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.search-container input,
.search-container button {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  outline: none;
}

.search-container button {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
}

/* -----------------------------
   Dropdown
   ----------------------------- */
.dropdown {
  position: absolute;
  top: 44px;
  width: 240px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
}

.dropdown.hidden {
  display: none;
}

.dropdown .item {
  padding: 10px 12px;
  cursor: pointer;
}

.dropdown .item:hover,
.dropdown .item.active {
  background: rgba(255, 255, 255, 0.1);
}

/* -----------------------------
   Similar Items and Tags
   ----------------------------- */
.similar-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
}

.similar-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.score, .tag-count {
  opacity: 0.8;
}

button {
  font-size: inherit;
}

.tag-list, .similar-item, .bio {
  font-size: 0.8rem;
}