/* Modern Game-Style TezCollapsible Component */
.tez-collapsible {
  margin-bottom: 24px;
  overflow: hidden;
  background: transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: none;
}

.tez-collapsible::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.tez-collapsible:hover::before {
  opacity: 1;
}

.tez-collapsible:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.tez-collapsible-header {
  padding: 12px 20px;
  background: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.tez-collapsible-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease;
}

.tez-collapsible-header:hover::before {
  left: 100%;
}

.tez-collapsible-header:hover {
  border-top-color: rgba(52, 152, 219, 0.5);
}

.tez-collapsible-header:active {
  transform: scale(0.98);
}

.tez-collapsible-header:focus {
  outline: none;
  box-shadow: none;
}

.tez-collapsible-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

/* Arrow on the left - modern game style */
.tez-collapsible-arrow {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.tez-collapsible-arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(52, 152, 219, 0.8);
  border-bottom: 2px solid rgba(52, 152, 219, 0.8);
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tez-collapsible.expanded .tez-collapsible-arrow {
  background: transparent;
  box-shadow: none;
}

.tez-collapsible.expanded .tez-collapsible-arrow::before {
  border-right-color: rgba(46, 204, 113, 0.8);
  border-bottom-color: rgba(46, 204, 113, 0.8);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tez-collapsible.collapsed .tez-collapsible-arrow {
  background: transparent;
}

.tez-collapsible.collapsed .tez-collapsible-arrow::before {
  border-right-color: rgba(52, 152, 219, 0.8);
  border-bottom-color: rgba(52, 152, 219, 0.8);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.tez-collapsible-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}

.tez-collapsible-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.8);
}

.tez-collapsible-count {
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.8) 0%, rgba(192, 57, 43, 0.8) 100%);
  color: #ffffff;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.tez-collapsible-count::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.tez-collapsible-count:hover::before {
  left: 100%;
}

.tez-collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
}

.tez-collapsible.expanded .tez-collapsible-content {
  max-height: 1000px;
}

.tez-collapsible.collapsed .tez-collapsible-content {
  max-height: 0;
}

/* Ensure proper initial state for expanded sections */
.tez-collapsible:not(.collapsed) .tez-collapsible-content {
  max-height: 1000px;
}

/* Empty state styling */
.tez-collapsible-empty {
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Mobile responsive styles */
@media (max-width: 480px) {
  .tez-collapsible {
    margin-bottom: 16px;
  }

  .tez-collapsible-header {
    padding: 10px 16px;
  }

  .tez-collapsible-header-content {
    gap: 8px;
  }

  .tez-collapsible-title {
    font-size: 13px;
  }
} 