/* Player Instructions Styles */
/* CSS for PlayerInstructionsView collapsible sections */

.instructions {
  background: #e3f2fd;
  border: 2px solid #bbdefb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.instructions h3 {
  margin: 0 0 15px 0;
  color: #1976d2;
}

.instructions ol {
  margin: 0;
  padding-left: 20px;
}

.instructions ul {
  margin: 0;
  padding-left: 20px;
}

.instructions li {
  margin: 8px 0;
  line-height: 1.4;
}

.instructions strong {
  color: #1565c0;
}

/* Collapsible section styles */
.collapsible-section {
  margin: 15px 0;
}

.section-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 8px 0;
  user-select: none;
  transition: background-color 0.2s ease;
  border-radius: 4px;
}

.section-header:hover {
  background-color: rgba(25, 118, 210, 0.1);
}

.disclosure-triangle {
  width: 0;
  height: 0;
  border-left: 6px solid #1976d2;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 8px;
  transition: transform 0.3s ease;
  transform: rotate(90deg); /* Default: pointing down when open */
}

.disclosure-triangle.collapsed {
  transform: rotate(0deg); /* Collapsed: pointing right */
}

.section-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
}

.section-content.long-content {
  max-height: 3000px;
}

.section-content.collapsed {
  max-height: 0;
  opacity: 0;
}

.subsection {
  margin: 10px 0 10px 20px;
  padding-left: 15px;
  border-left: 2px solid #bbdefb;
}

.subsection-header {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
  font-weight: 500;
}

.subsection-header:hover {
  background-color: rgba(25, 118, 210, 0.05);
}

.subsection .disclosure-triangle {
  border-left-color: #42a5f5;
  margin-right: 6px;
}
