/* ========================================
   EVALUATION DOTS - Accordion Expand
   Version: 5.3
   
   - Expands in place like accordion
   - Stays under story box
   - Values left-aligned with labels
   - Tight spacing
   ======================================== */

/* ==========================================
   CONTAINER - Stays in document flow
   ========================================== */

.story-display {
  position: relative;
}

/* ==========================================
   COLLAPSED STATE - 4 dots right-aligned
   ========================================== */

.eval-dots-collapsed {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}

.eval-dots-collapsed:hover {
  opacity: 0.7;
}

.eval-dot-mini {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D1CBC3;
  transition: all 0.3s ease;
}

.eval-dot-mini.complete {
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

/* ==========================================
   EXPANDED STATE - Accordion in place
   ========================================== */

.eval-dots-expanded {
  overflow: hidden;
  animation: accordionOpen 0.3s ease-out;
}

@keyframes accordionOpen {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 100px;
  }
}

.eval-panel {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0;
  padding: 12px 0;
}

/* Each column: label + value stacked */
.eval-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 100px;
  padding-right: 24px;
}

/* Row with dot + label */
.eval-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

/* Dot */
.eval-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D1CBC3;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.eval-dot.complete {
  background: #22C55E;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.4);
}

/* Label */
.eval-label {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #3E2318;
  text-transform: uppercase;
}

/* Value - left aligned under label */
.eval-value {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 13px;
  color: #5C534A;
  padding-left: 16px; /* Aligns with label (dot width + gap) */
  white-space: nowrap;
}

.eval-value.has-value {
  color: #3E2318;
  font-weight: 500;
}

.eval-value.no-value {
  color: #A89F94;
  font-style: italic;
}

/* Close button */
.eval-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  color: #A89F94;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.eval-close-btn:hover {
  background: rgba(62, 35, 24, 0.08);
  color: #3E2318;
}

/* ==========================================
   RESPONSIVE - Tablet
   ========================================== */

@media (max-width: 1024px) {
  .eval-column {
    min-width: 90px;
    padding-right: 20px;
  }
  
  .eval-label {
    font-size: 10px;
  }
  
  .eval-value {
    font-size: 12px;
    padding-left: 14px;
  }
}

/* ==========================================
   RESPONSIVE - Mobile
   ========================================== */

@media (max-width: 768px) {
  .eval-panel {
    justify-content: center;
  }
  
  .eval-column {
    min-width: 80px;
    padding-right: 16px;
  }
  
  .eval-label {
    font-size: 9px;
  }
  
  .eval-value {
    font-size: 11px;
    padding-left: 12px;
  }
  
  .eval-dot {
    width: 8px;
    height: 8px;
  }
  
  .eval-header {
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .eval-column {
    min-width: 70px;
    padding-right: 12px;
  }
  
  .eval-close-btn {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 500px) {
  .eval-panel {
    flex-wrap: wrap;
    gap: 8px 0;
  }
  
  .eval-column {
    min-width: 45%;
    padding-right: 8px;
  }
}
