/* ===== AROMAHJUL (AROMA WHEEL) ===== */

/* --- Page intro --- */
.aromahjul-intro {
  max-width: var(--content-width);
  margin-bottom: var(--space-xl);
}

.aromahjul-intro h1 {
  margin-bottom: var(--space-sm);
}

.aromahjul-intro p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* --- Two-column layout --- */
.wheel-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 900px) {
  .wheel-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Wheel container --- */
.wheel-container {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  overflow: hidden;
}

.wheel-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Segments --- */
.wheel-segment {
  cursor: pointer;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.wheel-segment:hover {
  opacity: 0.82;
  filter: brightness(1.08);
}

.wheel-segment.active {
  stroke: var(--color-text) !important;
  stroke-width: 2.5 !important;
  filter: brightness(1.12);
}

/* --- Labels inside SVG --- */
.wheel-label {
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* --- Center button --- */
.wheel-center {
  cursor: pointer;
}

.wheel-center:hover circle {
  fill: var(--color-bg);
}

.wheel-center:hover text {
  fill: var(--color-primary-dark);
}

/* --- Tooltip --- */
.wheel-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: var(--color-text);
  color: var(--color-surface);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transition: opacity 0.1s ease;
  transform: translateY(-100%);
}

/* --- Info panel --- */
.wheel-info-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.wheel-info-panel h3 {
  margin-bottom: var(--space-xs);
  font-size: 1.25rem;
}

.wheel-info-panel .aroma-category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 2px var(--space-sm);
  border-radius: 99px;
  margin-bottom: var(--space-md);
  color: #fff;
}

.wheel-info-panel .aroma-path {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.wheel-info-panel .aroma-description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

.wheel-info-placeholder {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--color-text-muted);
}

.wheel-info-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  opacity: 0.35;
}

.wheel-info-placeholder p {
  font-size: 0.9375rem;
  max-width: 28ch;
  margin: 0 auto;
}

/* --- Wheel breadcrumb (zoom trail) --- */
.wheel-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  min-height: 40px;
}

.wheel-breadcrumb-home {
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  transition: color 0.2s ease;
}

.wheel-breadcrumb-home:hover {
  color: var(--color-primary-dark);
}

.wheel-breadcrumb .separator {
  color: var(--color-border);
  user-select: none;
}

.wheel-breadcrumb-item {
  cursor: pointer;
  color: var(--color-primary);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  transition: color 0.2s ease;
}

.wheel-breadcrumb-item:hover {
  color: var(--color-primary-dark);
}

.wheel-breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Responsive adjustments --- */
@media (max-width: 900px) {
  .wheel-info-panel {
    position: static;
  }
}

@media (max-width: 500px) {
  .wheel-container {
    padding: var(--space-sm);
  }

  .wheel-breadcrumb {
    font-size: 0.75rem;
  }
}
