/* --------------------------------------------------------------------------
   Honeycomb (hex) design system — used for Partners on home,
   future Hive page sections, and component-product variant pickers (Sprint 3).
   -------------------------------------------------------------------------- */

.hex-grid {
  --hex-size: 140px;
  --hex-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: var(--hex-gap);
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Each hex is a square clipped to a pointy-top hexagon via clip-path.
   Aspect ratio is preserved by tying width and height to --hex-size. */
.hex-cell {
  width: var(--hex-size);
  height: calc(var(--hex-size) * 1.1547);  /* 2 / sqrt(3) ≈ 1.1547 */
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    background-color var(--transition-base),
    filter var(--transition-base);
  cursor: pointer;
}

.hex-cell--static {
  cursor: default;
}

.hex-cell:hover {
  background-color: var(--color-bg-lighter);
  transform: translateY(-4px) scale(1.03);
}

.hex-cell--glow:hover,
.hex-cell--accent {
  filter: drop-shadow(0 0 16px var(--color-gold-dim));
}

.hex-cell__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
}

.hex-cell__img {
  max-width: 60%;
  max-height: 50%;
  object-fit: contain;
}

.hex-cell__label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text);
  line-height: 1.2;
  word-break: break-word;
}

.hex-cell--accent .hex-cell__label {
  color: var(--color-gold);
}

/* Size variants */
.hex-cell--sm { --hex-size: 90px; }
.hex-cell--lg { --hex-size: 180px; }

@media (max-width: 640px) {
  .hex-grid { --hex-size: 110px; --hex-gap: 10px; }
}
