/* ============================================================
   SPECIES LIFECYCLE VISUALIZATION — Fish Translator
   Circular timeline with animated fish and stage details
   ============================================================ */

.lifecycle-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  min-height: calc(100vh - 200px);
}

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

/* Species selector */
.species-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.species-pick {
  padding: 10px 18px;
  background: var(--fish-card);
  border: 1px solid var(--fish-card-border);
  border-radius: var(--fish-radius-full);
  color: var(--fish-text-muted);
  font-size: var(--fish-text-sm);
  font-weight: var(--fish-weight-semibold);
  cursor: pointer;
  transition: all var(--fish-duration-normal) var(--fish-ease-default);
  display: flex;
  align-items: center;
  gap: 6px;
}

.species-pick:hover {
  background: var(--fish-card-hover);
  border-color: var(--fish-card-border-hover);
  color: var(--fish-text);
}

.species-pick.active {
  background: var(--fish-accent-ghost);
  border-color: var(--fish-accent-dim);
  color: var(--fish-accent-bright);
  box-shadow: var(--fish-shadow-glow);
}

.species-pick .pick-icon {
  font-size: 1.1rem;
}

/* Canvas container */
.lifecycle-canvas-wrap {
  position: relative;
  background: var(--fish-glass);
  border: 1px solid var(--fish-glass-border);
  border-radius: var(--fish-radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  margin: 0 auto;
}

.lifecycle-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Current stage callout */
.current-stage-callout {
  text-align: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(6,182,212,0.1), rgba(6,182,212,0.03));
  border: 1px solid rgba(6,182,212,0.2);
  border-radius: var(--fish-radius-lg);
  margin-bottom: 20px;
}

.current-stage-callout .callout-label {
  font-size: var(--fish-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--fish-tracking-wider);
  color: var(--fish-text-dim);
  margin-bottom: 4px;
}

.current-stage-callout .callout-stage {
  font-size: var(--fish-text-xl);
  font-weight: var(--fish-weight-bold);
  color: var(--fish-accent-bright);
}

.current-stage-callout .callout-desc {
  font-size: var(--fish-text-sm);
  color: var(--fish-text-muted);
  margin-top: 4px;
}

/* Timeline scrubber */
.month-scrubber {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--fish-glass);
  border: 1px solid var(--fish-glass-border);
  border-radius: var(--fish-radius-lg);
}

.month-scrubber label {
  font-size: var(--fish-text-sm);
  font-weight: var(--fish-weight-semibold);
  color: var(--fish-text-muted);
  white-space: nowrap;
}

.month-scrubber input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--fish-bg-deep);
  border-radius: var(--fish-radius-full);
  outline: none;
}

.month-scrubber input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fish-accent);
  cursor: pointer;
  box-shadow: 0 0 8px var(--fish-accent-glow);
}

.month-scrubber input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fish-accent);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px var(--fish-accent-glow);
}

.month-scrubber .month-name {
  font-size: var(--fish-text-sm);
  font-weight: var(--fish-weight-bold);
  color: var(--fish-accent-bright);
  min-width: 80px;
  text-align: right;
}

/* Side panel */
.lifecycle-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stage-card {
  background: var(--fish-glass);
  border: 1px solid var(--fish-glass-border);
  border-radius: var(--fish-radius-lg);
  padding: 18px;
  backdrop-filter: blur(var(--fish-glass-blur));
}

.stage-card h3 {
  font-size: var(--fish-text-md);
  font-weight: var(--fish-weight-bold);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-item {
  background: var(--fish-card);
  border: 1px solid var(--fish-card-border);
  border-radius: var(--fish-radius-md);
  padding: 10px;
  text-align: center;
}

.stat-label {
  font-size: var(--fish-text-2xs);
  text-transform: uppercase;
  letter-spacing: var(--fish-tracking-wider);
  color: var(--fish-text-dim);
  margin-bottom: 4px;
}

.stat-value {
  font-size: var(--fish-text-base);
  font-weight: var(--fish-weight-bold);
  color: var(--fish-text);
}

/* Activity meter */
.activity-meter {
  margin-bottom: 14px;
}

.activity-meter .meter-label {
  font-size: var(--fish-text-xs);
  color: var(--fish-text-muted);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.meter-track {
  height: 8px;
  background: var(--fish-bg-deep);
  border-radius: var(--fish-radius-full);
  overflow: hidden;
}

.meter-fill {
  height: 100%;
  border-radius: var(--fish-radius-full);
  transition: width var(--fish-duration-slow) var(--fish-ease-water);
}

.meter-fill.low { background: var(--fish-blue); }
.meter-fill.medium { background: var(--fish-gold); }
.meter-fill.high { background: var(--fish-green); }
.meter-fill.peak { background: var(--fish-red); }

/* Bait list */
.bait-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.bait-tag {
  font-size: var(--fish-text-xs);
  padding: 4px 10px;
  background: var(--fish-card);
  border: 1px solid var(--fish-card-border);
  border-radius: var(--fish-radius-full);
  color: var(--fish-text-muted);
}

/* Tips */
.stage-tips {
  margin-top: 12px;
}

.stage-tips h4 {
  font-size: var(--fish-text-sm);
  font-weight: var(--fish-weight-semibold);
  color: var(--fish-accent);
  margin-bottom: 8px;
}

.stage-tips p {
  font-size: var(--fish-text-sm);
  color: var(--fish-text);
  line-height: 1.6;
}

/* Stage legend */
.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.stage-legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fish-text-xs);
  color: var(--fish-text-muted);
}

.stage-legend-item .swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .lifecycle-panel {
    order: 2;
  }
  .lifecycle-canvas-wrap {
    max-width: 500px;
  }
}

@media (max-width: 480px) {
  .species-selector {
    gap: 4px;
  }
  .species-pick {
    padding: 8px 12px;
    font-size: var(--fish-text-xs);
  }
  .lifecycle-canvas-wrap {
    max-width: 100%;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
