/* ==========================================================================
   Homepage-only layout. Shared tokens/fonts/reset come from styles.css.
   ========================================================================== */

body.home {
  text-transform: uppercase;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

.column {
  min-width: fit-content;
  min-height: 100vh;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.text-list { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }

.joke-item, .link-item {
  display: inline-flex; align-items: center;
  padding: 2px 0; white-space: nowrap;
  text-decoration: none; color: inherit;
  background: none; border: none;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  letter-spacing: inherit; text-transform: inherit;
  transition: color 0.15s ease;
  position: relative;
}

.joke-item { cursor: default; }
.link-item { cursor: pointer; }

.joke-item:hover, .link-item:hover {
  color: var(--hover);
}

.detail {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 6px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}
.joke-item:hover .detail, .link-item:hover .detail {
  opacity: 1;
}

.detail img {
  display: block;
  width: 220px;
  max-width: none;
  height: auto;
  margin-top: 4px;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* Image revealed slightly below its menu item on hover */
.hover-img {
  position: absolute;
  top: 100%;
  left: 100%;
  margin-top: 8px;
  margin-left: 6px;
  width: 360px;
  max-width: none;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  z-index: 10;
}
.joke-item:hover .hover-img, .link-item:hover .hover-img {
  opacity: 1;
  transform: translateY(0);
}

.column > * {
  opacity: 0;
  transform: translateY(5px);
  animation: fadeUp 0.35s forwards ease-out;
}
.column > *:nth-child(1) { animation-delay: 0.05s; }
.column > *:nth-child(2) { animation-delay: 0.12s; }
.column > *:nth-child(3) { animation-delay: 0.19s; }
.column > *:nth-child(4) { animation-delay: 0.26s; }
